Small bugfix in qmckl_slagel_splitting()

This commit is contained in:
Francois Coppens 2022-07-21 08:16:25 +02:00
parent 0a083e2875
commit f35ad6a777
2 changed files with 3 additions and 6 deletions

View File

@ -322,9 +322,7 @@ uint32_t qmckl_woodbury_k(const uint64_t vLDS,
j += min(abs(ipiv[i] - i), 1); j += min(abs(ipiv[i] - i), 1);
det *= B[(N_updates + 1) * i]; det *= B[(N_updates + 1) * i];
} }
if (j & 1 == 0) { if (j & 1 == 0) det = -det; // multiply det with -1 if j is even
det = -det;
}
// Check if determinant of B is not too close to zero // Check if determinant of B is not too close to zero
if (fabs(det) < breakdown) { if (fabs(det) < breakdown) {
@ -368,8 +366,7 @@ uint32_t qmckl_slagel_splitting(
const uint32_t LDS = 24; const uint32_t LDS = 24;
const uint32_t Dim = 21; const uint32_t Dim = 21;
// double __attribute__((aligned(8))) C[N_updates * Dim]; double __attribute__((aligned(8))) C[LDS];
double __attribute__((aligned(8))) C[Dim];
double __attribute__((aligned(8))) D[LDS]; double __attribute__((aligned(8))) D[LDS];
uint32_t l = 0; uint32_t l = 0;

View File

@ -4,7 +4,7 @@
#define DATASET "dataset_329d_zeropadded_cm.hdf5" #define DATASET "dataset_329d_zeropadded_cm.hdf5"
// #define DATASET "dataset_15784d_zeropadded_cm.hdf5" // #define DATASET "dataset_15784d_zeropadded_cm.hdf5"
#define REPETITIONS 100000 #define REPETITIONS 1000000
uint64_t n_splits; uint64_t n_splits;
uint64_t block_fail; uint64_t block_fail;