AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
A Null BivariateSet class. Same as the NullSet for Set class. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/v0.5.0/src/axom/slam/BivariateSet.hpp>
Public Types | |
using | PositionType = PosType |
using | ElementType = ElemType |
using | OrderedSetType = typename BivariateSet< PosType, ElemType >::OrderedSetType |
using | SetType = Set< PositionType, ElementType > |
Public Member Functions | |
NullBivariateSet ()=default | |
PositionType | findElementIndex (PositionType pos1, PositionType pos2=0) const override |
Searches for the SparseIndex of the element given its DenseIndex. If the element (i,j) is the kth non-zero in the row, then findElementIndex(i,j) returns k . If element (i,j) does not exist (such as the case of a zero in a sparse matrix), then INVALID_POS is returned. More... | |
PositionType | findElementFlatIndex (PositionType s1, PositionType s2) const override |
Search for the FlatIndex of the element given its DenseIndex. More... | |
PositionType | findElementFlatIndex (PositionType s1) const override |
Searches for the first existing element given the row index (first set position). More... | |
ElementType | at (PositionType) const override |
Returns the element at the given FlatIndex pos. More... | |
PositionType | size () const override |
Size of the BivariateSet, which is the number of non-zero entries in the BivariateSet. More... | |
PositionType | size (PositionType) const override |
Number of elements of the BivariateSet whose first index is pos. More... | |
const OrderedSetType | getElements (PositionType) const override |
A set of elements with the given first set index. More... | |
PositionType | firstSetSize () const |
Size of the first set. More... | |
PositionType | secondSetSize () const |
Size of the second set. More... | |
virtual const SetType * | getFirstSet () const |
Returns pointer to the first set. More... | |
virtual const SetType * | getSecondSet () const |
Returns pointer to the second set. More... | |
virtual bool | isValid (bool verboseOutput=false) const |
virtual void | verifyPosition (PositionType s1, PositionType s2) const =0 |
Static Public Attributes | |
static const PositionType | INVALID_POS = PositionType(-1) |
static const NullSet< PosType, ElemType > | s_nullSet |
Protected Attributes | |
const SetType * | m_set1 |
const SetType * | m_set2 |
A Null BivariateSet class. Same as the NullSet for Set class.
using axom::slam::NullBivariateSet< PosType, ElemType >::PositionType = PosType |
using axom::slam::NullBivariateSet< PosType, ElemType >::ElementType = ElemType |
using axom::slam::NullBivariateSet< PosType, ElemType >::OrderedSetType = typename BivariateSet<PosType, ElemType>::OrderedSetType |
|
inherited |
|
default |
|
inlineoverridevirtual |
Searches for the SparseIndex of the element given its DenseIndex. If the element (i,j) is the kth non-zero in the row, then findElementIndex(i,j)
returns k
. If element (i,j)
does not exist (such as the case of a zero in a sparse matrix), then INVALID_POS
is returned.
pos1 | The first set position. |
pos2 | The second set position. |
Implements axom::slam::BivariateSet< PosType, ElemType >.
|
inlineoverridevirtual |
Search for the FlatIndex of the element given its DenseIndex.
pos1 | The first set position. |
pos2 | The second set position. |
Implements axom::slam::BivariateSet< PosType, ElemType >.
|
inlineoverridevirtual |
Searches for the first existing element given the row index (first set position).
pos1 | The first set position. |
Implements axom::slam::BivariateSet< PosType, ElemType >.
|
inlineoverridevirtual |
Returns the element at the given FlatIndex pos.
Implements axom::slam::BivariateSet< PosType, ElemType >.
|
inlineoverridevirtual |
Size of the BivariateSet, which is the number of non-zero entries in the BivariateSet.
Implements axom::slam::BivariateSet< PosType, ElemType >.
|
inlineoverridevirtual |
Number of elements of the BivariateSet whose first index is pos.
Implements axom::slam::BivariateSet< PosType, ElemType >.
|
inlineoverridevirtual |
A set of elements with the given first set index.
s1 | The first set index. |
Implements axom::slam::BivariateSet< PosType, ElemType >.
|
inlineinherited |
|
inlineinherited |
Size of the second set.
Referenced by axom::slam::ProductSet< PosType, ElemType >::at(), axom::slam::ProductSet< PosType, ElemType >::findElementFlatIndex(), axom::slam::ProductSet< PosType, ElemType >::isValid(), axom::slam::ProductSet< PosType, ElemType >::isValidIndex(), axom::slam::ProductSet< PosType, ElemType >::ProductSet(), and axom::slam::ProductSet< PosType, ElemType >::size().
|
inlinevirtualinherited |
Returns pointer to the first set.
|
inlinevirtualinherited |
Returns pointer to the second set.
|
inlinevirtualinherited |
Reimplemented in axom::slam::RelationSet< RelationType >, and axom::slam::ProductSet< PosType, ElemType >.
Referenced by axom::slam::ProductSet< PosType, ElemType >::isValid().
|
pure virtualinherited |
Referenced by axom::slam::NullBivariateSet< SetPosition, SetElement >::findElementFlatIndex(), axom::slam::NullBivariateSet< SetPosition, SetElement >::findElementIndex(), axom::slam::NullBivariateSet< SetPosition, SetElement >::getElements(), and axom::slam::BivariateSet< RelationType::SetPosition, RelationType::SetElement >::isValid().
|
staticinherited |
|
staticinherited |
|
protectedinherited |
Referenced by axom::slam::BivariateSet< RelationType::SetPosition, RelationType::SetElement >::firstSetSize(), axom::slam::BivariateSet< RelationType::SetPosition, RelationType::SetElement >::getFirstSet(), and axom::slam::BivariateSet< RelationType::SetPosition, RelationType::SetElement >::isValid().
|
protectedinherited |
Referenced by axom::slam::BivariateSet< RelationType::SetPosition, RelationType::SetElement >::getSecondSet(), axom::slam::BivariateSet< RelationType::SetPosition, RelationType::SetElement >::isValid(), and axom::slam::BivariateSet< RelationType::SetPosition, RelationType::SetElement >::secondSetSize().