# cupy.linalg.matrix_rank¶

cupy.linalg.matrix_rank(M, tol=None)[source]

Return matrix rank of array using SVD method

Parameters: M (cupy.ndarray) – Input array. Its ndim must be less than or equal to 2. tol (None or float) – Threshold of singular value of M. When tol is None, and eps is the epsilon value for datatype of M, then tol is set to S.max() * max(M.shape) * eps, where S is the singular value of M. It obeys numpy.linalg.matrix_rank(). Rank of M. cupy.ndarray