Struct index_pair

Struct Documentation

struct index_pair

used to store the location of a matrix element.

Public Functions

inline index_pair()
inline index_pair(size_t _r, size_t _c)
inline index_pair swap()
inline string str() const

Public Members

size_t r
size_t c

Friends

inline friend std::ostream &operator<<(std::ostream &s, const index_pair &e)
inline friend bool operator<(const index_pair &x, const index_pair &y)