Template Function Karana::Math::getRank

Template Function Karana::Math::getRank#

Function Documentation#

template<typename Derived>
unsigned int Karana::Math::getRank(const Eigen::MatrixBase<Derived> &mat, double threshold = 1e-12)#

Return the rank of a matrix.

Parameters:
  • mat – The input matrix

  • threshold – the threshold to use for rank check

Returns:

the matrix rank