[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: is_complex_nd_array() ?
From: |
jjg |
Subject: |
Re: is_complex_nd_array() ? |
Date: |
Thu, 16 Aug 2012 17:27:27 -0700 (PDT) |
I am sorry to keep on about this
Max Brister wrote
>
> What you have here is an octave_value containing a Matrix (which is
> also an NDArray).
>
No, what I have in an N-dimensional array which might be a matrix.
A 3 dimensional array is not a matrix, a 2 dimensional array is a
matrix. The set of N-dimensional arrays includes the 2-dimensional
arrays so it includes the matrices. Were the function is_nd_array()
to exist then it would be right and proper that it return true for a
matrix. Since a matrix is an N-dimensional array.
But it is borderline insane that is_matrix(A) is true for an N-dimensional
array with N>2, when anyone in the street will tell you that it should be
false. Absolutely bonkers.
The octave dev team can do as they wish of course. Perhaps
#define TRUE FALSE
or
#define malloc(x) free(x)
in a global header file would be fun.
--
View this message in context:
http://octave.1599824.n4.nabble.com/is-complex-nd-array-tp4642807p4642823.html
Sent from the Octave - General mailing list archive at Nabble.com.
- is_complex_nd_array() ?, jjg, 2012/08/16
- Re: is_complex_nd_array() ?, Max Brister, 2012/08/16
- Re: is_complex_nd_array() ?, jjg, 2012/08/16
- Re: is_complex_nd_array() ?, Max Brister, 2012/08/16
- Re: is_complex_nd_array() ?, jjg, 2012/08/16
- Re: is_complex_nd_array() ?, Max Brister, 2012/08/16
- Re: is_complex_nd_array() ?,
jjg <=
- Re: is_complex_nd_array() ?, Max Brister, 2012/08/16
- Re: is_complex_nd_array() ?, jjg, 2012/08/17
- Re: is_complex_nd_array() ?, Jordi Gutiérrez Hermoso, 2012/08/17
- Re: is_complex_nd_array() ?, jjg, 2012/08/17
- Re: is_complex_nd_array() ?, Jordi Gutiérrez Hermoso, 2012/08/18
- Re: is_complex_nd_array() ?, jjg, 2012/08/18
- Re: is_complex_nd_array() ?, Jordi Gutiérrez Hermoso, 2012/08/17