StatMech
Loading...
Searching...
No Matches
HilbertSpace< int > Class Reference

#include <HilbertSpace.hpp>

Collaboration diagram for HilbertSpace< int >:
Collaboration graph

Public Member Functions

__host__ __device__ HilbertSpace (int dim)
 Constructor.
 
__host__ __device__ HilbertSpace ()=default
 Default constructor.
 
__host__ __device__ HilbertSpace (HilbertSpace const &other)=default
 Copy constructor.
 
__host__ __device__ HilbertSpace (HilbertSpace &&other)=default
 Move constructor.
 
__host__ __device__ ~HilbertSpace ()=default
 Destructor.
 
Operator overloads
__host__ __device__ HilbertSpaceoperator= (HilbertSpace const &other)=default
 Copy assignment operator.
 
__host__ __device__ HilbertSpaceoperator= (HilbertSpace &&other)=default
 Move assignment operator.
 
__host__ __device__ bool operator== (HilbertSpace const &other) const
 Equality operator.
 
__host__ __device__ int dim () const
 

Private Attributes

int m_dim = 0
 

Constructor & Destructor Documentation

◆ HilbertSpace() [1/4]

__host__ __device__ HilbertSpace< int >::HilbertSpace ( int  dim)
inline

Constructor.

Parameters
dimDimension of the Hilbert space to be constructed
57: m_dim{dim} { debug_constructor_printf(1); }
__host__ __device__ int dim() const
Definition HilbertSpace.hpp:108
int m_dim
Definition HilbertSpace.hpp:49

◆ HilbertSpace() [2/4]

__host__ __device__ HilbertSpace< int >::HilbertSpace ( )
default

Default constructor.

◆ HilbertSpace() [3/4]

__host__ __device__ HilbertSpace< int >::HilbertSpace ( HilbertSpace< int > const &  other)
default

Copy constructor.

Parameters
other

◆ HilbertSpace() [4/4]

__host__ __device__ HilbertSpace< int >::HilbertSpace ( HilbertSpace< int > &&  other)
default

Move constructor.

Parameters
other

◆ ~HilbertSpace()

__host__ __device__ HilbertSpace< int >::~HilbertSpace ( )
default

Destructor.

Member Function Documentation

◆ dim()

__host__ __device__ int HilbertSpace< int >::dim ( ) const
inline
108{ return m_dim; };

◆ operator=() [1/2]

__host__ __device__ HilbertSpace & HilbertSpace< int >::operator= ( HilbertSpace< int > &&  other)
default

Move assignment operator.

Parameters
other
Returns
*this

◆ operator=() [2/2]

__host__ __device__ HilbertSpace & HilbertSpace< int >::operator= ( HilbertSpace< int > const &  other)
default

Copy assignment operator.

Parameters
other
Returns
*this

◆ operator==()

__host__ __device__ bool HilbertSpace< int >::operator== ( HilbertSpace< int > const &  other) const
inline

Equality operator.

Parameters
other
Returns
bool
103 {
104 return this->dim() == other.dim();
105 }

Member Data Documentation

◆ m_dim

int HilbertSpace< int >::m_dim = 0
private

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