lua-users home
lua-l archive

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

> > As an aside, in Numlua I'm defining % for matrix multiplication and * for
> > elementwise matrix multiplication (/ and ^ keep their elementwise
> > counterparts).
> >  
> What do you define for matrix division, i.e. Matlab backslash?

I don't have an operator for it; you have to use ls(a, b) -- least-squares
solution -- for 'a \ b'.


Computers are useless. They can only give you answers.
                -- Pablo Picasso

Luis Carvalho (Kozure)
lua -e 'print(((""):gsub("(%u+%.)","")))'