[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47468] ones(), zeros(), pi(), e() are able to
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #47468] ones(), zeros(), pi(), e() are able to create a row vector with number of elements above sizemax |
Date: |
Sun, 27 Oct 2019 13:05:34 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Update of bug #47468 (project octave):
Summary: ones() is able to create array with number of
elements above sizemax => ones(), zeros(), pi(), e() are able to create a row
vector with number of elements above sizemax
_______________________________________________________
Follow-up Comment #4:
This is quite an old bug report, but I made some progress on it recently. The
issue is that Octave had an optimization for ones() which allowed it to store
row vectors as Range objects. The memory savings could be significant, a
fixed 24 bytes for a Range, versus a variable 8 x numel(x) for any other sort
of object.
I made the optimization to include zeros(), pi(), and e() as well in this cset
https://hg.savannah.gnu.org/hgweb/octave/rev/e78b6e7f743c.
Now, of course, all of these functions have the same problem of being able to
create an overly large array. I plan to ask on the Octave Maintainers mailing
list about how we want to handle this.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?47468>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #47468] ones(), zeros(), pi(), e() are able to create a row vector with number of elements above sizemax,
Rik <=