ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
ModuleMD::SNAP::ClebschGordanTable Class Reference

Clebsch-Gordan coefficients indexed with doubled angular momenta. More...

#include <snap_cg.h>

Collaboration diagram for ModuleMD::SNAP::ClebschGordanTable:

Classes

struct  Entry

Public Member Functions

 ClebschGordanTable (int twojmax)
double coefficient (int j1, int m1, int j2, int m2, int j, int m) const

Private Member Functions

const Entry * find (int j1, int m1, int j2, int m2, int j, int m) const

Static Private Member Functions

static bool allowed (int j1, int m1, int j2, int m2, int j, int m)
static double coefficient_uncached (int j1, int m1, int j2, int m2, int j, int m)
static double factorial (int value)

Private Attributes

int max_j_
std::vector< Entry > entries_
std::map< std::tuple< int, int, int, int, int, int >, std::size_t > entry_indices_

Detailed Description

Clebsch-Gordan coefficients indexed with doubled angular momenta.

If the stored index is j, the physical angular momentum is j/2. The same convention is used for m and m'.

Constructor & Destructor Documentation

◆ ClebschGordanTable()

ModuleMD::SNAP::ClebschGordanTable::ClebschGordanTable ( int twojmax)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ allowed()

bool ModuleMD::SNAP::ClebschGordanTable::allowed ( int j1,
int m1,
int j2,
int m2,
int j,
int m )
staticprivate
Here is the caller graph for this function:

◆ coefficient()

double ModuleMD::SNAP::ClebschGordanTable::coefficient ( int j1,
int m1,
int j2,
int m2,
int j,
int m ) const
Here is the call graph for this function:

◆ coefficient_uncached()

double ModuleMD::SNAP::ClebschGordanTable::coefficient_uncached ( int j1,
int m1,
int j2,
int m2,
int j,
int m )
staticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ factorial()

double ModuleMD::SNAP::ClebschGordanTable::factorial ( int value)
staticprivate
Here is the caller graph for this function:

◆ find()

const ClebschGordanTable::Entry * ModuleMD::SNAP::ClebschGordanTable::find ( int j1,
int m1,
int j2,
int m2,
int j,
int m ) const
private
Here is the caller graph for this function:

Member Data Documentation

◆ entries_

std::vector<Entry> ModuleMD::SNAP::ClebschGordanTable::entries_
private

◆ entry_indices_

std::map<std::tuple<int, int, int, int, int, int>, std::size_t> ModuleMD::SNAP::ClebschGordanTable::entry_indices_
private

◆ max_j_

int ModuleMD::SNAP::ClebschGordanTable::max_j_
private

The documentation for this class was generated from the following files: