MCPcopy 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

8typedef vector<vector<dbl> > matrix;
9
10void 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
18void test2(){
19 matrix A(3);

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected