bugGNU Octave - Bugs: bug #32591, matrix type confusion in cellfun

 
 

bug #32591: matrix type confusion in cellfun

Submitted by:  Thorsten Meyer <tmeyier>
Submitted on:  Thu 24 Feb 2011 08:36:01 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Thorsten MeyerOpen/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.

 

Tue 13 Dec 2011 09:39:02 PM UTC, comment #4:

I've just built octave freshly fetched from mercurial. I also cannot reproduce the original problem. Apparently, it has been fixed meanwhile. I'm closing this bug.

thanks.

Thorsten

Thorsten Meyer <tmeyier>
Tue 13 Dec 2011 06:50:28 PM UTC, comment #3:

Can you re-verify the problem behavior with a recent development tip? I tried the original problem code

and it works without error. This is with the following Mercurial tip:

parent: 14042:57e19c30b7d6 tip
assume "all" "on" if "all" is not present in warning_state structure (bug #35050)
branch: stable

Rik <rik5>
Project Administrator
Wed 06 Apr 2011 02:47:55 PM UTC, comment #2:

And the problem is around line 1846 in src/ov-fcn-handle.cc

If you give up the optimization and put

then everything works again. I hope this helps someone else to make a proper fix.

Marco

Marco Caliari <caliari>
Project Member
Wed 06 Apr 2011 07:27:07 AM UTC, comment #1:

I confirm the bug. I'm pretty sure it is due to binders optimization (changeset http://hg.savannah.gnu.org/hgweb/octave/rev/409ceee18acc), but my knowledge of C/C++ is not enough to fix it.

Marco

Marco Caliari <caliari>
Project Member
Thu 24 Feb 2011 08:36:01 PM UTC, original submission:

Hi,

I found the following bug in cellfun:
gives the error message:
"error: can't perform indexing operations for matrix type"

Strangely, these two lines work nicely:

Also, these two lines give the same result (3 cell rows of "scalar"):

The bug must have been introduced sometime between july 2010 and october 2010 (based on old development builds I still happen to have around).

regards

Thorsten

Thorsten Meyer <tmeyier>

 

(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 rik5 (Posted a comment)
  • -unavailable- added by jordigh (Updated the item)
  • -unavailable- added by caliari (Posted a comment)
  • -unavailable- added by tmeyier (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 13 Dec 2011 09:39:02 PM UTCtmeyierStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
    Tue 13 Dec 2011 06:50:28 PM UTCrik5StatusPatch Submitted=>Need Info
    Wed 06 Apr 2011 02:52:48 PM UTCjordighStatusNone=>Patch Submitted

    Back to the top


    Powered by Savane 3.1-cleanup1