QMCPACK
container_proxy< Matrix< T > > Struct Template Reference
+ Collaboration diagram for container_proxy< Matrix< T > >:

Public Types

enum  { DIM = scalar_traits<T>::DIM }
 
using pointer = typename container_proxy< T >::pointer
 

Public Member Functions

 container_proxy (Matrix< T > &a)
 
size_t size () const
 
pointer data ()
 
template<typename I >
void resize (I *n, int d)
 

Public Attributes

Matrix< T > & ref
 

Detailed Description

template<typename T>
struct qmcplusplus::container_proxy< Matrix< T > >

Definition at line 193 of file container_proxy.h.

Member Typedef Documentation

◆ pointer

using pointer = typename container_proxy<T>::pointer

Definition at line 199 of file container_proxy.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Constructor & Destructor Documentation

◆ container_proxy()

container_proxy ( Matrix< T > &  a)
inline

Definition at line 201 of file container_proxy.h.

Member Function Documentation

◆ data()

◆ resize()

void resize ( I n,
int  d 
)
inline

Definition at line 205 of file container_proxy.h.

References qmcplusplus::n, and container_proxy< T >::ref.

206  {
207  if (d != 2)
208  throw std::runtime_error("OhmmsMatrix can only be resized with int[2].");
209  ref.resize(n[0], n[1]);
210  }
void resize(size_type n, size_type m)
Resize the container.
Definition: OhmmsMatrix.h:99

◆ size()

size_t size ( ) const
inline

Definition at line 202 of file container_proxy.h.

References container_proxy< T >::ref.

202 { return ref.size(); }
size_type size() const
Definition: OhmmsMatrix.h:76

Member Data Documentation

◆ ref

Matrix<T>& ref

Definition at line 200 of file container_proxy.h.


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