gem5  v20.1.0.0
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 52 of file linear_solver.hh.

Constructor & Destructor Documentation

◆ LinearEquation()

LinearEquation::LinearEquation ( unsigned  unknowns)
inline

Definition at line 54 of file linear_solver.hh.

References eq.

Member Function Documentation

◆ cnt()

unsigned LinearEquation::cnt ( ) const
inline

Definition at line 99 of file linear_solver.hh.

References eq.

Referenced by operator*=().

◆ operator*=()

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

Definition at line 71 of file linear_solver.hh.

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

◆ operator+()

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

Definition at line 59 of file linear_solver.hh.

References eq, and ArmISA::i.

◆ operator[]()

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

Definition at line 79 of file linear_solver.hh.

References eq.

◆ toStr()

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

Definition at line 85 of file linear_solver.hh.

References eq, and ArmISA::i.

Member Data Documentation

◆ eq

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

Coefficients.

Definition at line 104 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 Wed Sep 30 2020 14:02:26 for gem5 by doxygen 1.8.17