Module:LinearAlgebraTests

local p = {}

local LA = require 'Module:LinearAlgebra'

function p.Test(frame) local A={} A["n"]=4 A["m"]=4 A["mat"]={{1,2,3,4},{4,9,nil,nil},{3,nil,10,nil},{2,nil,nil,21}} local I=LA.IdentityMatrix(4) local AI= LA.MatrixMultiplication(A,A) local r="" r=r .. LA.MatrixToWikitable(AI) return r end

return p