matrix_row Class Template Reference

Create a vector-like class from a row of a matrix. More...

#include <vector.h>


Detailed Description

template<class mat_t>
class matrix_row< mat_t >

Idea for future:
Generalize to operator(,)

Definition at line 664 of file vector.h.


Public Member Functions

 matrix_row (mat_t &m, size_t r)
 Create an object which represents row r of matrix m.
double & operator[] (size_t c)
 Access element of column c from the specified row.
const double & operator[] (size_t c) const
 Access element of column c from the specified row.

Protected Attributes

size_t r2
 The row index.
mat_t * m2
 The pointer to the matrix.

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

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page