View a o2scl::table object as a matrix. More...
#include <table.h>
Public Member Functions | |
matrix_view_table_transpose () | |
Create a matrix view object from the specified table and list of columns. | |
matrix_view_table_transpose (o2scl::table< vec_t > &t, std::vector< std::string > rows) | |
Create a matrix view object from the specified table and list of columns. | |
void | set (o2scl::table< vec_t > &t, std::vector< std::string > rows) |
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 . | |
double & | operator() (size_t row, size_t col) |
Return a reference to the element at row row and column col . | |
Protected Attributes | |
size_t | nr |
The number of rows. | |
size_t | nlines |
The number of lines in the table. | |
std::vector< vec_t * > | col_ptrs |
Pointers to each column. | |
Friends | |
void | swap (matrix_view_table_transpose &t1, matrix_view_table_transpose &t2) |
Swap method. | |
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).