+ 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.

28th Apr 2018, 1:54 PM
Sai Nikhil Paruchuru
Sai Nikhil Paruchuru - avatar
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
6th May 2018, 8:50 PM
Víctor
Víctor - avatar