MADNESS 0.10.1
test_localizer.cc File Reference
Include dependency graph for test_localizer.cc:

Functions

double bend (const Vector< double, 3 > v1, const Vector< double, 3 > v2, const Vector< double, 3 > v3)
 angle in degrees between v1–v2–v3 (v2 being the center)
double dist (const Vector< double, 3 > v1, const Vector< double, 3 > v2)
 distance between v1 and v2
double fock_trace (const Tensor< double > &fock)
bool is_aligned (const Vector< double, 3 > &v1, const Vector< double, 3 > &v2, const Vector< double, 3 > &v3, const double thresh=1.e-3)
bool is_centered_normal (const Vector< double, 3 > &v1, const Vector< double, 3 > &v2, const Vector< double, 3 > &v3, const double thresh=1.e-3)
 check if v3 is orthogonal on v1-v2 midbond
bool is_close (const Vector< double, 3 > &v1, const Vector< double, 3 > &v2, const double thresh=1.e-3)
int main (int argc, char **argv)
bool test_ethylene (World &world, const Nemo &nemo, const std::string geometry="ethylene")
 test localized orbitals
bool test_ne_boys (World &world, const Nemo &nemo)
 test localized orbitals: should be pointing towards the edges of a tetrahedron

Function Documentation

◆ bend()

double bend ( const Vector< double, 3 > v1,
const Vector< double, 3 > v2,
const Vector< double, 3 > v3 )

angle in degrees between v1–v2–v3 (v2 being the center)

References madness::inner(), madness::Vector< T, N >::normf(), and madness::constants::pi.

Referenced by test_ne_boys().

◆ dist()

◆ fock_trace()

double fock_trace ( const Tensor< double > & fock)

◆ is_aligned()

bool is_aligned ( const Vector< double, 3 > & v1,
const Vector< double, 3 > & v2,
const Vector< double, 3 > & v3,
const double thresh = 1.e-3 )

References a1, a2, madness::inner(), and thresh.

Referenced by test_ethylene().

◆ is_centered_normal()

bool is_centered_normal ( const Vector< double, 3 > & v1,
const Vector< double, 3 > & v2,
const Vector< double, 3 > & v3,
const double thresh = 1.e-3 )

check if v3 is orthogonal on v1-v2 midbond

References madness::inner(), and thresh.

Referenced by test_ethylene().

◆ is_close()

bool is_close ( const Vector< double, 3 > & v1,
const Vector< double, 3 > & v2,
const double thresh = 1.e-3 )

References thresh.

Referenced by test_ethylene().

◆ main()

◆ test_ethylene()

◆ test_ne_boys()