method

rank

v1_8_6_287 - Show latest stable - Class: Matrix
rank()
public

Returns the rank of the matrix. Beware that using Float values, with their usual lack of precision, can affect the value returned by this method. Use <a href="/ruby/Rational">Rational</a> values instead if this is important to you.

  Matrix[[7,6], [3,9]].rank
    => 2