summaryrefslogtreecommitdiff
path: root/matrix/rank.py
diff options
context:
space:
mode:
Diffstat (limited to 'matrix/rank.py')
-rw-r--r--matrix/rank.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/matrix/rank.py b/matrix/rank.py
new file mode 100644
index 0000000..6ade71b
--- /dev/null
+++ b/matrix/rank.py
@@ -0,0 +1,7 @@
+
+import numpy as np
+from numpy.linalg import matrix_rank
+
+if __name__ == '__main__':
+ m = np.asarray([[1, 2, 3], [4, 5, 6], [5, 7, 9]])
+ matrix_rank(m) \ No newline at end of file