Matrix multiplication: Difference between revisions

Added easier library-dependent version to Lua section
(Added Ela)
(Added easier library-dependent version to Lua section)
Line 2,509:
end </lang>
 
===SciLua===
Using the sci.alg library from scilua.org
<lang Lua>local alg = require("sci.alg")
mat1 = alg.tomat{{1, 2, 3}, {4, 5, 6}}
mat2 = alg.tomat{{1, 2}, {3, 4}, {5, 6}}
mat3 = mat1[] ** mat2[]
print(mat3)</lang>
{{out}}
<pre>+22.00000,+28.00000
+49.00000,+64.00000</pre>
 
=={{header|Maple}}==
Anonymous user