bionet.utils.numpy_extras.rank

bionet.utils.numpy_extras.rank(x, *args)

Compute matrix rank.

Estimate the number of linearly independent rows or columns of the matrix x.

Parameters:

x : array_like, shape (M, N)

Matrix to analyze.

tol : float

Tolerance; the default is max(svd(x)[1])*max(shape(x))*1e-13

Returns:

r : int

Estimated rank of matrix.