gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::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.
 

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 55 of file linear_solver.hh.

Constructor & Destructor Documentation

◆ LinearEquation()

gem5::LinearEquation::LinearEquation ( unsigned unknowns)
inline

Definition at line 58 of file linear_solver.hh.

References eq.

Member Function Documentation

◆ cnt()

unsigned gem5::LinearEquation::cnt ( ) const
inline

Definition at line 103 of file linear_solver.hh.

References eq.

Referenced by operator*=().

◆ operator*=()

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

Definition at line 75 of file linear_solver.hh.

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

◆ operator+()

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

Definition at line 63 of file linear_solver.hh.

References eq, and gem5::ArmISA::i.

◆ operator[]()

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

Definition at line 83 of file linear_solver.hh.

References eq.

◆ toStr()

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

Definition at line 89 of file linear_solver.hh.

References eq, and gem5::ArmISA::i.

Member Data Documentation

◆ eq

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

Coefficients.

Definition at line 108 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 Tue Jun 18 2024 16:24:12 for gem5 by doxygen 1.11.0