- decoupled symbol class from matrix class: - matrix.replace has new semantics, applying a function to each element. For old behavior: mtx = mtx:replace(matrix.symbol.makereplacer(...)) - replaced mtx:gsub(a,b) with mtx = mtx:replace(symbol.gsub,a,b) - replaced matrix.tosymbol(mtx) with mtx = mtx:replace(symbol) - eliminated dependency on complex: - replaced matrix.tocomplex(mtx) with mtx = mtx:replace(complex) - replaced matrix.conjugate(mtx) with mtx = mtx:replace(complex.conjugate) - mulnum and divnum no longer can take num of type string - complex table no longer returned on module load - renamed remcomplex to elementstostrings and changed it to return new matrix rather than doing in-place modification - fixed matrix.numround (numround variable mispelled). Reported by Goeff Richards.
32 lines
807 B
Plaintext
32 lines
807 B
Plaintext
package = "LuaMatrix"
|
|
version = "[VERSION]"
|
|
source = {
|
|
url = "[URL]",
|
|
}
|
|
description = {
|
|
summary = "Matrices and matrix operations implemented in pure Lua.",
|
|
detailed = [[
|
|
This supports operations on matrices and vectors whose elements are
|
|
real, complex, or symbolic. Implemented entirely in Lua as tables.
|
|
Includes a complex number data type too.
|
|
]],
|
|
license = "MIT/X11",
|
|
homepage = "http://luamatrix.luaforge.net/",
|
|
maintainer = "David Manura <http://lua-users.org/wiki/DavidManura>",
|
|
}
|
|
dependencies = {
|
|
"lua >= 5.1",
|
|
}
|
|
build = {
|
|
type = "none",
|
|
install = {
|
|
lua = {
|
|
["complex"] = "lua/complex.lua",
|
|
["matrix"] = "lua/matrix.lua",
|
|
}
|
|
},
|
|
copy_directories = {"doc", "samples", "tests"},
|
|
}
|
|
-- test: tests/test.lua
|
|
|