bugGNU Octave - Bugs: bug #51581, cellfun with objects

 
 

bug #51581: cellfun with objects

Submitter:  Ernst Reissner <ernstreissner>
Submitted:  Wed 26 Jul 2017 10:23:55 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Works For Me Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 26 Jul 2017 09:58:19 PM UTC, comment #2: 

Mike, thank you, I found my bug and we can close this report.

Ernst Reissner <ernstreissner>
Wed 26 Jul 2017 05:50:04 PM UTC, comment #1: 

Substituting either the built-in ftp class or the sym class provided by the symbolic package works, so it might be something to do with your class.


>> cellfun (@isa, {ftp(), ftp(), ftp()}, {"numeric" "float" "integer"})
ans =

  0  0  0

>> cellfun (@isa, {sym(), sym(), sym()}, {"numeric" "float" "integer"})
ans =

  0  0  0


Mike Miller <mtmiller>
Group Member
Wed 26 Jul 2017 10:23:55 AM UTC, original submission:  

Whereas
cellfun(@isa, {1, 1, 1}, {"numeric" "float" "integer"})
works,
cellfun(@isa, {pn(), pn(), pn()}, {"numeric" "float" "integer"})
yields
error: operator =: no conversion for assignment of 'class' to indexed 'matrix'

Here, pn() is the constructor of my class.
I think the problem is not with my implementation
but with using oo in general.

Ernst Reissner <ernstreissner>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by ernstreissner (Submitted the item)
  • -email is unavailable- added by ernstreissner
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-07-27 mtmiller Open/ClosedOpen Closed
    2017-07-26 mtmiller StatusNone Works For Me
    2017-07-26 ernstreissner Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code