Public Member Functions | Protected Attributes | Friends | List of all members
o2scl::matrix_swap_table Class Reference

Swap part of a o2scl::table object into a matrix. More...

#include <table.h>

Inheritance diagram for o2scl::matrix_swap_table:
o2scl::matrix_view

Detailed Description

Definition at line 3441 of file table.h.

Public Member Functions

 matrix_swap_table ()
 Create a matrix view object from the specified table and list of columns.
 
 matrix_swap_table (o2scl::table< std::vector< double > > &t, const std::vector< std::string > &col_names)
 Create a matrix view object from the specified table and list of columns.
 
void set (o2scl::table< std::vector< double > > &t, const std::vector< std::string > &col_names)
 Create a matrix view object from the specified table and list of columns.
 
size_t size1 () const
 Return the number of rows.
 
size_t size2 () const
 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.
 
double & operator() (size_t row, size_t col)
 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.
 
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.
 

Protected Attributes

size_t nc
 The number of columns.
 
size_t nlines
 The number of lines in the table.
 
std::vector< std::vector< double > > cols
 Array of columns.
 

Friends

void swap (matrix_swap_table &t1, matrix_swap_table &t2)
 Swap method.
 

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).