QMCPACK
MatrixAccessor< T > Class Template Reference

Read only access, for testing! More...

+ Collaboration diagram for MatrixAccessor< T >:

Public Types

using value_type = T
 

Public Member Functions

 MatrixAccessor (const T *data, size_t m, size_t n, MA_ori ori=MA_ori::ROW)
 
operator() (size_t i, size_t j) const
 
size_t rows ()
 
size_t cols ()
 

Private Attributes

size_t m_
 
size_t n_
 
const T * data_
 
MA_ori ori_
 

Detailed Description

template<typename T>
class qmcplusplus::testing::MatrixAccessor< T >

Read only access, for testing!

Makes checkMatrix dependency free

Definition at line 29 of file MatrixAccessor.hpp.

Member Typedef Documentation

◆ value_type

using value_type = T

Definition at line 32 of file MatrixAccessor.hpp.

Constructor & Destructor Documentation

◆ MatrixAccessor()

MatrixAccessor ( const T *  data,
size_t  m,
size_t  n,
MA_ori  ori = MA_ori::ROW 
)
inline

Member Function Documentation

◆ cols()

size_t cols ( )
inline

Definition at line 51 of file MatrixAccessor.hpp.

References MatrixAccessor< T >::n_.

◆ operator()()

◆ rows()

size_t rows ( )
inline

Definition at line 50 of file MatrixAccessor.hpp.

References MatrixAccessor< T >::m_.

Member Data Documentation

◆ data_

const T* data_
private

Definition at line 56 of file MatrixAccessor.hpp.

Referenced by MatrixAccessor< T >::operator()().

◆ m_

size_t m_
private

◆ n_

size_t n_
private

◆ ori_

MA_ori ori_
private

Definition at line 57 of file MatrixAccessor.hpp.

Referenced by MatrixAccessor< T >::operator()().


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