vSMC
vSMC: Scalable Monte Carlo
Classes | Public Types | Public Member Functions | Protected Member Functions | List of all members
vsmc::StateMatrixBase< Layout, Dim, T > Class Template Reference

Base type of StateMatrix. More...

#include <vsmc/core/state_matrix.hpp>

Classes

class  single_particle_type
 

Public Types

using size_type = std::size_t
 
using state_pack_type = Vector< T >
 
using state_type = T
 

Public Member Functions

state_typedata ()
 
const state_typedata () const
 
template<typename CharT , typename Traits >
std::basic_ostream< CharT, Traits > & print (std::basic_ostream< CharT, Traits > &os, char sepchar= '\t') const
 
template<typename OutputIter >
void read_state (std::size_t pos, OutputIter first) const
 
template<typename OutputIterIter >
void read_state_matrix (OutputIterIter first) const
 
template<MatrixLayout RLayout, typename OutputIter >
void read_state_matrix (OutputIter first) const
 
void resize_dim (std::size_t dim)
 
size_type size () const
 
void swap (StateMatrixBase< Layout, Dim, T > &other)
 

Protected Member Functions

 StateMatrixBase (size_type N)
 
- Protected Member Functions inherited from vsmc::internal::StateMatrixDim< Dim >
void swap (StateMatrixDim< Dim > &)
 

Additional Inherited Members

- Static Public Member Functions inherited from vsmc::internal::StateMatrixDim< Dim >
static constexpr std::size_t dim ()
 

Detailed Description

template<MatrixLayout Layout, std::size_t Dim, typename T>
class vsmc::StateMatrixBase< Layout, Dim, T >

Base type of StateMatrix.

Definition at line 88 of file state_matrix.hpp.

Member Typedef Documentation

template<MatrixLayout Layout, std::size_t Dim, typename T>
using vsmc::StateMatrixBase< Layout, Dim, T >::size_type = std::size_t

Definition at line 91 of file state_matrix.hpp.

template<MatrixLayout Layout, std::size_t Dim, typename T>
using vsmc::StateMatrixBase< Layout, Dim, T >::state_pack_type = Vector<T>

Definition at line 93 of file state_matrix.hpp.

template<MatrixLayout Layout, std::size_t Dim, typename T>
using vsmc::StateMatrixBase< Layout, Dim, T >::state_type = T

Definition at line 92 of file state_matrix.hpp.

Constructor & Destructor Documentation

template<MatrixLayout Layout, std::size_t Dim, typename T>
vsmc::StateMatrixBase< Layout, Dim, T >::StateMatrixBase ( size_type  N)
inlineexplicitprotected

Definition at line 191 of file state_matrix.hpp.

Member Function Documentation

template<MatrixLayout Layout, std::size_t Dim, typename T>
state_type* vsmc::StateMatrixBase< Layout, Dim, T >::data ( )
inline

Definition at line 125 of file state_matrix.hpp.

template<MatrixLayout Layout, std::size_t Dim, typename T>
const state_type* vsmc::StateMatrixBase< Layout, Dim, T >::data ( ) const
inline

Definition at line 127 of file state_matrix.hpp.

template<MatrixLayout Layout, std::size_t Dim, typename T>
template<typename CharT , typename Traits >
std::basic_ostream<CharT, Traits>& vsmc::StateMatrixBase< Layout, Dim, T >::print ( std::basic_ostream< CharT, Traits > &  os,
char  sepchar = '\t' 
) const
inline

Definition at line 173 of file state_matrix.hpp.

template<MatrixLayout Layout, std::size_t Dim, typename T>
template<typename OutputIter >
void vsmc::StateMatrixBase< Layout, Dim, T >::read_state ( std::size_t  pos,
OutputIter  first 
) const
inline

Definition at line 137 of file state_matrix.hpp.

template<MatrixLayout Layout, std::size_t Dim, typename T>
template<typename OutputIterIter >
void vsmc::StateMatrixBase< Layout, Dim, T >::read_state_matrix ( OutputIterIter  first) const
inline

Definition at line 146 of file state_matrix.hpp.

template<MatrixLayout Layout, std::size_t Dim, typename T>
template<MatrixLayout RLayout, typename OutputIter >
void vsmc::StateMatrixBase< Layout, Dim, T >::read_state_matrix ( OutputIter  first) const
inline

Definition at line 153 of file state_matrix.hpp.

template<MatrixLayout Layout, std::size_t Dim, typename T>
void vsmc::StateMatrixBase< Layout, Dim, T >::resize_dim ( std::size_t  dim)
inline

Definition at line 113 of file state_matrix.hpp.

template<MatrixLayout Layout, std::size_t Dim, typename T>
size_type vsmc::StateMatrixBase< Layout, Dim, T >::size ( ) const
inline

Definition at line 123 of file state_matrix.hpp.

template<MatrixLayout Layout, std::size_t Dim, typename T>
void vsmc::StateMatrixBase< Layout, Dim, T >::swap ( StateMatrixBase< Layout, Dim, T > &  other)
inline

Definition at line 129 of file state_matrix.hpp.