Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cp-algorithms/cp-algorithms
/ test1
Function
test1
test/test_rank_matrix.cpp:10–16 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
8
typedef vector<vector<dbl> > matrix;
9
10
void test1(){
11
matrix A(3);
12
A[0] = {1, 1, 0};
13
A[1] = {0, 1, 0};
14
A[2] = {1, 0, 0};
15
assert(compute_rank(A) == 2);
16
}
17
18
void test2(){
19
matrix A(3);
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected