Template Class matrix

Inheritance Relationships

Base Type

  • private std::vector< T >

Class Documentation

template<class T>
class matrix : private std::vector<T>

Public Types

typedef super::iterator iterator
typedef super::const_iterator const_iterator

Public Functions

inline explicit matrix()
inline matrix(int w, int h)
inline matrix(int w, int h, const T &v)
inline matrix(const matrix<T> &m)
inline super::reference operator()(size_t r, size_t c)
inline super::const_reference operator()(size_t r, size_t c) const
inline super::reference at(const size_t r, const size_t c)
inline super::const_reference at(size_t r, size_t c) const
inline const T *to_ptr() const
inline T *to_ptr()
inline void resize(int w, int h)
inline size_t size() const
inline iterator begin()
inline const_iterator begin() const
inline iterator end()
inline const_iterator end() const
inline bool operator==(const matrix<T> &m) const
inline bool operator!=(const matrix<T> &m) const
inline matrix &operator=(const matrix<T> &m)
template<typename S>
inline matrix<T> &operator*=(const S &s)
template<typename S>
inline matrix<T> &operator/=(const S &s)

Public Members

const int &width
const int &height

Friends

inline friend std::ostream &operator<<(std::ostream &s, const matrix<T> &m)