MPQC  3.0.0-alpha

A range of a space where all objects in the subspace range are assumed to have the same space rank. More...

#include <mpqc/ci/subspace.hpp>

Inheritance diagram for mpqc::ci::Subspace< Spin >:
mpqc::ci::Space< Spin > mpqc::range

Public Types

typedef ci::Space< SpinSpace
 
- Public Types inherited from mpqc::range
typedef boost::iterator_range< boost::range_detail::integer_iterator< int64_t > > iterator_range
 

Public Member Functions

 Subspace (Space s, mpqc::range r)
 Constructs subspace. More...
 
bool operator== (const Subspace &a) const
 Compares two subspaces by their range and space.
 
bool test (int idx) const
 test if index is in subspace range
 
std::vector< Subspacesplit (size_t block) const
 Split the subspace into a vector of subspaces.
 
- Public Member Functions inherited from mpqc::ci::Space< Spin >
 Space (int rank)
 
int rank () const
 
bool operator== (const Space &s) const
 
- Public Member Functions inherited from mpqc::range
 range (int64_t size=0)
 
 range (int64_t begin, int64_t end)
 
int64_t size () const
 
bool test (int64_t value) const
 

Detailed Description

template<class Spin>
struct mpqc::ci::Subspace< Spin >

A range of a space where all objects in the subspace range are assumed to have the same space rank.

Constructor & Destructor Documentation

◆ Subspace()

template<class Spin>
mpqc::ci::Subspace< Spin >::Subspace ( Space  s,
mpqc::range  r 
)
inline

Constructs subspace.

Referenced by mpqc::ci::Subspace< mpqc::ci::Spin >::split().


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

Generated at Sun Jan 26 2020 23:24:02 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.16.