[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #37565] size_equal gives false positives for u

From: Rik
Subject: [Octave-bug-tracker] [bug #37565] size_equal gives false positives for user-defined classes
Date: Thu, 18 Oct 2012 03:40:06 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0

Follow-up Comment #3, bug #37565 (project octave):

I think the problem is that you have an overload for the size() function, but
not for the size_equal function.  The size_equal function is written in C++
and is looking at the dimension vector for the object.  This is not the same
thing as calling the size() function on an object.

For example, with your inputs from the control package.

a = WestlandLynx;
b = Boeing707;
c = BMWengine;
numel (a)
ans =  1
numel (b)
ans =  1
numel (c)
ans =  1

It might be possible to call the overloaded size function from within C++, but
I think it will be easier and faster for you to just overload size_equal in
the @lti class.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]