|
From: | Vassilis Virvilis |
Subject: | [Octave-bug-tracker] [bug #61705] Wrong number of columns when removing entry from empty vector |
Date: | Sun, 19 Dec 2021 15:40:19 -0500 (EST) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0 |
Follow-up Comment #2, bug #61705 (project octave): Hi I don't get "invalid operator" for != in 6.2 linux Looks like ~= and != are the same. It is even documented at https://octave.org/doc/v6.4.0/Comparison-Ops.html#Comparison-Ops I didn't see you replicating the problem in the console output you posted. Maybe I missed something... Here is the minimal way to replicate the problem. octave:6> vector = [] vector = [](0x0) octave:7> columns(vector) ans = 0 <---------------- OK # Now let's remove a non existent entry from a zero size vector octave:8> vector = vector(vector != 2) vector = [](0x1) octave:9> columns(vector) ans = 1 <---------------- ???? _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?61705> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |