Interface Matrix
access this type via: stats.Matrix (provides, requires or uses)
Matrix manipulation functions.
Functions
dec[][] add(dec a[][], dec b[][])
dec[][] subtract(dec a[][], dec b[][])
dec[][] multiply(dec a[][], dec b[][])
dec[][] multiplyBy(dec a[][], dec b)
dec[][] negate(dec a[][])
dec[][] transpose(dec a[][])
dec[][] add(dec a[][], dec b[][])
Adds matrix a to matrix b.
returns: The resulting matrix.
dec[][] subtract(dec a[][], dec b[][])
Subtracts matrix a from matrix b.
returns: The resulting matrix.
dec[][] multiply(dec a[][], dec b[][])
Multiplies matrix a by matrix b.
a The [n][m] matrix to multiply.
b The [m][q] matrix to multiply (m must be the same as in matrix a).
returns: The resulting matrix.
dec[][] multiplyBy(dec a[][], dec b)
Multiplies a matrix by a scalar value.
returns: The resulting matrix.
dec[][] negate(dec a[][])
Negate a matrix.
returns: The resulting matrix.
dec[][] transpose(dec a[][])
Transpose a matrix (rows become columns).
returns: The resulting matrix.