[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56167] non-existent cell indexing within matr
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #56167] non-existent cell indexing within matrix brackets results in concatenation error |
Date: |
Thu, 18 Apr 2019 22:13:01 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Update of bug #56167 (project octave):
Severity: 3 - Normal => 2 - Minor
Priority: 5 - Normal => 3 - Low
Status: None => Confirmed
Release: 4.4.1 => dev
Operating System: Microsoft Windows => Any
Summary: pseudocode [ { [](0x1) [](0x1) [](0x1) 1 }{}, 1 ]
fails, [ 1 ,{ [](0x1) [](0x1) 1 }{}, 1 ] works => non-existent cell indexing
within matrix brackets results in concatenation error
_______________________________________________________
Follow-up Comment #4:
Confirmed. I have re-titled the bug report to describe what I believe is the
error.
Note, this code does not run under Matlab. Attempting to run this section
tmp{1} = 1;
tmp{2} = ones(3)(logical(zeros(3)));
tmp{3} = ones(3)(logical(zeros(3)));
tmp{4} = 1;
[tmp{}]
results in an error at the last line about an invalid expression. In fact,
any indexing without an actual index is an error in Matlab. For example,
tmp{}
So, one choice would be to make Octave compatible with Matlab and error for
this usage. Currently, Octave appears to treat no index as the equivalent of
the magic colon ':' index.
tmp{} === tmp{:}
A reduced bit of code to reproduce the error message is
tmp = { zeros(0,1), zeros(0,1), 1 };
[tmp{}]
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56167>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56167] pseudocode [ { [](0x1) [](0x1) [](0x1) 1 }{}, 1 ] fails, [ 1 , { [](0x1) [](0x1) 1 }{}, 1 ] works, SillyMon, 2019/04/18
- [Octave-bug-tracker] [bug #56167] pseudocode [ { [](0x1) [](0x1) [](0x1) 1 }{}, 1 ] fails, [ 1 , { [](0x1) [](0x1) 1 }{}, 1 ] works, SillyMon, 2019/04/18
- [Octave-bug-tracker] [bug #56167] pseudocode [ { [](0x1) [](0x1) [](0x1) 1 }{}, 1 ] fails, [ 1 , { [](0x1) [](0x1) 1 }{}, 1 ] works, Andrew Janke, 2019/04/18
- [Octave-bug-tracker] [bug #56167] pseudocode [ { [](0x1) [](0x1) [](0x1) 1 }{}, 1 ] fails, [ 1 , { [](0x1) [](0x1) 1 }{}, 1 ] works, Andrew Janke, 2019/04/18
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing within matrix brackets results in concatenation error,
Rik <=
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing within matrix brackets results in concatenation error, SillyMon, 2019/04/18
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing within matrix brackets results in concatenation error, Andrew Janke, 2019/04/18
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing within matrix brackets results in concatenation error, Andrew Janke, 2019/04/18
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing within matrix brackets results in concatenation error, SillyMon, 2019/04/19
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, Rik, 2019/04/19
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, Rik, 2019/04/19
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, Andrew Janke, 2019/04/19
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, Rik, 2019/04/19
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, John W. Eaton, 2019/04/23
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, Guillaume, 2019/04/23