cell array indexing with logical index bug?
Ben Abbott
bpabbott at mac.com
Sun Nov 2 04:10:07 CST 2008
On Nov 2, 2008, at 3:31 AM, Thorsten Meyer wrote:
> Hi,
>
>> Though I can't reproduce it, please try this patch:
>> http://hg.savannah.gnu.org/hgweb/octave/rev/f7d44b6a74df
>>
> This morning I confirmed that the bug is still there after "make
> clean; make all". Then I applied
> your patch and the problem was gone.
>
> thanks and regards
>
> Thorsten
The problem is not fixed for me.
octave:1> a{1}=1
a =
{
[1,1] = 1
}
octave:2> a(1)\[]
error: binary operator `\' not implemented for `cell' by `null_matrix'
operations
octave:2> a(1)=[]
a = {}(1x0)
octave:3> a{1}=1
a =
{
[1,1] = 1
}
octave:4> a(1==1)=[]
a = {}(1x0)
octave:5> a{1}=1;a{2}=2;
octave:6> a(1==1)=[]
a =
{
[1,1] = 2
}
octave:7> a{1}=1;a{2}=2;
octave:8> a([1 2])=[]
a = {}(1x0)
My tip is
changeset: 8302:f2e050b62199
tag: tip
user: Jaroslav Hajek <highegg at gmail.com>
date: Sun Nov 02 06:44:12 2008 +0100
summary: fix dim check in Array<T>::delete_elements
Ben
More information about the Bug-octave
mailing list