Skip to content

Features

Feature methods

These methods enable the receiving of matrix features, such as:

  • number of rows
  • number of columns
  • norm
  • condition number
  • determinant
  • matrix rank
  • trace
  • spectrum
FunctionAction
RowsReturn the number of rows in a matrix
ColsReturn the number of columns in a matrix
SizeReturn the size of vector
NormReturn matrix or vector norm
CondCompute the condition number of a matrix
DetCompute the determinant of a square invertible matrix
SLogDetCompute the sign and logarithm of the determinant of an matrix
RankReturn matrix rank using the Gaussian method
TraceReturn the sum along diagonals of the matrix
SpectrumCompute spectrum of a matrix as the set of its eigenvalues from the product AT*A
Last updated on