![]() |
QMCPACK
|
Drop in replacement for OhmmsMatrix as a storage object backed by PooledMemory, does not support PETE. More...
Public Member Functions | |
ConstantSizeMatrix (size_t m, size_t n, size_t m_max, size_t n_max, T val=T()) | |
ConstantSizeMatrix (const ConstantSizeMatrix &csm) | |
const T * | operator[] (size_t i) const |
T * | operator[] (size_t i) |
template<typename Allocator = ALLOC, typename = IsHostSafe<Allocator>> | |
T & | operator() (size_t i) |
template<typename Allocator = ALLOC, typename = IsHostSafe<Allocator>> | |
T | operator() (size_t i) const |
template<typename Allocator = ALLOC, typename = IsHostSafe<Allocator>> | |
T & | operator() (size_t i, size_t j) |
template<typename Allocator = ALLOC, typename = IsHostSafe<Allocator>> | |
const T & | operator() (size_t i, size_t j) const |
T * | data () |
const T * | data () const |
size_t | capacity () |
size_t | n_capacity () |
size_t | size () const |
size_t | cols () const |
size_t | rows () const |
void | resize (size_t m, size_t n) |
auto | begin () |
auto | end () |
auto | begin () const |
auto | end () const |
template<class RHS , typename allocator = ALLOC, typename = IsHostSafe<allocator>> | |
void | copy (const RHS &rhs) |
Methods for assignment or copy of identically sized or smaller ConstantSizeMatrix<T, ALLOC>. More... | |
void | copy (const ConstantSizeMatrix &rhs) |
ConstantSizeMatrix & | operator= (const ConstantSizeMatrix &rhs) |
template<template< typename, class > class RHS, typename TP , class ALLOCP , typename = IsHostSafe<ALLOC>, typename = IsHostSafe<ALLOCP>> | |
ConstantSizeMatrix< T, ALLOC > & | operator= (const RHS< TP, ALLOCP > &rhs) |
template<class TP , class ALLOCP , typename = IsHostSafe<ALLOC>, typename = IsHostSafe<ALLOCP>> | |
ConstantSizeMatrix< T, ALLOC > & | operator= (const Matrix< TP, ALLOCP > &rhs) |
Private Attributes | |
size_t | m_ |
size_t | n_ |
size_t | m_max_ |
size_t | n_max_ |
size_t | capacity_ |
std::vector< T, ALLOC > | data_ |
Drop in replacement for OhmmsMatrix as a storage object backed by PooledMemory, does not support PETE.
rows are contiguous i.e. it's row major like OhmmsMatrix Constant size removes worry about synchronizing DataSet in Walker.
Reproduces some creative operator semantics from OhmmsMatrix, be careful.
This is intended as a host object, Not for use on accelerators.
Definition at line 23 of file ConstantSizeMatrix.hpp.
|
inline |
|
inline |
Definition at line 33 of file ConstantSizeMatrix.hpp.
|
inline |
Definition at line 187 of file ConstantSizeMatrix.hpp.
Referenced by ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::ConstantSizeMatrix().
|
inline |
Definition at line 189 of file ConstantSizeMatrix.hpp.
|
inline |
Definition at line 154 of file ConstantSizeMatrix.hpp.
Referenced by Walker< qmcplusplus::QMCTraits, qmcplusplus::PtclOnLatticeTraits >::copyFromBuffer(), Walker< qmcplusplus::QMCTraits, qmcplusplus::PtclOnLatticeTraits >::registerData(), ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::resize(), qmcplusplus::TEST_CASE(), and Walker< qmcplusplus::QMCTraits, qmcplusplus::PtclOnLatticeTraits >::updateBuffer().
|
inline |
|
inline |
Methods for assignment or copy of identically sized or smaller ConstantSizeMatrix<T, ALLOC>.
Definition at line 46 of file ConstantSizeMatrix.hpp.
Referenced by Walker< qmcplusplus::QMCTraits, qmcplusplus::PtclOnLatticeTraits >::makeCopy().
|
inline |
Definition at line 52 of file ConstantSizeMatrix.hpp.
|
inline |
Definition at line 151 of file ConstantSizeMatrix.hpp.
Referenced by Walker< qmcplusplus::QMCTraits, qmcplusplus::PtclOnLatticeTraits >::copyFromBuffer(), Walker< qmcplusplus::QMCTraits, qmcplusplus::PtclOnLatticeTraits >::getPropertyBase(), ParticleSet::getPropertyBase(), Walker< qmcplusplus::QMCTraits, qmcplusplus::PtclOnLatticeTraits >::registerData(), and Walker< qmcplusplus::QMCTraits, qmcplusplus::PtclOnLatticeTraits >::updateBuffer().
|
inline |
Definition at line 152 of file ConstantSizeMatrix.hpp.
|
inline |
Definition at line 188 of file ConstantSizeMatrix.hpp.
Referenced by ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::ConstantSizeMatrix().
|
inline |
Definition at line 190 of file ConstantSizeMatrix.hpp.
|
inline |
Definition at line 155 of file ConstantSizeMatrix.hpp.
|
inline |
Definition at line 120 of file ConstantSizeMatrix.hpp.
|
inline |
Definition at line 129 of file ConstantSizeMatrix.hpp.
|
inline |
Definition at line 139 of file ConstantSizeMatrix.hpp.
|
inline |
Definition at line 146 of file ConstantSizeMatrix.hpp.
|
inline |
Definition at line 61 of file ConstantSizeMatrix.hpp.
|
inline |
Definition at line 80 of file ConstantSizeMatrix.hpp.
|
inline |
Definition at line 89 of file ConstantSizeMatrix.hpp.
|
inline |
Definition at line 113 of file ConstantSizeMatrix.hpp.
|
inline |
Definition at line 116 of file ConstantSizeMatrix.hpp.
|
inline |
Definition at line 161 of file ConstantSizeMatrix.hpp.
Referenced by MCPopulation::createWalkers(), MCWalkerConfiguration::resetWalkerProperty(), Walker< qmcplusplus::QMCTraits, qmcplusplus::PtclOnLatticeTraits >::resizeProperty(), and qmcplusplus::TEST_CASE().
|
inline |
Definition at line 159 of file ConstantSizeMatrix.hpp.
|
inline |
|
private |
Definition at line 197 of file ConstantSizeMatrix.hpp.
Referenced by ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::capacity().
|
private |
Definition at line 198 of file ConstantSizeMatrix.hpp.
Referenced by ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::begin(), ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::ConstantSizeMatrix(), ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::copy(), ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::data(), ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::end(), ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::operator()(), ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::operator=(), and ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::operator[]().
|
private |
Definition at line 193 of file ConstantSizeMatrix.hpp.
Referenced by ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::operator=(), ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::resize(), ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::rows(), and ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::size().
|
private |
Definition at line 195 of file ConstantSizeMatrix.hpp.
Referenced by ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::operator=(), and ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::resize().
|
private |
Definition at line 194 of file ConstantSizeMatrix.hpp.
Referenced by ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::cols(), ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::operator()(), ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::operator=(), ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::resize(), and ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::size().
|
private |
Definition at line 196 of file ConstantSizeMatrix.hpp.
Referenced by ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::n_capacity(), ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::operator()(), ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::operator=(), ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::operator[](), and ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > >::resize().