help-octave
[Top][All Lists]
Advanced

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

bug or compatibility issue?


From: Francesco Potortì
Subject: bug or compatibility issue?
Date: Tue, 07 Aug 2012 15:26:05 +0200

I would expect prepad to retain the class of the argument.  However,
when extending a logical array, this is converted to double:

octave> class(prepad([false true], 3, false))
ans = double

This is Octave 3.6.2 on Debian.

Is this a bug?

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