5 #ifndef _CRCONNECTIVITY_H_
6 #define _CRCONNECTIVITY_H_
78 const bool implicitDiagonal)
const;
80 shared_ptr<CRConnectivity>
82 const int offset,
const int size)
const;
84 shared_ptr<CRConnectivity>
89 shared_ptr<CRConnectivity>
94 shared_ptr<CRConnectivity>
99 shared_ptr<CRConnectivity>
118 (*_row)[index] += count;
123 int add(
const int index,
const int val)
125 int pos = (*_row)[index];
137 return (*
_col)[(*_row)[i]+j];
147 return (*
_col)[(*_row)[i]+j];
152 for (
int nnb = (*
_row)[i]; nnb<(*_row)[i+1]; nnb++)
154 if ((*
_col)[nnb] == j)
shared_ptr< CRConnectivity > getMultiTranspose(const int varSize) const
const Array< int > & getCol() const
int getCount(const int i) const
void setConnType(CRTYPE type)
const Array< int > & getRow() const
shared_ptr< CRConnectivity > getSubset(const StorageSite &site, const Array< int > &indices) const
const Array< int > & getGlobalToLocalMap() const
StorageSite const * _colSite
void resizeLocalToGlobalMap(int size)
void reorder(const Array< int > &indices)
shared_ptr< Array< int > > _globalToLocalMap
shared_ptr< Array< int > > _row
const map< int, int > & getGlobalToLocalMapper() const
StorageSite const * _rowSite
map< int, int > & getGlobalToLocalMapper()
int getCoeffPosition(const int i, const int j) const
const Array< int > & getLocalToGlobalMap() const
void clearPairToColMapping(const CRConnectivity &pairs) const
shared_ptr< CRConnectivity > getLocalizedSubset(const StorageSite &newRowSite, StorageSite &newColSite, const Array< int > &indices) const
map< const CRConnectivity *, PairToColMapping * > _pairToColMappings
CRConnectivity(const StorageSite &rowSite, const StorageSite &colSite)
void localize(const Array< int > &globalToLocal, const StorageSite &newColSite)
shared_ptr< Array< int > > _col
const StorageSite & getColSite() const
DEFINE_TYPENAME("CRConnectivity")
shared_ptr< CRConnectivity > getLocalizedSubsetOfFaceCells(const StorageSite &newRowSite, StorageSite &newColSite, const Array< int > &indices, const CRConnectivity &faceCells, const CRConnectivity &cellCells) const
const CRTYPE & getConnType() const
shared_ptr< CRConnectivity > multiply(const CRConnectivity &b, const bool implicitDiagonal) const
shared_ptr< Array< int > > _localToGlobalMap
int & operator()(const int i, const int j)
shared_ptr< CRConnectivity > getTranspose() const
int add(const int index, const int val)
shared_ptr< CRConnectivity > createOffset(const StorageSite &newRowSite, const int offset, const int size) const
int operator()(const int i, const int j) const
shared_ptr< Array< int > > getLocalToGlobalMapPtr()
map< int, int > _globalToLocalMapper
shared_ptr< Array< int > > getGlobalToLocalMapPtr()
const StorageSite & getRowSite() const
void addCount(const int index, const int count)
const PairToColMapping & getPairToColMapping(const CRConnectivity &pairs) const
Array< Vector< int, 2 > > PairToColMapping