CAPD RedHom Library
SparseRowMatrixT< Chain > Class Template Reference

#include <capd/persistence/SparseCRMatrixT.hpp>

Public Member Functions

 SparseRowMatrixT (int numberOfRows, int numberOfColumns)
 
template<typename MatrixType >
 SparseRowMatrixT (const MatrixType &A_matrix)
 
int numberOfRows () const
 
int numberOfColumns () const
 
void exchange (VectorOfChainsT< Chain > &Q, int i, int j)
 
void multiply (VectorOfChainsT< Chain > &Q, int i, ScalarType q)
 
void addMultiplicity (VectorOfChainsT< Chain > &Q, int i, int j, ScalarType q)
 
void rightMultiply (const SparseColMatrixT< Chain > &Q)
 
ScalarType valueAt (int i, int j) const
 
void partRowReduce (SparseColMatrixT< Chain > &Q, int k, int l)
 
void smallestNonZero (int i0, int j0, ScalarType &s, int &iOpt)
 
bool nonZero (int i0, int j0)
 
void rowPrepare (SparseColMatrixT< Chain > &Q, int k, int l)
 
void rowReduce (SparseColMatrixT< Chain > &Q, int k, int l)
 
void rowEchelon (SparseColMatrixT< Chain > &Q, int &k)
 
void swap (SparseRowMatrixT &v2)
 
ChainentryAt (int i)
 
const ChainentryAt (int i) const
 
void exchange (int i, int j)
 
void multiply (int i, ScalarType s)
 
void addMultiplicity (int i, int j, ScalarType s)
 
void setToIdentity ()
 
int numberOfNontrivialChains ()
 
bool trivial ()
 
void setToTrivial ()
 
void swap (VectorOfChainsT &v2)
 

Public Attributes

elements
 STL member. More...
 

Protected Attributes

int m_numberOfChains
 
int m_maxLengthOfChain
 

Friends

std::ostream & operator<< (std::ostream &o, const SparseRowMatrixT< Chain > &Q)
 

Constructor & Destructor Documentation

template<typename Chain >
SparseRowMatrixT< Chain >::SparseRowMatrixT ( int  numberOfRows,
int  numberOfColumns 
)
inline
template<typename Chain >
template<typename MatrixType >
SparseRowMatrixT< Chain >::SparseRowMatrixT ( const MatrixType A_matrix)
inline

Member Function Documentation

template<typename Chain >
void VectorOfChainsT< Chain >::addMultiplicity ( int  i,
int  j,
ScalarType  s 
)
inlineinherited
template<typename Chain >
void SparseRowMatrixT< Chain >::addMultiplicity ( VectorOfChainsT< Chain > &  Q,
int  i,
int  j,
ScalarType  q 
)
inline
template<typename Chain >
Chain& VectorOfChainsT< Chain >::entryAt ( int  i)
inlineinherited
template<typename Chain >
const Chain& VectorOfChainsT< Chain >::entryAt ( int  i) const
inlineinherited
template<typename Chain >
void VectorOfChainsT< Chain >::exchange ( int  i,
int  j 
)
inlineinherited
template<typename Chain >
void SparseRowMatrixT< Chain >::exchange ( VectorOfChainsT< Chain > &  Q,
int  i,
int  j 
)
inline
template<typename Chain >
void VectorOfChainsT< Chain >::multiply ( int  i,
ScalarType  s 
)
inlineinherited
template<typename Chain >
void SparseRowMatrixT< Chain >::multiply ( VectorOfChainsT< Chain > &  Q,
int  i,
ScalarType  q 
)
inline
template<typename Chain >
bool SparseRowMatrixT< Chain >::nonZero ( int  i0,
int  j0 
)
inline
template<typename Chain >
int SparseRowMatrixT< Chain >::numberOfColumns ( ) const
inline
template<typename Chain >
int VectorOfChainsT< Chain >::numberOfNontrivialChains ( )
inlineinherited
template<typename Chain >
int SparseRowMatrixT< Chain >::numberOfRows ( ) const
inline
template<typename Chain >
void SparseRowMatrixT< Chain >::partRowReduce ( SparseColMatrixT< Chain > &  Q,
int  k,
int  l 
)
inline
template<typename Chain >
void SparseRowMatrixT< Chain >::rightMultiply ( const SparseColMatrixT< Chain > &  Q)
inline
template<typename Chain >
void SparseRowMatrixT< Chain >::rowEchelon ( SparseColMatrixT< Chain > &  Q,
int &  k 
)
inline
template<typename Chain >
void SparseRowMatrixT< Chain >::rowPrepare ( SparseColMatrixT< Chain > &  Q,
int  k,
int  l 
)
inline
template<typename Chain >
void SparseRowMatrixT< Chain >::rowReduce ( SparseColMatrixT< Chain > &  Q,
int  k,
int  l 
)
inline
template<typename Chain >
void VectorOfChainsT< Chain >::setToIdentity ( )
inlineinherited
template<typename Chain >
void VectorOfChainsT< Chain >::setToTrivial ( )
inlineinherited
template<typename Chain >
void SparseRowMatrixT< Chain >::smallestNonZero ( int  i0,
int  j0,
ScalarType s,
int &  iOpt 
)
inline
template<typename Chain >
void VectorOfChainsT< Chain >::swap ( VectorOfChainsT< Chain > &  v2)
inlineinherited
template<typename Chain >
void SparseRowMatrixT< Chain >::swap ( SparseRowMatrixT< Chain > &  v2)
inline
template<typename Chain >
bool VectorOfChainsT< Chain >::trivial ( )
inlineinherited
template<typename Chain >
ScalarType SparseRowMatrixT< Chain >::valueAt ( int  i,
int  j 
) const
inline

Friends And Related Function Documentation

template<typename Chain >
std::ostream& operator<< ( std::ostream &  o,
const SparseRowMatrixT< Chain > &  Q 
)
friend

Member Data Documentation

T std::vector< T >::elements
inherited

STL member.

template<typename Chain >
int VectorOfChainsT< Chain >::m_maxLengthOfChain
protectedinherited
template<typename Chain >
int VectorOfChainsT< Chain >::m_numberOfChains
protectedinherited