davidm / lua-matrix

Matrices and vectors of are real, complex, and symbolic elements, implemented as Lua tables.
http://lua-users.org/wiki/LuaMatrix
Other
135 stars 54 forks source link

matrix.copy() doesn't work with non-square matrices #12

Open Egor-Skriptunoff opened 5 years ago

Egor-Skriptunoff commented 5 years ago

matrix.copy() implementation has dimension limits incorrectly swapped: #m1[1] and #m1, so it fails on attempt to copy any non-square matrix.