Merge pull request #14 from fmgjcoppens/fix/repl_matMul_calls

Replaced old matMul() function calls.
This commit is contained in:
François Coppens 2021-03-11 15:09:07 +01:00 committed by GitHub
commit 4c7a567750
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -74,7 +74,8 @@ int test_cycle(H5File file, int cycle) {
showMatrix(slater_inverse, dim, "NEW Inverse");
#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);
#ifdef DEBUG

View File

@ -74,7 +74,8 @@ int test_cycle(H5File file, int cycle) {
showMatrix(slater_inverse, dim, "NEW Inverse");
#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);
#ifdef DEBUG