Skip to main content
The Matrix library provides common operations for matrices.
  • Add
    Addition of two matrices, element-wise.
  • ConcatCols
    Concatenation of two matrices’ columns.
  • ConcatRows
    Concatenation of two matrices’ rows.
  • Det2x2
    Determinant of a 2 by 2 matrix.
  • Det3x3
    Determinant of a 3 by 3 matrix.
  • Det4x4
    Determinant of a 4 by 4 matrix.
  • Diagonal
    Creation of a matrix, of size N by N, with the input vector on the diagonal and 0 elsewhere.
  • Div
    Division of two matrices, element-wise.
  • Eye
    Creation of an identity matrix, of size N by N, with 1 on the diagonal and 0 elsewhere.
  • GetDiagonal
    Returns the diagonal vector of the input matrix.
  • GetSubMatrix
    Returns the sub matrix of size Ms by Ns, starting at row Midx and column Nidx.
  • Incr
    Addition of a scalar to all elements of a matrix.
  • Inv2x2
    Inverse of a 2 by 2 matrix.
  • Inv3x3
    Inverse of a 3 by 3 matrix.
  • Inv4x4
    Inverse of a 4 by 4 matrix.
  • KroneckerProd
    Kronecker product of two matrices.
  • MatMatMult
    Multiplication of two matrices.
  • MatVecMult
    Multiplication of a matrix and a vector.
  • Mult
    Multiplication of two matrices, element-wise.
  • Scale
    Multiplication of all elements of a vector by a matrix.
  • Sub
    Subtraction of two matrices, element-wise.
  • VecMatMult
    Multiplication of a vector and a matrix.
Parent topic:Libraries