MADNESS 0.10.1
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
Spinor & operator+= (const Spinor &other)
Spinor operator- (const Spinor &other) const
Spinor & operator-= (const Spinor &other)
void plot (const std::string filename) const
void print_norms (std::string text)
Spinor & truncate ()
World & world () 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

References components.

Member Function Documentation

◆ operator+()

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

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

◆ operator+=()

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

References Spinor(), and components.

◆ operator-()

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

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

◆ operator-=()

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

References Spinor(), and 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()

◆ inner

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

References Spinor(), components, and inner.

Referenced by inner.

Member Data Documentation

◆ components


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