Re: [tng-devel] External cwise operations

[ Thread Index | Date Index | More lists.tuxfamily.org/tng-devel Archives ]


Sounds like a reasonable idea. We might need to implement some more special functions (gamma, phi, etc.) to extend the Lua-math module, but this is certainly much easier to be done.

On 24.03.2010, at 15:25, Sebastian Wolff wrote:

> Hi all,
> 
> I have an idea regarding external coefficientwise functions.
> 
> Maybe we do not need them at all?
> 
> 
> Instead of wasting the namespace we could use instead of
> 
> B = tmath.Sin(A)
> 
> we could use
> 
> B = tmath.CWise(A, math.sin)
> 
> The good thing is: Because CWise is defined in Lua, we could easily extend it to sparse matrices, matrix blocks, etc.
> 
> How does that sound?
> 
> 
> 
> 
> 




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/