Class matrix_view_omit_column (o2scl)

O2scl : Class List

template<class mat_t>
class matrix_view_omit_column

Construct a view of a matrix omitting one specified column.

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_column(mat_t &m, size_t column_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 co

The column to omit.