|
From: | Jarno Rajahalme |
Subject: | [Octave-bug-tracker] [bug #29851] Random result with 1(find([1 1] != 0)), should result in "index out of bounds", but doesn't. |
Date: | Tue, 11 May 2010 03:06:42 +0000 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.38 Safari/533.4 |
URL: <http://savannah.gnu.org/bugs/?29851> Summary: Random result with 1(find([1 1] != 0)), should result in "index out of bounds", but doesn't. Project: GNU Octave Submitted by: jarno Submitted on: Tue 11 May 2010 03:06:41 AM GMT Category: Interpreter Severity: 3 - Normal Item Group: Incorrect Result Status: None Assigned to: None Originator Name: Jarno Rajahalme Originator Email: Open/Closed: Open Discussion Lock: Any Release: dev Operating System: Mac OS _______________________________________________________ Details: $ octave GNU Octave, version 3.3.51+ ... octave:1> 1(find([1 1] != 0)) ans = 1.0000e+00 2.1617e-314 octave:2> 1(find([1 1] != 0)+0) error: A(I): index out of bounds; value 2 out of bound 1 octave:2> The result on the prompt 1 above is clearly incorrect. Saving a result of the find above, and looking at the file tells that the result is a "lazy_index". _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?29851> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |