Class matrix_view (o2scl)

O2scl : Class List

class matrix_view

A simple matrix view object.

Subclassed by o2scl::matrix_swap_table, o2scl::matrix_view_table< vec_t, fp_t >, o2scl::matrix_view_table_transpose< vec_t, fp_t >, o2scl::matrix_view_vec_vec< vec1_t, vec2_t >

Public Functions

const double &operator()(size_t row, size_t col) const

Return a reference to the element at row row and column col.

double &operator()(size_t row, size_t col)

Return a reference to the element at row row and column col.

size_t size1() const

Return the number of rows.

size_t size2() const

Return the number of columns.