help-octave
[Top][All Lists]
Advanced

[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 08:45:51 +0200
User-agent: Mutt/1.4.1i

Daprès Soren Hauberg <address@hidden> (le 02/09/2004):
> Hi Everybody
> I just installed 2.1.58 to be able to work with matrices of diffeent 
> types. So my question is how do I work with matrices of different types 
> in C++? How do I check that an octave_value is, say, uint8 and how do I 
> create a matrix of type uint8?
> 
> Søren

Before if you passed an NDArray in an octave value you did something
like

   NDArray m = args(0).array_value();

Now for int8 array for example you do

   int8NDArray m = args(0).int8_array_value();

Simple :-)

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
-------------------------------------------------------------



reply via email to

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