gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
LinearEquation Class Reference

This class describes a linear equation with constant coefficients. More...

#include <linear_solver.hh>

Public Member Functions

 LinearEquation (unsigned unknowns)
 
LinearEquation operator+ (const LinearEquation &rhs)
 
LinearEquationoperator*= (const double cnt)
 
double & operator[] (unsigned unkw)
 
std::string toStr () const
 
unsigned cnt () const
 

Private Attributes

std::vector< double > eq
 Coefficients. More...
 

Detailed Description

This class describes a linear equation with constant coefficients.

The equation has a certain (variable) number of unkowns and it can hold N+1 coefficients.

Definition at line 54 of file linear_solver.hh.

Constructor & Destructor Documentation

LinearEquation::LinearEquation ( unsigned  unknowns)
inline

Definition at line 56 of file linear_solver.hh.

References eq.

Member Function Documentation

unsigned LinearEquation::cnt ( ) const
inline
LinearEquation& LinearEquation::operator*= ( const double  cnt)
inline

Definition at line 73 of file linear_solver.hh.

References ArmISA::c, cnt(), and eq.

LinearEquation LinearEquation::operator+ ( const LinearEquation rhs)
inline

Definition at line 61 of file linear_solver.hh.

References eq, and ArmISA::i.

double& LinearEquation::operator[] ( unsigned  unkw)
inline

Definition at line 81 of file linear_solver.hh.

References eq.

std::string LinearEquation::toStr ( ) const
inline

Definition at line 87 of file linear_solver.hh.

References eq, and ArmISA::i.

Member Data Documentation

std::vector<double> LinearEquation::eq
private

Coefficients.

Definition at line 106 of file linear_solver.hh.

Referenced by cnt(), LinearEquation(), operator*=(), operator+(), operator[](), and toStr().


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

Generated on Fri Jun 9 2017 13:04:13 for gem5 by doxygen 1.8.6