> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Math::Matrix

The Matrix library provides common operations for matrices.

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

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

**Parent topic:**[Libraries](https://developer.synopsys.com/docs/scade-one/scade-one-standard-libraries/2025-r1.md)
