1 /* rtest_dgeqrf.mac -- test script for dgeqrf
2 * Copyright 2011 by Robert Dodier
3 * I release this work under terms of the GNU General Public License.
6 (if not ?fboundp ('dgeqrf) then load (lapack), 0);
9 (random_matrix () := block ([nr : 5 + random (10), nc : 5 + random (10)],
10 genmatrix (lambda ([i, j], random (100.0) - 50), nr, nc)), 0);
13 set_random_state (make_random_state (12345));
19 mat_norm (q . r - a, 1),
20 if %% < 1e-12 then true else [a, q, r, %%]);
26 mat_norm (q . r - a, 1),
27 if %% < 1e-12 then true else [a, q, r, %%]);
33 mat_norm (q . r - a, 1),
34 if %% < 1e-12 then true else [a, q, r, %%]);
40 mat_norm (q . r - a, 1),
41 if %% < 1e-12 then true else [a, q, r, %%]);
47 mat_norm (q . r - a, 1),
48 if %% < 1e-12 then true else [a, q, r, %%]);
54 mat_norm (q . r - a, 1),
55 if %% < 1e-12 then true else [a, q, r, %%]);
61 mat_norm (q . r - a, 1),
62 if %% < 1e-12 then true else [a, q, r, %%]);
68 mat_norm (q . r - a, 1),
69 if %% < 1e-12 then true else [a, q, r, %%]);
75 mat_norm (q . r - a, 1),
76 if %% < 1e-12 then true else [a, q, r, %%]);
82 mat_norm (q . r - a, 1),
83 if %% < 1e-12 then true else [a, q, r, %%]);
89 mat_norm (q . r - a, 1),
90 if %% < 1e-12 then true else [a, q, r, %%]);
96 mat_norm (q . r - a, 1),
97 if %% < 1e-12 then true else [a, q, r, %%]);