|
From: | Vassilis Virvilis |
Subject: | [Octave-bug-tracker] [bug #61705] Wrong number of columns when removing entry from empty vector |
Date: | Sun, 19 Dec 2021 12:18:15 -0500 (EST) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0 |
URL: <https://savannah.gnu.org/bugs/?61705> Summary: Wrong number of columns when removing entry from empty vector Project: GNU Octave Submitted by: vasvir Submitted on: Sun 19 Dec 2021 05:18:14 PM UTC Category: Interpreter Severity: 3 - Normal Priority: 5 - Normal Item Group: None Status: None Assigned to: None Originator Name: vasvir Originator Email: Open/Closed: Open Release: 6.2.0 Discussion Lock: Any Operating System: GNU/Linux _______________________________________________________ Details: Hi, Debian unstable here with octave 6.2.0 Is the following behavior correct? I would expect columns to be zero. octave:6> vector = [] vector = [](0x0) octave:7> columns(vector) ans = 0 <---------------- OK octave:8> vector = vector(vector != 2) vector = [](0x1) octave:9> columns(vector) ans = 1 <---------------- ???? If there is something to remove everything is ok octave:10> vector = [2] vector = 2 octave:11> columns(vector) ans = 2 octave:12> vector = vector(vector != 2) vector = [](0x0) octave:7> columns(vector) ans = 0 <---------------- OK This seems inconsistent and I thought it would be best to report it. I tried to search if a bug like this has been reported but I didn't find anything. Hope that helps. Vassilis _______________________________________________________ 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] |