28 |
#include <test/assertimpl.h> |
#include <test/assertimpl.h> |
29 |
|
|
30 |
/* |
/* |
31 |
Test the rank of matrix |
Test the rank of matrix |
32 |
|
|
33 |
[ 1 ] |
[ 1 ] |
34 |
*/ |
*/ |
51 |
G.row = R; |
G.row = R; |
52 |
G.col = R; |
G.col = R; |
53 |
|
|
54 |
|
#ifdef ASC_WITH_MMIO |
55 |
mtx_write_region_mmio(stderr,M,&G); |
mtx_write_region_mmio(stderr,M,&G); |
56 |
|
#endif |
57 |
|
|
58 |
L = linsolqr_create_default(); |
L = linsolqr_create_default(); |
59 |
linsolqr_set_matrix(L,M); |
linsolqr_set_matrix(L,M); |
67 |
} |
} |
68 |
|
|
69 |
/* |
/* |
70 |
Test the rank of matrix |
Test the rank of matrix |
71 |
|
|
72 |
[ 1 0 |
[ 1 0 |
73 |
1 1 ] |
1 1 ] |
93 |
G.row = R; |
G.row = R; |
94 |
G.col = R; |
G.col = R; |
95 |
|
|
96 |
|
#ifdef ASC_WITH_MMIO |
97 |
mtx_write_region_mmio(stderr,M,&G); |
mtx_write_region_mmio(stderr,M,&G); |
98 |
|
#endif |
99 |
|
|
100 |
L = linsolqr_create_default(); |
L = linsolqr_create_default(); |
101 |
linsolqr_set_matrix(L,M); |
linsolqr_set_matrix(L,M); |
109 |
} |
} |
110 |
|
|
111 |
/* |
/* |
112 |
Test the rank of matrix |
Test the rank of matrix |
113 |
|
|
114 |
[ 2 0 1 |
[ 2 0 1 |
115 |
1 1 1 |
1 1 1 |
116 |
0 1 1 ] |
0 1 1 ] |
117 |
*/ |
*/ |
118 |
static void test_qr3x3(void){ |
static void test_qr3x3(void){ |
140 |
G.row = R; |
G.row = R; |
141 |
G.col = R; |
G.col = R; |
142 |
|
|
143 |
|
#ifdef ASC_WITH_MMIO |
144 |
mtx_write_region_mmio(stderr,M,&G); |
mtx_write_region_mmio(stderr,M,&G); |
145 |
|
#endif |
146 |
|
|
147 |
L = linsolqr_create_default(); |
L = linsolqr_create_default(); |
148 |
linsolqr_set_matrix(L,M); |
linsolqr_set_matrix(L,M); |