[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #35921] assigning empty to non-double types
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #35921] assigning empty to non-double types |
Date: |
Tue, 20 Mar 2012 23:30:47 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2 |
URL:
<http://savannah.gnu.org/bugs/?35921>
Summary: assigning empty to non-double types
Project: GNU Octave
Submitted by: None
Submitted on: Tue 20 Mar 2012 11:30:46 PM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.1
Operating System: GNU/Linux
_______________________________________________________
Details:
There appears to be an error in assigning empty values to arrays of type other
than double:
iarray = int64( [1 2] );
darray = double( [1 2] );
iarray(1) = [];
darray(1) = [];
% works, iarray & darray = [2] now
iarray(1) = [];
% error: A(I) = X: X must have the same size as I
darray(1) = [];
% works; returns empty 1x0 array
This seems closely related to open bug #31287: Certain assignments of empty
arrays give errors (Matlab incompatibility), but perhaps not the same, since
that bug involves assignments whos left-hand-sides are also empty (rather than
becoming empty), and does not seem to depend on the data type.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35921>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #35921] assigning empty to non-double types,
anonymous <=