help-octave
[Top][All Lists]
Advanced

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

Re: How to define operators in oct-files


From: c.
Subject: Re: How to define operators in oct-files
Date: Mon, 19 Aug 2013 22:15:04 +0200

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.

reply via email to

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