add support for computing the rank of matrices
this MR adds
- a new
rank
implementation toMatrix
- some tests
Note
the algorithm is basically the same as in the matrix inversion frominvert
, i.e. transform the matrix into echelon form and then count the number of non-zero rows
Note
the row-rank of a matrix is the same as its column-rank, so we can safely count the number of rows
Edited by STEVAN Antoine