Class matrix_view_omit_row (o2scl)

O2scl : Class List

template<class mat_t>
class matrix_view_omit_row

Construct a view of a matrix omtting a specified row.

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_omit_row(mat_t &m, size_t row_omit)

Create.

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

Return a reference.

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

Return a const reference.

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.

size_t ro

The row to omit.