Trace of matrix
![]() |
![]() |
| Vector | C | |
| in the palette | on the schematic |
The block calсulates a sum of the elements of the main diagonal of a matrix (trace).
Ports
- Output port for a matrix of a set dimension;
- Output port for the matrix trace value.
Properties
- Number of rows - an integer equal to the number of rows of the input matrix;
- Number of columns - an integer equal to the number of rows of the input matrix.
Parameters
none

