    

 ## On this page

  

 

 # Matrix 

 Last update: 09.03.2026 

The Matrix library provides common operations for matrices.

Operator NameDescription[Add](matrix_add.md)Addition of two matrices, element-wise.[ConcatCols](matrix_concatcols.md)Concatenation of two matrices' columns.[ConcatRows](matrix_concatrows.md)Concatenation of two matrices' rows.[Det2x2](matrix_det2x2.md)Determinant of a 2 by 2 matrix.[Det3x3](matrix_det3x3.md)Determinant of a 3 by 3 matrix.[Det4x4](matrix_det4x4.md)Determinant of a 4 by 4 matrix.[Diagonal](matrix_diagonal.md)Creation of a matrix, of size N by N, with the input vector on the diagonal and 0 elsewhere.[Div](matrix_div.md)Division of two matrices, element-wise.[Eye](matrix_eye.md)Creation of an identity matrix, of size N by N, with 1 on the diagonal and 0 elsewhere.[GetDiagonal](matrix_getdiagonal.md)Returns the diagonal vector of the input matrix.[GetSubMatrix](matrix_getsubmatrix.md)Returns the sub matrix of size Ms by Ns, starting at row Midx and column Nidx.[Incr](matrix_incr.md)Addition of a scalar to all elements of a matrix.[Inv2x2](matrix_inv2x2.md)Inverse of a 2 by 2 matrix.[Inv3x3](matrix_inv3x3.md)Inverse of a 3 by 3 matrix.[Inv4x4](matrix_inv4x4.md)Inverse of a 4 by 4 matrix.[KroneckerProd](matrix_kroneckerprod.md)Kronecker product of two matrices.[MatMatMult](matrix_matmatmult.md)Multiplication of two matrices.[MatVecMult](matrix_matvecmult.md)Multiplication of a matrix and a vector.[Mult](matrix_mult.md)Multiplication of two matrices, element-wise.[Scale](matrix_scale.md)Multiplication of all elements of a vector by a matrix.[Sub](matrix_sub.md)Subtraction of two matrices, element-wise.[VecMatMult](matrix_vecmatmult.md)Multiplication of a vector and a matrix.**Parent topic:**[Libraries](./../../index.md)