lua-matrix
lua-matrix copied to clipboard
Matrices and vectors of are real, complex, and symbolic elements, implemented as Lua tables.
Support for: local m = matrix{1,2,3,4,5,6,...} m:segment(3)[2] -->> matrix{2,3,4} m:y() -->> 2
Hi, I added support to allow N-element vectors, and outproduct now accepts 3 and 4 vector I also call astable() if it exists in matrix:new; this allows casting other objects...
Optimized the creation of a vector matrix by removing a table creation. Fixed a typo. Removed trailing whitespace.