AGX Dynamics  2.35.0.1
agx::SparseMatrixRepSabre Class Reference

#include <SparseMatrixRepSabre.h>

+ Inheritance diagram for agx::SparseMatrixRepSabre:

Public Member Functions

 SparseMatrixRepSabre ()
 
 SparseMatrixRepSabre (size_t *blkSizes, size_t numBlocks, size_t i, size_t j, size_t nnz, int *r, int *c, double *data)
 
virtual ~SparseMatrixRepSabre ()
 
virtual void factor () override
 
virtual agx::Real * getBlock (int i, int j, bool &writeTransposed, unsigned int &ld) override
 
virtual agx::UInt getBlockPermutedStartRowIndex (agx::UInt blockIndex) const override
 
virtual agx::Bool getColumn (agx::UInt colNumber, agx::RealValarray &retCol, agx::Bool &signFlip) const override
 
virtual agx::Real getFactorTime () const override
 
virtual unsigned int getNumColumns () const override
 
virtual unsigned int getNumRows () const override
 
virtual agx::Bool getRow (agx::UInt rowNumber, const agx::RealValarray &signs, agx::RealValarray &retRow) const override
 
agxSabre::SabreData< agx::Real > & getSabreData ()
 
const agxSabre::SabreData< agx::Real > & getSabreData () const
 
virtual agx::Real getSolveTime () const override
 
virtual agx::UInt invPermuteRowIndex (agx::UInt permutedRowIndex) const override
 
virtual void multiply (const agx::Real *x, agx::Real *r) override
 
virtual void multiplyAdd (const agx::Real &alpha, const agx::Real *x, const agx::Real &beta, agx::Real *r) override
 
virtual void multiplyAdd (const agx::Real *x, agx::Real *r) override
 
virtual agx::UInt permuteRowIndex (agx::UInt rowIndex) const override
 
virtual void print () const override
 
virtual void reset () override
 
virtual void setLogicalStructure (size_t n, const unsigned int *pointers, const unsigned int *indices, const unsigned int *dimensions, const int *flags, unsigned int numThreads) override
 
virtual void setNumBodies (size_t num) override
 
virtual void solve (agx::Real *) override
 
virtual size_t unitSolve (agx::Real *, int startRow=-1) override
 
- Public Member Functions inherited from agx::SparseMatrixRep
virtual bool loadH5 (void *group, const agx::String &name)
 
virtual bool saveH5 (void *group, const agx::String &name) const
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor. More...
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting. More...
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match. More...
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test. More...
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object. More...
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- Protected Member Functions inherited from agx::SparseMatrixRep
virtual ~SparseMatrixRep ()
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 
- Static Protected Member Functions inherited from agx::Referenced
static DeleteHandler * getDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More...
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Detailed Description

Definition at line 28 of file SparseMatrixRepSabre.h.

Constructor & Destructor Documentation

◆ SparseMatrixRepSabre() [1/2]

agx::SparseMatrixRepSabre::SparseMatrixRepSabre ( )

◆ SparseMatrixRepSabre() [2/2]

agx::SparseMatrixRepSabre::SparseMatrixRepSabre ( size_t *  blkSizes,
size_t  numBlocks,
size_t  i,
size_t  j,
size_t  nnz,
int *  r,
int *  c,
double *  data 
)

◆ ~SparseMatrixRepSabre()

virtual agx::SparseMatrixRepSabre::~SparseMatrixRepSabre ( )
virtual

Member Function Documentation

◆ factor()

virtual void agx::SparseMatrixRepSabre::factor ( )
overridevirtual

Implements agx::SparseMatrixRep.

◆ getBlock()

virtual agx::Real* agx::SparseMatrixRepSabre::getBlock ( int  i,
int  j,
bool &  writeTransposed,
unsigned int &  ld 
)
overridevirtual

Implements agx::SparseMatrixRep.

◆ getBlockPermutedStartRowIndex()

virtual agx::UInt agx::SparseMatrixRepSabre::getBlockPermutedStartRowIndex ( agx::UInt  blockIndex) const
overridevirtual

Implements agx::SparseMatrixRep.

◆ getColumn()

virtual agx::Bool agx::SparseMatrixRepSabre::getColumn ( agx::UInt  colNumber,
agx::RealValarray &  retCol,
agx::Bool &  signFlip 
) const
overridevirtual

Implements agx::SparseMatrixRep.

◆ getFactorTime()

virtual agx::Real agx::SparseMatrixRepSabre::getFactorTime ( ) const
inlineoverridevirtual

Reimplemented from agx::SparseMatrixRep.

Definition at line 73 of file SparseMatrixRepSabre.h.

◆ getNumColumns()

virtual unsigned int agx::SparseMatrixRepSabre::getNumColumns ( ) const
overridevirtual

Implements agx::SparseMatrixRep.

◆ getNumRows()

virtual unsigned int agx::SparseMatrixRepSabre::getNumRows ( ) const
overridevirtual

Implements agx::SparseMatrixRep.

◆ getRow()

virtual agx::Bool agx::SparseMatrixRepSabre::getRow ( agx::UInt  rowNumber,
const agx::RealValarray &  signs,
agx::RealValarray &  retRow 
) const
overridevirtual

Implements agx::SparseMatrixRep.

◆ getSabreData() [1/2]

agxSabre::SabreData<agx::Real>& agx::SparseMatrixRepSabre::getSabreData ( )
inline

Definition at line 76 of file SparseMatrixRepSabre.h.

◆ getSabreData() [2/2]

const agxSabre::SabreData<agx::Real>& agx::SparseMatrixRepSabre::getSabreData ( ) const
inline

Definition at line 77 of file SparseMatrixRepSabre.h.

◆ getSolveTime()

virtual agx::Real agx::SparseMatrixRepSabre::getSolveTime ( ) const
inlineoverridevirtual

Reimplemented from agx::SparseMatrixRep.

Definition at line 74 of file SparseMatrixRepSabre.h.

◆ invPermuteRowIndex()

virtual agx::UInt agx::SparseMatrixRepSabre::invPermuteRowIndex ( agx::UInt  permutedRowIndex) const
overridevirtual

Reimplemented from agx::SparseMatrixRep.

◆ multiply()

virtual void agx::SparseMatrixRepSabre::multiply ( const agx::Real *  x,
agx::Real *  r 
)
overridevirtual

Implements agx::SparseMatrixRep.

◆ multiplyAdd() [1/2]

virtual void agx::SparseMatrixRepSabre::multiplyAdd ( const agx::Real &  alpha,
const agx::Real *  x,
const agx::Real &  beta,
agx::Real *  r 
)
overridevirtual

Implements agx::SparseMatrixRep.

◆ multiplyAdd() [2/2]

virtual void agx::SparseMatrixRepSabre::multiplyAdd ( const agx::Real *  x,
agx::Real *  r 
)
overridevirtual

Implements agx::SparseMatrixRep.

◆ permuteRowIndex()

virtual agx::UInt agx::SparseMatrixRepSabre::permuteRowIndex ( agx::UInt  rowIndex) const
overridevirtual

Reimplemented from agx::SparseMatrixRep.

◆ print()

virtual void agx::SparseMatrixRepSabre::print ( ) const
overridevirtual

Reimplemented from agx::SparseMatrixRep.

◆ reset()

virtual void agx::SparseMatrixRepSabre::reset ( )
overridevirtual

Implements agx::SparseMatrixRep.

◆ setLogicalStructure()

virtual void agx::SparseMatrixRepSabre::setLogicalStructure ( size_t  n,
const unsigned int *  pointers,
const unsigned int *  indices,
const unsigned int *  dimensions,
const int *  flags,
unsigned int  numThreads 
)
overridevirtual

Reimplemented from agx::SparseMatrixRep.

◆ setNumBodies()

virtual void agx::SparseMatrixRepSabre::setNumBodies ( size_t  num)
overridevirtual

Reimplemented from agx::SparseMatrixRep.

◆ solve()

virtual void agx::SparseMatrixRepSabre::solve ( agx::Real *  )
overridevirtual

Implements agx::SparseMatrixRep.

◆ unitSolve()

virtual size_t agx::SparseMatrixRepSabre::unitSolve ( agx::Real *  ,
int  startRow = -1 
)
overridevirtual

Reimplemented from agx::SparseMatrixRep.


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