MADNESS  0.10.1
Public Member Functions | Public Attributes | Friends | List of all members
Spinor Class Reference

defines a 4-spinor More...

Public Member Functions

 Spinor ()
 
 Spinor (const vector_complex_function_3d &components)
 
 Spinor (World &world)
 
Spinor operator+ (const Spinor &other) const
 
Spinoroperator+= (const Spinor &other)
 
Spinor operator- (const Spinor &other) const
 
Spinoroperator-= (const Spinor &other)
 
void plot (const std::string filename) const
 
void print_norms (std::string text)
 
Spinortruncate ()
 
Worldworld () const
 

Public Attributes

vector_complex_function_3d components
 

Friends

double_complex inner (const Spinor &bra, const Spinor &ket)
 

Detailed Description

defines a 4-spinor

Constructor & Destructor Documentation

◆ Spinor() [1/3]

Spinor::Spinor ( )
inline

◆ Spinor() [2/3]

Spinor::Spinor ( World world)
inline

◆ Spinor() [3/3]

Spinor::Spinor ( const vector_complex_function_3d components)
inline

Member Function Documentation

◆ operator+()

Spinor Spinor::operator+ ( const Spinor other) const
inline

References components, and madness::copy().

◆ operator+=()

Spinor& Spinor::operator+= ( const Spinor other)
inline

References components.

◆ operator-()

Spinor Spinor::operator- ( const Spinor other) const
inline

References components, and madness::copy().

◆ operator-=()

Spinor& Spinor::operator-= ( const Spinor other)
inline

References components.

◆ plot()

void Spinor::plot ( const std::string  filename) const
inline

◆ print_norms()

void Spinor::print_norms ( std::string  text)
inline

◆ truncate()

Spinor& Spinor::truncate ( )
inline

References clight, and thresh.

Referenced by apply_bsh(), and MatrixOperator::operator()().

◆ world()

World& Spinor::world ( ) const
inline

Friends And Related Function Documentation

◆ inner

double_complex inner ( const Spinor bra,
const Spinor ket 
)
friend

Member Data Documentation

◆ components

vector_complex_function_3d Spinor::components

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