![]() |
(git:b77b4be)
|
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "../common/grid_common.h"
#include "grid_cpu_prepare_pab.h"
#include "../common/grid_prepare_pab.h"
Go to the source code of this file.
Data Structures | |
struct | cab_store |
Cab matrix container to be passed through get_force/virial to cab_get. More... | |
Functions | |
static void | cab_add (cab_store *cab, const orbital a, const orbital b, const double value) |
Adds given value to matrix element cab[idx(b)][idx(a)]. | |
void | grid_cpu_prepare_get_ldiffs (const enum grid_func func, int *la_min_diff, int *la_max_diff, int *lb_min_diff, int *lb_max_diff) |
Returns block size changes due to transformation grid_prepare_pab. | |
void | grid_cpu_prepare_pab (const enum grid_func func, const int o1, const int o2, const int la_max, const int la_min, const int lb_max, const int lb_min, const double zeta, const double zetb, const int n1, const int n2, const double pab[n2][n1], const int n1_prep, const int n2_prep, double pab_prep[n2_prep][n1_prep]) |
Selects and transforms a sub-block of the given density matrix block. See grid_cpu_prepare_pab.h for details. | |
|
inlinestatic |
Adds given value to matrix element cab[idx(b)][idx(a)].
Definition at line 28 of file grid_cpu_prepare_pab.c.
void grid_cpu_prepare_get_ldiffs | ( | const enum grid_func | func, |
int * | la_min_diff, | ||
int * | la_max_diff, | ||
int * | lb_min_diff, | ||
int * | lb_max_diff | ||
) |
Returns block size changes due to transformation grid_prepare_pab.
Definition at line 39 of file grid_cpu_prepare_pab.c.
void grid_cpu_prepare_pab | ( | const enum grid_func | func, |
const int | o1, | ||
const int | o2, | ||
const int | la_max, | ||
const int | la_min, | ||
const int | lb_max, | ||
const int | lb_min, | ||
const double | zeta, | ||
const double | zetb, | ||
const int | n1, | ||
const int | n2, | ||
const double | pab[n2][n1], | ||
const int | n1_prep, | ||
const int | n2_prep, | ||
double | pab_prep[n2_prep][n1_prep] | ||
) |
Selects and transforms a sub-block of the given density matrix block. See grid_cpu_prepare_pab.h for details.
Selects and transforms a sub-block of the given density matrix block.
Definition at line 54 of file grid_cpu_prepare_pab.c.