Psi4
Public Member Functions | Public Attributes | List of all members
psi::TwoIndex< T > Struct Template Reference

Templated skeleton two index array for convenience. More...

#include <multiarr.h>

Public Member Functions

T & operator() (int i, int j)
 
operator() (int i, int j) const
 
void assign (int dim1, int dim2, T value)
 
 TwoIndex ()
 
 TwoIndex (int dim1, int dim2)
 
 TwoIndex (int dim1, int dim2, T value)
 
 TwoIndex (const TwoIndex< T > &other)
 

Public Attributes

int dims [2]
 
std::vector< T > data
 

Detailed Description

template<typename T>
struct psi::TwoIndex< T >

Templated skeleton two index array for convenience.

Constructor & Destructor Documentation

template<typename T>
psi::TwoIndex< T >::TwoIndex ( )
inline
template<typename T>
psi::TwoIndex< T >::TwoIndex ( int  dim1,
int  dim2 
)
inline
template<typename T>
psi::TwoIndex< T >::TwoIndex ( int  dim1,
int  dim2,
value 
)
inline
template<typename T>
psi::TwoIndex< T >::TwoIndex ( const TwoIndex< T > &  other)
inline

Member Function Documentation

template<typename T>
void psi::TwoIndex< T >::assign ( int  dim1,
int  dim2,
value 
)
inline
template<typename T>
T& psi::TwoIndex< T >::operator() ( int  i,
int  j 
)
inline
template<typename T>
T psi::TwoIndex< T >::operator() ( int  i,
int  j 
) const
inline

Member Data Documentation

template<typename T>
std::vector<T> psi::TwoIndex< T >::data
template<typename T>
int psi::TwoIndex< T >::dims[2]

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