bugGNU Octave - Bugs: bug #29851, Random result with 1(find([1 1] !=...

 
 

bug #29851: Random result with 1(find([1 1] != 0)), should result in "index out of bounds", but doesn't.

Submitted by:  Jarno Rajahalme <jarno>
Submitted on:  Tue 11 May 2010 03:06:41 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: Jaroslav Hajek <highegg>
Originator Name: Jarno RajahalmeOpen/Closed: Closed
Release: devOperating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 11 May 2010 05:29:58 AM UTC, comment #1:

A fix is online:
http://hg.savannah.gnu.org/hgweb/octave/rev/6fb954475e21

btw, you don't need to save in order to find out the internal type of a value, you can use the "typeinfo" function for that (not to be confused with "class").

thanks for the report.

Jaroslav Hajek <highegg>In charge of this item.
Tue 11 May 2010 03:06:41 AM UTC, original submission:

$ 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".

Jarno Rajahalme <jarno>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by highegg (Updated the item)
  • -unavailable- added by jarno (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 11 May 2010 05:29:58 AM UTChigheggStatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Tue 11 May 2010 05:16:33 AM UTChigheggStatusNone=>In Progress
      Assigned toNone=>highegg

    Back to the top


    Powered by Savane 3.1-cleanup1