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

Matrix row object with a constructor and resize method. More...

#include <vector.h>

Detailed Description

template<class mat_t>
class o2scl::matrix_row_gen_ctor< mat_t >

This is used in o2scl::ode_iv_solve_grid .

Definition at line 2638 of file vector.h.

Public Member Functions

 matrix_row_gen_ctor (mat_t &m, size_t row)
 Create a row object from row row of matrix m.
 
 matrix_row_gen_ctor (size_t n_cols=0)
 Create a row object from row row of matrix m.
 
void resize (size_t n_cols=0)
 Resize.
 
size_t size () const
 Return size.
 
double & operator[] (size_t i)
 Return a reference to the ith column of the selected row.
 
const double & operator[] (size_t i) const
 Return a const reference to the ith column of the selected row.
 

Protected Attributes

mat_t * mp
 A pointer to the matrix.
 
size_t row_
 The selected row.
 
mat_t mat
 A matrix to point to.
 

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