Numpy linalg matrix_rank() method is used to calculate the Matrix rank of a given matrix using the SVD method. The matrix rank is calculated by the number of singular values of the Matrix that are greater than tol.
The matrix_rank() function returns the matrix rank of an array using the SVD method.
numpy.linalg.matrix_rank(array, tol)
#python #numpy