Last chance! 50% off unlimited learning
Sale ends in
M
.mrank(M)
0
and min(ncol(M), nrow(M))
.M
. Compares an approach using QR-decomposition with one
counting singular values larger than a certain tolerance (Matlab).nullspace
mrank(magic(10)) #=> 7
mrank(magic(100)) #=> 3 (!)
mrank(hilb(8)) #=> 8 , but qr(hilb(8))$rank says, rank is 7.
# Warning message:
# In mrank(hilb(8)) : Rank calculation may be problematic.
Run the code above in your browser using DataLab