Mat
verb.core.Mat
CLASS
Tools for working with matrices
mul
STATIC METHOD
mul(a : Float, b : Matrix) : Matrix
Multiply a Matrix
by a constant
mult
STATIC METHOD
mult(x : Matrix, y : Matrix) : Matrix
Multiply two matrices assuming they are of compatible dimensions.
Based on the numeric.js routine - numeric.dotMMsmall
add
STATIC METHOD
add(a : Matrix, b : Matrix) : Matrix
Add two matrices
div
STATIC METHOD
div(a : Matrix, b : Float) : Matrix
Divide each of entry of a Matrix by a constant
sub
STATIC METHOD
sub(a : Matrix, b : Matrix) : Matrix
Subtract two matrices
dot
STATIC METHOD
dot(a : Matrix, b : Vector) : Vector
Multiply a Matrix
by a Vector
identity
STATIC METHOD
identity(n : Int) : Matrix
Build an identity matrix of a given size
transpose
STATIC METHOD
transpose<T>(a : Array<Array<T>>) : Array<Array<T>>
Transpose a matrix
solve
STATIC METHOD
solve(A : Matrix, b : Vector) : Vector
Solve a system of equations