[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #30289] save/load does not restore a variable
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #30289] save/load does not restore a variable created with ones() |
Date: |
Tue, 29 Jun 2010 16:12:20 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100402 Ubuntu/9.10 (karmic) Firefox/3.5.9 |
Update of bug #30289 (project octave):
Status: None => Confirmed
_______________________________________________________
Follow-up Comment #1:
This bug is confirmed with a recent tip on a GNU/Linux system.
The problem seems to be the mischaracterization of a row vector of ones as
being a range. As Olaf noted, the saved file indicates that the variable
being saved is a range, rather than a matrix.
Other interesting tests and their results:
ones (2,2) : works : saved as type matrix
ones (1,1) : works : saved as type scalar
a' : works : saved as type matrix
logical (a) : works : saved as type bool matrix
ones (1,3,'single') : works : saved as type float matrix
zeros (1,2) : works : saved as type matrix
e (1,2) : works : saved as type matrix
This brief testing seems to confine the problem exclusively to row vectors
created by ones since other orientations (column vectors, 2x2 matrices,
scalars), other types (logical, single), and other values (zero, e) all work.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30289>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/