Public Member Functions | Protected Attributes

chomp::homology::flatMatrix< element >::const_row Class Reference

The class that represents a constant single row of the matrix. More...

#include <flatmatr.h>

List of all members.

Public Member Functions

 const_row (int _offset, const element *_v)
 The constructor of a constant row of the matrix.
const element & operator[] (int m)
 Returns a reference to the element at the given position.

Protected Attributes

int offset
 The offset in the vector of all the entries of the matrix.
const element * v
 A reference to the vector that stores all the entries of the matrix.

Detailed Description

template<class element>
class chomp::homology::flatMatrix< element >::const_row

The class that represents a constant single row of the matrix.

Definition at line 114 of file flatmatr.h.


Constructor & Destructor Documentation

template<class element>
chomp::homology::flatMatrix< element >::const_row::const_row ( int  _offset,
const element *  _v 
) [inline]

The constructor of a constant row of the matrix.

Definition at line 118 of file flatmatr.h.

                                                          :
                        offset (_offset), v (_v) {}


Member Function Documentation

template<class element>
const element& chomp::homology::flatMatrix< element >::const_row::operator[] ( int  m  )  [inline]

Returns a reference to the element at the given position.

Definition at line 122 of file flatmatr.h.

References chomp::homology::flatMatrix< element >::const_row::offset, and chomp::homology::flatMatrix< element >::const_row::v.

{return v [offset + m];}


Member Data Documentation

template<class element>
int chomp::homology::flatMatrix< element >::const_row::offset [protected]

The offset in the vector of all the entries of the matrix.

Definition at line 127 of file flatmatr.h.

Referenced by chomp::homology::flatMatrix< element >::const_row::operator[]().

template<class element>
const element* chomp::homology::flatMatrix< element >::const_row::v [protected]

A reference to the vector that stores all the entries of the matrix.

Definition at line 131 of file flatmatr.h.

Referenced by chomp::homology::flatMatrix< element >::const_row::operator[]().


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