[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64614] Ranges space saving feature works only
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #64614] Ranges space saving feature works only for double but not for singles or not even for integers |
Date: |
Thu, 31 Aug 2023 01:47:17 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?64614>
Summary: Ranges space saving feature works only for double
but not for singles or not even for integers
Group: GNU Octave
Submitter: None
Submitted: Thu 31 Aug 2023 05:47:15 AM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 8.3.0
Discussion Lock: Any
Operating System: GNU/Linux
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Thu 31 Aug 2023 05:47:15 AM UTC By: Anonymous
Ranges are a convenient and space saving way to write a vector with evenly
spaced elements.
Or this space saving way ONLY works for double, not for floats and not (even)
for integers.
Example:
if optimize_range ()
printf("Range is space saving optimized.\n");
else
printf("Range is NOT space saving optimized.\n");
endif
Range_Double = double(1):double(100);
Range_Single = single(1):single(100);
Range_int64 = int64(1):int64(100);
Range_uint64 = uint64(1):uint64(100);
Range_int8 = int8(1):int8(100);
Range_uint8 = uint8(1):uint8(100);
whos
-->
Range is space saving optimized.
Variables visible from the current scope:
variables in scope: top scope
Attr Name Size Bytes Class
==== ==== ==== ===== =====
Range_Double 1x100 24 double
Range_Single 1x100 400 single
Range_int64 1x100 800 int64
Range_int8 1x100 100 int8
Range_uint64 1x100 800 uint64
Range_uint8 1x100 100 uint8
Total is 600 elements using 2224 bytes
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64614>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #64614] Ranges space saving feature works only for double but not for singles or not even for integers,
anonymous <=