|
| constexpr int | r3 (const int s0, const int s1, const int s2) |
| | v3rho3 (4): (uuu,uud,udd,ddd) – indexed by the number of d's
|
| constexpr int | r2 (const int s0, const int s1) |
| | v2rho2 (3): (uu,ud,dd)
|
| constexpr int | rs (const int s, const int a) |
| | v2rhosigma (6): [rho u,d] x [sigma uu,ud,dd]
|
| constexpr int | r2s (const int s0, const int s1, const int a) |
| | v3rho2sigma (9): [rho-pair uu,ud,dd] x [sigma uu,ud,dd]
|
| constexpr int | rs2 (const int s, const int a, const int b) |
| | v3rhosigma2 (12): [rho u,d] x [unordered sigma pair]
|
|
| constexpr int | p2 [3][3] = { {0,1,2},{1,3,4},{2,4,5} } |
| | unordered sigma PAIR -> v2sigma2 (6) and the per-rho block of v3rhosigma2
|
| constexpr int | p3 [3][3][3] |
| constexpr double | theta [2][3] = { {2., 1., 0.}, {0., 1., 2.} } |
| constexpr int | chan [2][3] = { {0, 1, -1}, {-1, 0, 1} } |
| | which density-gradient channel goes with (tau, a); -1 where theta vanishes
|
libxc component layout for the spin-POLARIZED case, shared by the closed- and open-shell $g^{xc}$ code. Spin: 0=u, 1=d. Sigma: 0=uu, 1=ud, 2=dd. libxc stores only the unique (unordered) index combinations, which is where all the multiplicities in the contractions come from.