lua-matrix icon indicating copy to clipboard operation
lua-matrix copied to clipboard

Matrices and vectors of are real, complex, and symbolic elements, implemented as Lua tables.

Results 13 lua-matrix issues
Sort by recently updated
recently updated
newest added

The complex numbers module is loaded with the following code. local complex = require "luacomplex" DEPENDENCIES: None (other than Lua 5.1 or 5.2). May be used with complex.lua.

Code stolen and convert to lua from https://en.wikipedia.org/wiki/LU_decomposition#C_code_examples I've not tested accuracy yet, but I'll see how it does soon.

I changed the pivot method used by the gauss-jordan method to look for a maximum value in a column instead of a minimum. This is the pivot choice described in:...

The inverse of the matrix doesn't appear to be very accurate. I've noticed that whenever I try to invert a matrix it randomly adds decimals

# For compatibility with lua 5.3.5, please consider making the following changes: # diff -rw lua-matrix-master lua-matrix-master-5.3.5 # diff -rw lua-matrix-master/lua/matrix.lua lua-matrix-master-5.3.5/lua/matrix.lua # 1042c1042 # < mtx[i][j] = tonumber( loadstring(...

For some very strange reason, vector-to-matrix constructor doesn't work for vectors having more than 3 elements. Tail elements of the vector (starting with the 4-th) are silently rejected by the...

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

If `matrix:new` detects a vector, then it converts to a Nx1 matrix, instead of a 3x1 matrix.

`MANIFEST` included `doc/fit_changelog.txt`, which does not exist. Also, `rockspec.in` calls the `test` directory `tests`. The former caused `util.mk` to fail, the latter caused `luarocks make` to fail. This PR fixes...