mirror of
https://github.com/TREX-CoE/Sherman-Morrison.git
synced 2024-12-27 06:43:55 +01:00
Merge pull request #14 from fmgjcoppens/fix/repl_matMul_calls
Replaced old matMul() function calls.
This commit is contained in:
commit
4c7a567750
@ -74,7 +74,8 @@ int test_cycle(H5File file, int cycle) {
|
|||||||
showMatrix(slater_inverse, dim, "NEW Inverse");
|
showMatrix(slater_inverse, dim, "NEW Inverse");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
double * res = matMul(slater_matrix, slater_inverse, dim);
|
double * res = new double[dim*dim] {0};
|
||||||
|
matMul(slater_matrix, slater_inverse, res, dim);
|
||||||
bool ok = is_identity(res, dim, 0.5e-4);
|
bool ok = is_identity(res, dim, 0.5e-4);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
@ -74,7 +74,8 @@ int test_cycle(H5File file, int cycle) {
|
|||||||
showMatrix(slater_inverse, dim, "NEW Inverse");
|
showMatrix(slater_inverse, dim, "NEW Inverse");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
double * res = matMul(slater_matrix, slater_inverse, dim);
|
double * res = new double[dim*dim] {0};
|
||||||
|
matMul(slater_matrix, slater_inverse, res, dim);
|
||||||
bool ok = is_identity(res, dim, 0.5e-4);
|
bool ok = is_identity(res, dim, 0.5e-4);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
Loading…
Reference in New Issue
Block a user