Xped
Loading...
Searching...
No Matches
Xped::Basis Class Reference

#include <Basis.hpp>

Public Member Functions

 Basis ()
 
 Basis (std::size_t dim_in)
 
const std::size_t dim () const
 
Basis add (const Basis &other) const
 
Basis combine (const Basis &other) const
 
auto print () const
 
auto printHistory () const
 
bool operator== (const Basis &other) const
 
template<typename Ar >
void serialize (Ar &ar)
 

Friends

template<typename Symmetry_ , std::size_t depth, typename AllocationPolicy >
class Qbasis
 
std::ostream & operator<< (std::ostream &os, const Basis &basis)
 

Detailed Description

Class for a plain basis without symmetries. A basis with symmetries is a collection of plain bases for each Symmetry entry

Constructor & Destructor Documentation

◆ Basis() [1/2]

Xped::Basis::Basis ( )
inline

Does nothing.

◆ Basis() [2/2]

Xped::Basis::Basis ( std::size_t  dim_in)
inline

Member Function Documentation

◆ add()

Basis Xped::Basis::add ( const Basis other) const

Adds to bases together.

Here is the call graph for this function:

◆ combine()

Basis Xped::Basis::combine ( const Basis other) const

Returns the tensor product basis. This function also saves the history of the combination process for later use. See leftAmount() and rightAmount().

Here is the call graph for this function:

◆ dim()

const std::size_t Xped::Basis::dim ( ) const
inline
Here is the caller graph for this function:

◆ operator==()

bool Xped::Basis::operator== ( const Basis other) const
inline
Here is the call graph for this function:

◆ print()

auto Xped::Basis::print ( ) const

Prints the basis.

◆ printHistory()

auto Xped::Basis::printHistory ( ) const

Prints the history of the basis.

◆ serialize()

template<typename Ar >
void Xped::Basis::serialize ( Ar &  ar)
inline

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const Basis basis 
)
friend

◆ Qbasis

template<typename Symmetry_ , std::size_t depth, typename AllocationPolicy >
friend class Qbasis
friend

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