pub fn rank(a: &[Vec<Rational>]) -> usize
Exact rank (works for rectangular matrices) via row reduction — the number of nonzero pivots.