[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to define operators in oct-files
From: |
Lukas Reichlin |
Subject: |
Re: How to define operators in oct-files |
Date: |
Tue, 20 Aug 2013 05:17:40 +0200 |
On 19.08.2013, at 22:15, c. <address@hidden> wrote:
>
> On 19 Aug 2013, at 10:43, Lukas Reichlin <address@hidden> wrote:
>
>> Dear Octave Community
>>
>> What is the most recent/recommended way of defining operators, e.g. binary
>> plus, for classes implemented in oct-files? Are there good code examples?
>> The sparsersb package is rather confusing to me and the symbolic package
>> seems to be outdated.
>
> Have you looked at the package "triangular"?
>
> http://sourceforge.net/p/octave/code/12195/tree/trunk/octave-forge/extra/triangular/src/uppertri.cc
>
> It's not particularly recent but it was created exactly with the purpose of
> giving examples of defining new classes.
>
>
>> Currently I'm trying to understand the usage of the macros
>> DEFBINOP(op_add, …
>> INSTALL_BINOP
>
> That is used in triangular.
>
>> Thanks for any help
>> Lukas
>
> HTH,
> c.
Thank you Carlo, this is exactly what I was looking/hoping for!
Best regards,
Lukas