Template Struct TwoIndex

Struct Documentation

template<typename T>
struct TwoIndex

Templated skeleton two index array for convenience.

Public Functions

inline T &operator()(const int i, const int j)
inline T operator()(const int i, const int j) const
inline void assign(int dim1, int dim2, T value)
inline TwoIndex<T> transpose() const
inline void add(const TwoIndex<T> &other)
inline void multiply(T k)
inline TwoIndex()
inline TwoIndex(const int dim1, const int dim2)
inline TwoIndex(const int dim1, const int dim2, const T value)
inline TwoIndex(const TwoIndex<T> &other)

Public Members

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