Class matrix_view_transpose (o2scl)

O2scl : Class List

template<class mat_t>
class o2scl::matrix_view_transpose

Construct a view of the transpose of a matrix.

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.