Public Member Functions | Protected Attributes | List of all members
o2scl::matrix_view_table< vec_t > Class Template Reference

View a o2scl::table object as a matrix. More...

#include <prob_dens_mdim_amr.h>

Inheritance diagram for o2scl::matrix_view_table< vec_t >:
o2scl::matrix_view

Detailed Description

template<class vec_t>
class o2scl::matrix_view_table< vec_t >

Note
This stores a pointer to the table and the user must ensure that the pointer is valid with the matrix view is accessed.

Definition at line 64 of file prob_dens_mdim_amr.h.

Public Member Functions

 matrix_view_table (o2scl::table< vec_t > &t, std::vector< std::string > cols)
 Create a matrix view object from the specified table and list of columns.
 
size_t size1 ()
 Return the number of rows.
 
size_t size2 ()
 Return the number of columns.
 
const double & operator() (size_t row, size_t col) const
 Return a reference to the element at row row and column col.
 
- Public Member Functions inherited from o2scl::matrix_view
const double & operator() (size_t row, size_t col) const
 Return a reference to the element at row row and column col.
 
size_t size1 ()
 Return the number of rows.
 
size_t size2 ()
 Return the number of columns.
 

Protected Attributes

size_t nc
 The number of columns.
 
std::vector< const vec_t * > col_ptrs
 Pointers to each column.
 
o2scl::table< vec_t > * tp
 Pointer to the table.
 

The documentation for this class was generated from the following file:

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).