help-octave
[Top][All Lists]
Advanced

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

ismatrix() reports "true" for cell arrays?


From: John W. Eaton
Subject: ismatrix() reports "true" for cell arrays?
Date: Sun, 23 Nov 2003 00:34:58 -0600

On 22-Nov-2003, Tomer Altman <address@hidden> wrote:

| I'm using the "ancient" 2.1.50 version of Octave

I know I often say this about various versions of Octave (usually
those that have been around for a year or more) but I don't think I've
called 2.1.50 ancient yet.  Haven't I just recently been recommending
it as the "preferred" version for people to be using?  But in another
message that I received within the last hour or two, you said you did
some tests with 2.1.40, which is old.  So which version are you using?

| I was hoping that ismatrix() would be disjoint with iscell():

Seems reasonable.  The fix is simple enough:

*** ov-cell.h.~1.20.~   Fri Nov 14 13:23:38 2003
--- ov-cell.h   Sun Nov 23 00:26:25 2003
***************
*** 88,93 ****
--- 88,95 ----
                         const std::list<octave_value_list>& idx,
                         const octave_value& rhs);
  
+   bool is_matrix_type (void) const { return false; }
+ 
    bool is_numeric_type (void) const { return false; }
  
    bool is_defined (void) const { return true; }

Thanks,

jwe



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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