The Original CHomP Software
Public Member Functions | Protected Attributes | List of all members
chomp::homology::flatMatrix< element >::const_row Class Reference

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

#include <flatmatr.h>

Public Member Functions

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

Protected Attributes

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

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 113 of file flatmatr.h.

Constructor & Destructor Documentation

◆ const_row()

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 117 of file flatmatr.h.

117 :
118 offset (_offset), v (_v) {}
const element * v
A reference to the vector that stores all the entries of the matrix.
Definition: flatmatr.h:130
int offset
The offset in the vector of all the entries of the matrix.
Definition: flatmatr.h:126

Member Function Documentation

◆ operator[]()

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 121 of file flatmatr.h.

121{return v [offset + m];}

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

Member Data Documentation

◆ offset

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 126 of file flatmatr.h.

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

◆ v

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 130 of file flatmatr.h.

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


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