Trace of matrix

| Vector | C |
в палитре на схеме

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.

Свойства

  • 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.

Параметры

none