gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
linearSystemPETSc< scalar > Class Template Reference

#include <linearSystemPETSc.h>

Inheritance diagram for linearSystemPETSc< scalar >:
Collaboration diagram for linearSystemPETSc< scalar >:

Public Member Functions

 linearSystemPETSc ()
 
bool isAllocated () const
 
void allocate (int nbRows)
 
void clear ()
 
void addToMatrix (int row, int col, const scalar &val)
 
void getFromMatrix (int row, int col, scalar &val) const
 
void addToRightHandSide (int row, const scalar &val, int ith=0)
 
void addToSolution (int row, const scalar &val)
 
void getFromRightHandSide (int row, scalar &val) const
 
void getFromSolution (int row, scalar &val) const
 
int getNumKspIteration () const
 
void zeroMatrix ()
 
void zeroRightHandSide ()
 
void zeroSolution ()
 
void printMatlab (const char *filename) const
 
virtual int systemSolve ()
 
double normInfRightHandSide () const
 
virtual int matMult ()
 
- Public Member Functions inherited from linearSystem< scalar >
 linearSystem ()
 
virtual ~linearSystem ()
 
- Public Member Functions inherited from linearSystemBase
virtual ~linearSystemBase ()
 
virtual void preAllocateEntries ()
 
void setParameter (const std::string &key, std::string value)
 
std::string getParameter (const std::string &key) const
 
virtual void insertInSparsityPattern (int _row, int _col)
 
virtual double normInfSolution () const
 

Additional Inherited Members

- Protected Attributes inherited from linearSystemBase
std::map< std::string, std::string > _parameters
 

Detailed Description

template<class scalar>
class linearSystemPETSc< scalar >

Definition at line 150 of file linearSystemPETSc.h.

Constructor & Destructor Documentation

◆ linearSystemPETSc()

template<class scalar >
linearSystemPETSc< scalar >::linearSystemPETSc ( )
inline

Definition at line 152 of file linearSystemPETSc.h.

Here is the call graph for this function:

Member Function Documentation

◆ addToMatrix()

template<class scalar >
void linearSystemPETSc< scalar >::addToMatrix ( int  row,
int  col,
const scalar &  val 
)
inlinevirtual

Implements linearSystem< scalar >.

Definition at line 159 of file linearSystemPETSc.h.

◆ addToRightHandSide()

template<class scalar >
void linearSystemPETSc< scalar >::addToRightHandSide ( int  row,
const scalar &  val,
int  ith = 0 
)
inlinevirtual

Implements linearSystem< scalar >.

Definition at line 161 of file linearSystemPETSc.h.

◆ addToSolution()

template<class scalar >
void linearSystemPETSc< scalar >::addToSolution ( int  row,
const scalar &  val 
)
inlinevirtual

Implements linearSystem< scalar >.

Definition at line 162 of file linearSystemPETSc.h.

◆ allocate()

template<class scalar >
void linearSystemPETSc< scalar >::allocate ( int  nbRows)
inlinevirtual

Implements linearSystemBase.

Definition at line 157 of file linearSystemPETSc.h.

◆ clear()

template<class scalar >
void linearSystemPETSc< scalar >::clear ( )
inlinevirtual

Implements linearSystemBase.

Definition at line 158 of file linearSystemPETSc.h.

◆ getFromMatrix()

template<class scalar >
void linearSystemPETSc< scalar >::getFromMatrix ( int  row,
int  col,
scalar &  val 
) const
inlinevirtual

Implements linearSystem< scalar >.

Definition at line 160 of file linearSystemPETSc.h.

◆ getFromRightHandSide()

template<class scalar >
void linearSystemPETSc< scalar >::getFromRightHandSide ( int  row,
scalar &  val 
) const
inlinevirtual

Implements linearSystem< scalar >.

Definition at line 163 of file linearSystemPETSc.h.

◆ getFromSolution()

template<class scalar >
void linearSystemPETSc< scalar >::getFromSolution ( int  row,
scalar &  val 
) const
inlinevirtual

Implements linearSystem< scalar >.

Definition at line 164 of file linearSystemPETSc.h.

◆ getNumKspIteration()

template<class scalar >
int linearSystemPETSc< scalar >::getNumKspIteration ( ) const
inline

Definition at line 165 of file linearSystemPETSc.h.

◆ isAllocated()

template<class scalar >
bool linearSystemPETSc< scalar >::isAllocated ( ) const
inlinevirtual

Implements linearSystemBase.

Definition at line 156 of file linearSystemPETSc.h.

◆ matMult()

template<class scalar >
virtual int linearSystemPETSc< scalar >::matMult ( )
inlinevirtual

Reimplemented from linearSystemBase.

Definition at line 172 of file linearSystemPETSc.h.

◆ normInfRightHandSide()

template<class scalar >
double linearSystemPETSc< scalar >::normInfRightHandSide ( ) const
inlinevirtual

Implements linearSystemBase.

Definition at line 171 of file linearSystemPETSc.h.

◆ printMatlab()

template<class scalar >
void linearSystemPETSc< scalar >::printMatlab ( const char *  filename) const
inline

Definition at line 169 of file linearSystemPETSc.h.

◆ systemSolve()

template<class scalar >
virtual int linearSystemPETSc< scalar >::systemSolve ( )
inlinevirtual

Implements linearSystemBase.

Definition at line 170 of file linearSystemPETSc.h.

◆ zeroMatrix()

template<class scalar >
void linearSystemPETSc< scalar >::zeroMatrix ( )
inlinevirtual

Implements linearSystemBase.

Definition at line 166 of file linearSystemPETSc.h.

◆ zeroRightHandSide()

template<class scalar >
void linearSystemPETSc< scalar >::zeroRightHandSide ( )
inlinevirtual

Implements linearSystemBase.

Definition at line 167 of file linearSystemPETSc.h.

◆ zeroSolution()

template<class scalar >
void linearSystemPETSc< scalar >::zeroSolution ( )
inlinevirtual

Implements linearSystemBase.

Definition at line 168 of file linearSystemPETSc.h.


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