QMCPACK
RecordArray< T > Class Template Reference
+ Inheritance diagram for RecordArray< T >:
+ Collaboration diagram for RecordArray< T >:

Public Types

using Base = Matrix< T >
 
- Public Types inherited from Matrix< T >
using Type_t = T
 
using value_type = T
 
using pointer = T *
 
using const_pointer = const T *
 
using Container_t = Vector< T, std::allocator< T > >
 
using size_type = typename Container_t::size_type
 
using iterator = typename Container_t::iterator
 
using This_t = Matrix< T, std::allocator< T > >
 

Public Member Functions

 RecordArray ()
 
 RecordArray (size_t nentries, size_t nparams)
 Constructor specifying the number of parameters and entries. More...
 
void resize (size_t nentries, size_t nparams)
 Change the size. More...
 
int getNumOfEntries () const
 
int getNumOfParams () const
 
- Public Member Functions inherited from Matrix< T >
 Matrix ()
 
 Matrix (size_type n)
 
 Matrix (size_type n, size_type m)
 
 Matrix (T *ref, size_type n, size_type m)
 constructor with an initialized ref More...
 
 Matrix (const CONTAINER &other, T *ref, size_type n, size_type m)
 This allows construction of a Matrix on another containers owned memory that is using a dualspace allocator. More...
 
 Matrix (const This_t &rhs)
 
 ~Matrix ()
 
size_type size () const
 
size_type size (int i) const
 
size_type rows () const
 
size_type cols () const
 
size_type size1 () const
 
size_type size2 () const
 
size_type extent (int i) const
 
Container_t::iterator begin ()
 
Container_t::const_iterator begin () const
 
Container_t::iterator begin (int i)
 
Container_t::const_iterator begin (int i) const
 
Container_t::iterator end ()
 
Container_t::const_iterator end () const
 
void resize (size_type n, size_type m)
 Resize the container. More...
 
void free ()
 
void attachReference (T *ref)
 
void attachReference (T *ref, size_type n, size_type m)
 
void attachReference (const CONTAINER &other, T *ref, size_type n, size_type m)
 Attach to pre-allocated memory and propagate the allocator of the owning container. More...
 
void add (size_type n)
 
void add (const T1 *sub, size_type d1, size_type d2, size_type i0, size_type j0)
 
void add (const T1 *sub, size_type d1, size_type d2, size_type i0, size_type j0, const T &phi)
 
void add (const SubMat_t &sub, unsigned int i0, unsigned int j0)
 
void add (const This_t &sub, unsigned int i0, unsigned int j0)
 
void copy (const This_t &rhs)
 
void assignUpperLeft (const Matrix< T_FROM, ALLOC_FROM > &from)
 This assigns from a matrix with larger row size (used for alignment) to whatever the rowsize is here. More...
 
This_toperator= (const This_t &rhs)
 
This_toperator= (const RHS &rhs)
 
pointer data ()
 
const_pointer data () const
 
const Type_tdata (size_type i) const
 
Type_tdata (size_type i)
 returns a pointer of i-th row, g++ iterator problem More...
 
pointer device_data ()
 
const_pointer device_data () const
 
pointer first_address ()
 
const_pointer first_address () const
 
pointer last_address ()
 
const Type_tlast_address () const
 
const Type_toperator[] (size_type i) const
 
Type_toperator[] (size_type i)
 returns a pointer of i-th row, g++ iterator problem More...
 
Type_toperator() (size_type i)
 
Type_t operator() (size_type i) const
 
Type_toperator() (size_type i, size_type j)
 
const Type_toperator() (size_type i, size_type j) const
 
void swap_rows (int r1, int r2)
 
void swap_cols (int c1, int c2)
 
void replaceRow (IT first, size_type i)
 
void replaceColumn (IT first, size_type j)
 
void add2Column (IT first, size_type j)
 
Msg & putMessage (Msg &m)
 
Msg & getMessage (Msg &m)
 
void updateTo (size_type size=0, std::ptrdiff_t offset=0)
 
void updateFrom (size_type size=0, std::ptrdiff_t offset=0)
 

Additional Inherited Members

- Protected Attributes inherited from Matrix< T >
size_type D1
 
size_type D2
 
size_type TotSize
 
Container_t X
 

Detailed Description

template<typename T>
class qmcplusplus::RecordArray< T >

Definition at line 25 of file RecordArray.hpp.

Member Typedef Documentation

◆ Base

using Base = Matrix<T>

Definition at line 28 of file RecordArray.hpp.

Constructor & Destructor Documentation

◆ RecordArray() [1/2]

RecordArray ( )
inline

Definition at line 30 of file RecordArray.hpp.

30 {}

◆ RecordArray() [2/2]

RecordArray ( size_t  nentries,
size_t  nparams 
)
inline

Constructor specifying the number of parameters and entries.

Definition at line 33 of file RecordArray.hpp.

33 : Base(nentries, nparams) {}

Member Function Documentation

◆ getNumOfEntries()

int getNumOfEntries ( ) const
inline

Definition at line 41 of file RecordArray.hpp.

References Matrix< T >::rows().

Referenced by DescentEngineHandle::takeSample(), and qmcplusplus::TEST_CASE().

41 { return Base::rows(); }
size_type rows() const
Definition: OhmmsMatrix.h:77

◆ getNumOfParams()

int getNumOfParams ( ) const
inline

◆ resize()

void resize ( size_t  nentries,
size_t  nparams 
)
inline

Change the size.

Definition at line 36 of file RecordArray.hpp.

References Matrix< T >::resize().

Referenced by qmcplusplus::TEST_CASE().

37  {
38  Base::resize(nentries, nparams);
39  }
void resize(size_type n, size_type m)
Resize the container.
Definition: OhmmsMatrix.h:99

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