mroot(A,rank=NULL,method="chol")A is known then it should
be supplied."chol" to use pivoted choloeski decompositon,
which is fast but tends to over-estimate rank. "svd" to use
singular value decomposition, which is slow, but is the most accurate way
to estimate rank.