Skip to main content

matrix.tppl

function cvecCreate​

function cvecCreate(rows : Int, seq : Real[]) => Matrix[Real]

function dim​

function dim[X](mtx : Matrix[X]) => Int[]

type alias Matrix​

type alias Matrix[X] = Mat[X]

function mtxAdd​

function mtxAdd(a : Matrix[Real], b : Matrix[Real]) => Matrix[Real]

function mtxCreate​

function mtxCreate(rows : Int, cols : Int, data : Real[]) => Matrix[Real]

function mtxCreateId​

function mtxCreateId(sideLength : Int) => Matrix[Real]

function mtxElemMul​

function mtxElemMul(a : Matrix[Real], b : Matrix[Real]) => Matrix[Real]

function mtxElemPow​

function mtxElemPow(mtx : Matrix[Real], pow : Real) => Matrix[Real]

function mtxExp​

function mtxExp(mtx : Matrix[Real]) => Matrix[Real]

function mtxGet​

function mtxGet[X](row : Int, col : Int, mtx : Matrix[X]) => X

function mtxGetRow​

function mtxGetRow[X](row : Int, mtx : Matrix[X]) => Matrix[X]

function mtxMean​

function mtxMean(mtx : Matrix[Real]) => Real

function mtxMul​

function mtxMul(a : Matrix[Real], b : Matrix[Real]) => Matrix[Real]

function mtxNormalize​

function mtxNormalize(mtx : Matrix[Real]) => Matrix[Real]

function mtxPow​

function mtxPow(mtx : Matrix[Real], pow : Int) => Matrix[Real]

function mtxRowCols​

function mtxRowCols[X](mtx : Matrix[X], row : Int, cols : Int[]) => Matrix[X]

function mtxSclrMul​

function mtxSclrMul(scalar : Real, mtx : Matrix[Real]) => Matrix[Real]

function mtxTrans​

function mtxTrans(mtx : Matrix[Real]) => Matrix[Real]

function rvecCreate​

function rvecCreate(cols : Int, seq : Real[]) => Matrix[Real]

function tapply​

function tapply[A, B](mtx : Matrix[A], f : Function(A)=>B) => B[]

function _mtxPow​

function _mtxPow(mtx : Matrix[Real], pow : Int) => Matrix[Real]