help-octave
[Top][All Lists]
Advanced

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

Re: bug or compatibility issue?


From: Francesco Potortì
Subject: Re: bug or compatibility issue?
Date: Tue, 07 Aug 2012 16:23:12 +0200

>When C is not given prepad (and postpad) should do
>
>cl = class(x);
>C = eval([cl "(0)"]);
>
>to define the zero padding.
>
>and when C is given the final vector should be sent to the class of C
># before return
>cl = class(C);
>x = eval([cl "(x)"]);

I think that the final class should be the one that results from the
promotion rules of Octave.  For example, if C is logical and and the
vector is uint32, the result should be uint32.

-- 
Francesco Potortì (ricercatore)        Voice:  +39.050.315.3058 (op.2111)
ISTI - Area della ricerca CNR          Mobile: +39.348.8283.107
via G. Moruzzi 1, I-56124 Pisa         Fax:    +39.050.315.2040  
(entrance 20, 1st floor, room C71)     Web:    http://fly.isti.cnr.it


reply via email to

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