Compute the rank of a, using the singular value decomposition. The rank is taken to be the number of singular values of a that are greater than the specified tolerance tol. If the second argument is omitted, it is taken to be
tol = max (size (a)) * sigma(1) * eps;where
eps
is machine precision andsigma(1)
is the largest singular value of a.