mirror of
https://github.com/TREX-CoE/Sherman-Morrison.git
synced 2024-12-26 06:15:08 +01:00
Simplify initialization with 0
This commit is contained in:
parent
b9efd7ef0b
commit
2d2085f739
@ -23,16 +23,7 @@ void MaponiA3(double *Slater0, double *Slater_inv, unsigned int M,
|
|||||||
for (l = 0; l < M; l++) {
|
for (l = 0; l < M; l++) {
|
||||||
ylk[l] = new double *[M + 1];
|
ylk[l] = new double *[M + 1];
|
||||||
for (k = 0; k < M + 1; k++) {
|
for (k = 0; k < M + 1; k++) {
|
||||||
ylk[l][k] = new double[M + 1];
|
ylk[l][k] = new double[M + 1] {0};
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Initialize ylk with zeros
|
|
||||||
for (l = 0; l < M; l++) {
|
|
||||||
for (k = 0; k < M + 1; k++) {
|
|
||||||
for (i = 0; i < M + 1; i++) {
|
|
||||||
ylk[l][k][i] = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user