Class matrix_view_transpose (o2scl)

O2scl : Class List

template<class mat_t>
class matrix_view_transpose

Construct a view of the transpose of a matrix.

Note that this class stores a reference to the original matrix specified by the user. If this class is used after that reference becomes invalid then the results will be unpredictable.

Note

This class is experimental.

Public Functions

inline matrix_view_transpose(mat_t &m)

Create a row object from row row of matrix m.

inline double &operator()(size_t i, size_t j)

Return a reference to the ith column of the selected row.

inline const double &operator()(size_t i, size_t j) const

Return a const reference to the ith column of the selected row.

inline size_t size1() const

Return the number of rows.

inline size_t size2() const

Return the number of columns.

Protected Attributes

mat_t &m_

A reference to the original matrix.