bugGNU Octave - Bugs: bug #34765, can't index scalar in anonymous...

 
 

bug #34765: can't index scalar in anonymous functions

Submitted by:  Carnë Draug <carandraug>
Submitted on:  Mon 07 Nov 2011 01:06:09 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 15 Mar 2012 05:22:21 PM UTC, comment #4:

I checked in the following change:

http://hg.savannah.gnu.org/hgweb/octave/rev/21ac4b576003

John W. Eaton <jwe>
Project Administrator
Wed 14 Mar 2012 08:26:23 PM UTC, comment #3:

Hi

on 3.6.1 this still occurs for scalars. While the code on the second comment now runs well, the one on the first does not.

However, this runs fine:

Carnë

Carnë Draug <carandraug>
Project Member
Mon 07 Nov 2011 06:54:54 PM UTC, comment #2:

This has been fixed on the development branch. The 3.6.0 release is scheduled for December 2011 (relatively soon) so I can't say whether anyone will backport the fix to the 3.4.X series or just wait for the 3.6.X series to become the new stable supported release.

Rik <rik5>
Project Administrator
Mon 07 Nov 2011 01:30:12 AM UTC, comment #1:

I tried a bit more, and found that the problem is more general. Having a matrix also causes an error

This seems to be fixed on the dev release (thanks Jordi).

Carnë Draug <carandraug>
Project Member
Mon 07 Nov 2011 01:06:09 AM UTC, original submission:

Hi

if in an anonymous function tries to index a scalar it returns a error. Here's a simple example to replicate the problem:

Back in octave 3.2.4 this worked fine and returned the expected result '0'. This is also the result obtained in at least MatLab R2001b.

Carnë

Carnë Draug <carandraug>
Project Member

 

(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 jwe (Posted a comment)
  • -unavailable- added by jordigh (Updated the item)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by carandraug (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 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 15 Mar 2012 05:22:21 PM UTCjweStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Wed 14 Mar 2012 09:31:05 PM UTCjordighStatusFixed=>Confirmed
      Open/ClosedClosed=>Open
      Release3.4.3=>dev
    Thu 24 Nov 2011 03:49:55 AM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Mon 07 Nov 2011 06:54:54 PM UTCrik5StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1