Class matrix_column_gen (o2scl)¶
-
template<class mat_t>
class o2scl::matrix_column_gen¶ Generic object which represents a column of a matrix.
The only requirement on the type
mat_t
is that it must have an operator(size_t,size_t) method which accesses elements in the matrix.Note
This class is experimental.
This class is used in
o2scl::eos_sn_base::slice
to construct a row of a matrix object of typestd::function<double &(size_t,size_t)>
Public Functions
-
inline matrix_column_gen(mat_t &m, size_t column)¶
Create a column object from column
column
of matrixm
.
-
inline double &operator[](size_t i)¶
Return a reference to the ith row of the selected column.
-
inline const double &operator[](size_t i) const¶
Return a const reference to the ith row of the selected column.
-
inline matrix_column_gen(mat_t &m, size_t column)¶