GQCP
|
#include <CartesianExponents.hpp>
Public Member Functions | |
CartesianExponents (const std::array< size_t, 3 > &array) | |
CartesianExponents (const size_t x, const size_t y, const size_t z) | |
CartesianExponents (const std::vector< size_t > &vector) | |
bool | operator< (const CartesianExponents &rhs) const |
bool | operator== (const CartesianExponents &rhs) const |
bool | operator!= (const CartesianExponents &rhs) const |
size_t | angularMomentum () const |
std::vector< CartesianExponents > | allPermutations () const |
const std::array< size_t, 3 > & | asArray () const |
std::string | description () const |
size_t | value (const CartesianDirection direction) const |
Public Attributes | |
std::array< size_t, 3 > | exponents |
A class that represents exponents of the Cartesian functions x, y and z
GQCP::CartesianExponents::CartesianExponents | ( | const std::array< size_t, 3 > & | array | ) |
array | the array containing the x-, y- and z-exponent (in that order) |
GQCP::CartesianExponents::CartesianExponents | ( | const size_t | x, |
const size_t | y, | ||
const size_t | z | ||
) |
x | the exponent in x |
y | the exponent in y |
z | the exponent in z |
GQCP::CartesianExponents::CartesianExponents | ( | const std::vector< size_t > & | vector | ) |
vector | the vector containing the x-, y- and z-exponent (in that order) |
std::vector< CartesianExponents > GQCP::CartesianExponents::allPermutations | ( | ) | const |
size_t GQCP::CartesianExponents::angularMomentum | ( | ) | const |
|
inline |
std::string GQCP::CartesianExponents::description | ( | ) | const |
bool GQCP::CartesianExponents::operator!= | ( | const CartesianExponents & | rhs | ) | const |
rhs | the right-hand side of the operator == |
bool GQCP::CartesianExponents::operator< | ( | const CartesianExponents & | rhs | ) | const |
rhs | the right-hand side of the operator < |
This means that {1, 0, 0}(=x) < {2, 0, 0}(=x^2), and {2, 0, 0}(=x^2) < {1, 1, 0}(=xy)
bool GQCP::CartesianExponents::operator== | ( | const CartesianExponents & | rhs | ) | const |
rhs | the right-hand side of the operator == |
|
inline |
direction | the direction (x,y,z) whose exponent should be returned |
std::array<size_t, 3> GQCP::CartesianExponents::exponents |