YAP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
Spin.h File Reference
#include "fwd/Spin.h"
#include "MathUtilities.h"
#include <algorithm>
#include <cstdlib>
#include <numeric>
#include <string>

Go to the source code of this file.

Namespaces

 yap
 
 

Functions

std::string spin_to_string (int twoJ)
 convert 2*J to string (e.g. 1/2, 1, 3/2, etc.)
 
std::string to_string (const SpinVector &two_j)
 convert SpinVector to string
 
std::string to_string (const SpinProjectionVector &two_m)
 convert SpinVector to string
 
constexpr bool triangle (unsigned two_a, unsigned two_b, unsigned two_c)
 
constexpr bool conserves (unsigned two_J, unsigned two_j1, unsigned two_j2, int l)
 
const SpinProjectionVector projections (unsigned two_j)
 
const std::vector
< SpinProjectionVector > 
projections (const SpinVector &two_J)