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

References components.

◆ Spinor() [2/3]

Spinor::Spinor ( World world)
inline

References components, and world().

◆ 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, copy(), and world().

◆ operator+=()

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

References components.

◆ operator-()

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

References components, copy(), and world().

◆ 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

◆ world()

World & Spinor::world ( ) const
inline

Friends And Related Symbol 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: