AGX Dynamics  2.37.3.2
agx::RealEntry Class Reference

SparseInverse holds a subset of the columns of the inverse of a given sparse matrix. More...

#include <SparseInverse.h>

+ Inheritance diagram for agx::RealEntry:

Public Member Functions

 RealEntry ()
 
 RealEntry (const int &i, const Real &x)
 
bool operator< (const RealEntry &e)
 
bool operator<= (const RealEntry &e)
 
bool operator== (const RealEntry &e)
 

Detailed Description

SparseInverse holds a subset of the columns of the inverse of a given sparse matrix.

To compute these columns, we simply call the solve(x) method of the matrix object with x[i] = 0 for i!=j, and x[j] = 0.

The columns are stored as SparseVector so only nonzero elements are considered. In addition, only a subset of indices are considered at all, those contained in the SparseRangeReal object.

The columns are held in an std::map so they are sorted according to their index in increasing order. This makes it easy to find out if a given column is present or if need An entry associates a real value with an index.

Definition at line 58 of file SparseInverse.h.

Constructor & Destructor Documentation

◆ RealEntry() [1/2]

agx::RealEntry::RealEntry ( )
inline

Definition at line 60 of file SparseInverse.h.

◆ RealEntry() [2/2]

agx::RealEntry::RealEntry ( const int &  i,
const Real &  x 
)
inline

Definition at line 61 of file SparseInverse.h.

Member Function Documentation

◆ operator<()

bool agx::RealEntry::operator< ( const RealEntry &  e)
inline

Definition at line 62 of file SparseInverse.h.

◆ operator<=()

bool agx::RealEntry::operator<= ( const RealEntry &  e)
inline

Definition at line 64 of file SparseInverse.h.

◆ operator==()

bool agx::RealEntry::operator== ( const RealEntry &  e)
inline

Definition at line 63 of file SparseInverse.h.


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