octave-maintainers
[Top][All Lists]
Advanced

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

Re: Testing for function handles


From: Juan Pablo Carbajal
Subject: Re: Testing for function handles
Date: Wed, 9 Nov 2011 13:08:21 +0100

On Wed, Nov 9, 2011 at 12:26 PM, Dr. Alexander Klein
<address@hidden> wrote:
> Am 09.11.2011 um 11:32 schrieb Juan Pablo Carbajal:
>
>> I get
>> t =  1.0521
>> for strcmp
>> t =  5.0083
>> for isa
>
> It looks pretty much the same under OSX.
>
> Alex
>
> --
>          Dr. Alexander Klein, Diplom-Mathematiker
>
> Physiologisches Institut       |               TransMIT Zentrum
> Raum 543                       |        für Numerische Methoden
> Aulweg 129                     |          Heinrich-Buff-Ring 44
> 35392 Giessen                  |                  35392 Giessen
>
>

The solution, that I see, to avoid doing a strcmp is to add the DEFUN
(isfunhandle , ... to the C++ code and return the value of the field
is_function_handle from the octave_value data type.

@Alexander Klein: are you up to do that? If not, I will do it at some
point, but please put it in the tracker not to forget (add me as CC
cause I am not a dev).


-- 
M. Sc. Juan Pablo Carbajal
-----
PhD Student
University of Zürich
http://ailab.ifi.uzh.ch/carbajal/


reply via email to

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