vSMC
vSMC: Scalable Monte Carlo
Classes | Public Types | Public Member Functions | Protected Member Functions | List of all members
vsmc::StateMatrixBase< Order, 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<MatrixOrder ROrder, typename OutputIter >
void read_state_matrix (OutputIter first) const
 
void resize_dim (std::size_t dim)
 
size_type size () const
 
void swap (StateMatrixBase< Order, 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<MatrixOrder Order, std::size_t Dim, typename T>
class vsmc::StateMatrixBase< Order, Dim, T >

Base type of StateMatrix.

Definition at line 92 of file state_matrix.hpp.

Member Typedef Documentation

template<MatrixOrder Order, std::size_t Dim, typename T>
using vsmc::StateMatrixBase< Order, Dim, T >::size_type = std::size_t

Definition at line 95 of file state_matrix.hpp.

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

Definition at line 97 of file state_matrix.hpp.

template<MatrixOrder Order, std::size_t Dim, typename T>
using vsmc::StateMatrixBase< Order, Dim, T >::state_type = T

Definition at line 96 of file state_matrix.hpp.

Constructor & Destructor Documentation

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

Definition at line 194 of file state_matrix.hpp.

Member Function Documentation

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

Definition at line 128 of file state_matrix.hpp.

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

Definition at line 130 of file state_matrix.hpp.

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

Definition at line 176 of file state_matrix.hpp.

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

Definition at line 140 of file state_matrix.hpp.

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

Definition at line 149 of file state_matrix.hpp.

template<MatrixOrder Order, std::size_t Dim, typename T>
template<MatrixOrder ROrder, typename OutputIter >
void vsmc::StateMatrixBase< Order, Dim, T >::read_state_matrix ( OutputIter  first) const
inline

Definition at line 156 of file state_matrix.hpp.

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

Definition at line 117 of file state_matrix.hpp.

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

Definition at line 126 of file state_matrix.hpp.

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

Definition at line 132 of file state_matrix.hpp.