- Timestamp:
- 07/28/09 15:53:00 (15 years ago)
- Location:
- library/tests
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/square_mat_stress.cpp
r426 r438 72 72 cout << "opupdt: " << elapsed << " s" << endl; 73 73 74 TMatrix invmat(sz); 75 76 tt.tic(); 77 sqmat.inv(invmat); 78 elapsed = tt.toc(); 79 80 if (!fast) { 81 mat invA = inv(A); 82 CHECK_CLOSE(invA, invmat.to_mat(), epsilon); 83 } 84 85 cout << "inv: " << elapsed << " s" << endl; 86 74 87 sz *= 7; 75 88 } -
library/tests/square_mat_test.cpp
r437 r438 45 45 res = A + w * outer_product(v, v); 46 46 CHECK_CLOSE(res, sqmat2.to_mat(), epsilon); 47 48 TMatrix invmat(sz); 49 sqmat.inv(invmat); 50 mat invA = inv(A); 51 CHECK_CLOSE(invA, invmat.to_mat(), epsilon); 47 52 48 53 double d = det(A);