dpnp.linalg.matrix_rank
- dpnp.linalg.matrix_rank(input, tol=None, hermitian=False)[source]
Return matrix rank of array Rank of the array is the number of singular values of the array that are greater than tol.
- Parameters
M ({(M,), (..., M, N)} array_like) – Input vector or stack of matrices.
tol ((...) array_like, float, optional) – Threshold below which SVD values are considered zero. If tol is None, and
S
is an array with singular values for M, andeps
is the epsilon value for datatype ofS
, then tol is set toS.max() * max(M.shape) * eps
.hermitian (bool, optional) – If True, M is assumed to be Hermitian (symmetric if real-valued), enabling a more efficient method for finding singular values. Defaults to False.
- Returns
rank – Rank of M.
- Return type
(…) array_like