We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c75967 commit 5d6e3a1Copy full SHA for 5d6e3a1
1 file changed
library/math/matrix_related/row_reduce.hpp
@@ -8,8 +8,7 @@
8
//! affected by row operations
9
//! @time O(n * m * min(cols, n))
10
//! @space O(1)
11
-pair<int, int> row_reduce(vector<vector<int>>& mat,
12
- int cols) {
+pii row_reduce(vector<vector<int>>& mat, int cols) {
13
int n = sz(mat), m = sz(mat[0]), rank = 0;
14
int det = 1;
15
for (int col = 0; col < cols && rank < n; col++) {
0 commit comments