+ 2
Can we write a program to find the rank of a matrix?
Is it possible to write a simple algorithm that takes a matrix from the user and returns the rank of the matrix.
1 Answer
+ 1
In Python:
import numpy
A = numpy.matrix([[1,3,7],[2,8,3],[7,8,1]])
print(numpy.linalg.matrix_rank(A))
https://code.sololearn.com/cLX02h0bdeho/?ref=app