Overloading Scilab functions

Vincent Lejeune vincent.lejeune at institutoptique.fr
Fri May 29 14:14:49 CEST 2009


Hi,

I wanted to know if it was possible to overload operator in SciLab, eg +, *,  .*, \, .\ ... and where I can find some sample of this feature in Scilab sources.
For now, I use function like gpuAdd, gpuMult... on my custom gpuMatrix type, but I think it could be better if the enduser had only to write "C=A+B" instead of "C=gpuAdd(A,B)".

Thank, Vincent.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20090529/959e52e9/attachment.htm>


More information about the dev mailing list