[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Types in 2.1.58
From: |
David Bateman |
Subject: |
Re: Types in 2.1.58 |
Date: |
Fri, 3 Sep 2004 12:06:18 +0200 |
User-agent: |
Mutt/1.4.1i |
According to Soren Hauberg <address@hidden> (on 09/03/04):
> Quite simple I must say...
> but how do I determine if an octave_value is an int8_array?
> In the case of a real matrix I have the function is_real_matrix(), but I
> can't find anything like is_int8_matrix() ??
Humm, yes well not sure its a good idea to have is_int8_matrix, as it
would mean an explosion in the number of is_* calls... Look at bitfcns.cc
and you'll see that what is done is someting like
std::string cnam = args(0).class_name();
if (args(0).is_matrix() && cname == "int8")
{
int8NDArray m = args(0).int8_array_value();
}
D.
--
David Bateman address@hidden
Motorola CRM +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax)
91193 Gif-Sur-Yvette FRANCE
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
-------------------------------------------------------------
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
-------------------------------------------------------------