[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 16:18:01 -0700 (PDT) |
Max Brister wrote
>
> Using grep in the development source it looks like is_real_nd_array is
> cruft that should be removed.
>
> You should use is_real_type and is_complex_type instead.
>
Thank you Max, finally I have a working check :
if (! ( args(0).is_matrix_type() &&
(args(0).is_real_type() ||
args(0).is_complex_type())))
{
octave_stdout << "first argument must be a real or complex array\n";
return octave_value_list();
}
Bizzarely, is_matrix_type() is true for matrices and NDarrays.
I could see that is_nd_array_type() (which does not exist)
would be true for matrices, but an NDarray is a matrix type???
No matter, I have my check working.
--
View this message in context:
http://octave.1599824.n4.nabble.com/is-complex-nd-array-tp4642807p4642815.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 <=
- 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, 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