gem5  v22.1.0.0
Public Member Functions | Private Attributes | List of all members
gem5::LinearSystem Class Reference

#include <linear_solver.hh>

Public Member Functions

 LinearSystem (unsigned unknowns)
 
LinearEquationoperator[] (unsigned eq)
 
std::string toStr () const
 
std::vector< double > solve () const
 

Private Attributes

std::vector< LinearEquationmatrix
 

Detailed Description

Definition at line 111 of file linear_solver.hh.

Constructor & Destructor Documentation

◆ LinearSystem()

gem5::LinearSystem::LinearSystem ( unsigned  unknowns)
inline

Definition at line 114 of file linear_solver.hh.

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

Member Function Documentation

◆ operator[]()

LinearEquation& gem5::LinearSystem::operator[] ( unsigned  eq)
inline

Definition at line 119 of file linear_solver.hh.

References gem5::PowerISA::eq, and matrix.

◆ solve()

std::vector< double > gem5::LinearSystem::solve ( ) const

Definition at line 44 of file linear_solver.cc.

References gem5::ArmISA::i, matrix, and gem5::VegaISA::t.

Referenced by gem5::ThermalModel::doStep().

◆ toStr()

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

Definition at line 124 of file linear_solver.hh.

References gem5::PowerISA::eq, matrix, and gem5::VegaISA::r.

Member Data Documentation

◆ matrix

std::vector< LinearEquation > gem5::LinearSystem::matrix
private

Definition at line 134 of file linear_solver.hh.

Referenced by LinearSystem(), operator[](), solve(), and toStr().


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

Generated on Wed Dec 21 2022 10:23:30 for gem5 by doxygen 1.9.1