[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44201] "whos" and gui display non-integer siz

From: Rik
Subject: [Octave-bug-tracker] [bug #44201] "whos" and gui display non-integer sizes inf/nan poorly
Date: Sun, 15 Feb 2015 15:37:12 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)

Follow-up Comment #10, bug #44201 (project octave):

How important is it to expand dim vectors to support NaN and Inf?  At least in
core Octave I don't see an easy way to even generate such an object.

x = ones (2, Inf)
error: out of memory or dimension too large for Octave's index type
x = ones (2, NaN, 3)
x = [](2x0x3)

Now you could have a class that overloads size to return Inf and NaN values,
but maybe the best approach is to rethink those classes rather than requiring
Octave to try and understand them?

I am also wary of having the same information, the dim_vector, interpreted two
ways.  If you do whos ('x') on the second example you would get "2xNaNx3". 
But if you ask Octave to do a calculation on x it will treat the whole thing
as an empty matrix.  I think it is easier for a programmer if Octave tells
them exactly how it sees the object in question. 


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]