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/latest/src/axom/slam/BivariateSet.hpp>
Public Types | |
using | FirstSetType = SetType1 |
using | SecondSetType = SetType2 |
using | BSet = BivariateSet< FirstSetType, SecondSetType > |
using | PositionType = typename BSet::PositionType |
using | ElementType = typename BSet::ElementType |
using | SubsetType = typename BSet::SubsetType |
using | RangeSetType = typename BSet::RangeSetType |
using | NullSetType = NullSet< PositionType, ElementType > |
using | IteratorType = BivariateSetIterator< BivariateSet > |
Public Member Functions | |
NullBivariateSet ()=default | |
PositionType | findElementIndex (PositionType pos1, PositionType pos2=0) const override |
AXOM_HOST_DEVICE PositionType | findElementFlatIndex (PositionType s1, PositionType s2) const override |
PositionType | findElementFlatIndex (PositionType s1) const override |
AXOM_HOST_DEVICE PositionType | flatToFirstIndex (PositionType) const override |
AXOM_HOST_DEVICE PositionType | flatToSecondIndex (PositionType) const override |
AXOM_HOST_DEVICE RangeSetType | elementRangeSet (PositionType) const override |
AXOM_HOST_DEVICE ElementType | at (PositionType) const override |
AXOM_HOST_DEVICE 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 |
SubsetType | getElements (PositionType) const override |
virtual PositionType | findElementIndex (PositionType pos1, PositionType pos2) const=0 |
Searches for the SparseIndex of the element given its DenseIndex. \detail 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... | |
virtual AXOM_HOST_DEVICE PositionType | findElementFlatIndex (PositionType pos1, PositionType pos2) const=0 |
Search for the FlatIndex of the element given its DenseIndex. More... | |
virtual PositionType | findElementFlatIndex (PositionType pos1) const=0 |
Searches for the first existing element given the row index (first set position). More... | |
virtual AXOM_HOST_DEVICE PositionType | flatToFirstIndex (PositionType flatIndex) const=0 |
Given the flat index, return the associated from-set index in the relation pair. More... | |
virtual AXOM_HOST_DEVICE PositionType | flatToSecondIndex (PositionType flatIndex) const=0 |
Given the flat index, return the associated to-set index in the relation pair. More... | |
virtual AXOM_HOST_DEVICE RangeSetType | elementRangeSet (PositionType pos1) const=0 |
Finds the range of indices of valid elements in the second set, given the index of an element in the first set. More... | |
virtual PositionType | size (PositionType pos1) const=0 |
Number of elements of the BivariateSet whose first index is pos. More... | |
AXOM_HOST_DEVICE PositionType | firstSetSize () const |
Size of the first set. More... | |
AXOM_HOST_DEVICE PositionType | secondSetSize () const |
Size of the second set. More... | |
const FirstSetType * | getFirstSet () const |
Returns pointer to the first set. More... | |
const SecondSetType * | getSecondSet () const |
Returns pointer to the second set. More... | |
virtual AXOM_HOST_DEVICE ElementType | at (PositionType pos) const=0 |
Returns the element at the given FlatIndex pos. More... | |
virtual SubsetType | getElements (PositionType s1) const=0 |
A set of elements with the given first set index. More... | |
IteratorType | begin () const |
Return an iterator to the first pair of set elements in the relation. More... | |
IteratorType | end () const |
Return an iterator to one past the last pair of set elements in the relation. More... | |
virtual bool | isValid (bool verboseOutput=false) const |
Static Public Attributes | |
static const PositionType | INVALID_POS |
static const NullSetType | s_nullSet |
Protected Attributes | |
const FirstSetType * | m_set1 |
const SecondSetType * | m_set2 |
A Null BivariateSet class. Same as the NullSet for Set class.
using axom::slam::NullBivariateSet< SetType1, SetType2 >::FirstSetType = SetType1 |
using axom::slam::NullBivariateSet< SetType1, SetType2 >::SecondSetType = SetType2 |
using axom::slam::NullBivariateSet< SetType1, SetType2 >::BSet = BivariateSet<FirstSetType, SecondSetType> |
using axom::slam::NullBivariateSet< SetType1, SetType2 >::PositionType = typename BSet::PositionType |
using axom::slam::NullBivariateSet< SetType1, SetType2 >::ElementType = typename BSet::ElementType |
using axom::slam::NullBivariateSet< SetType1, SetType2 >::SubsetType = typename BSet::SubsetType |
using axom::slam::NullBivariateSet< SetType1, SetType2 >::RangeSetType = typename BSet::RangeSetType |
|
inherited |
|
inherited |
|
default |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverridevirtual |
Size of the BivariateSet, which is the number of non-zero entries in the BivariateSet.
Implements axom::slam::BivariateSet< slam::Set<>, slam::Set<> >.
|
inlineoverride |
|
inlineoverride |
|
pure virtualinherited |
Searches for the SparseIndex of the element given its DenseIndex. \detail 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. |
|
pure virtualinherited |
Search for the FlatIndex of the element given its DenseIndex.
pos1 | The first set position. |
pos2 | The second set position. |
|
pure virtualinherited |
Searches for the first existing element given the row index (first set position).
pos1 | The first set position. |
|
pure virtualinherited |
Given the flat index, return the associated from-set index in the relation pair.
flatIndex | The FlatIndex of the from-set/to-set pair. |
|
pure virtualinherited |
Given the flat index, return the associated to-set index in the relation pair.
flatIndex | The FlatIndex of the from-set/to-set pair. |
|
pure virtualinherited |
Finds the range of indices of valid elements in the second set, given the index of an element in the first set.
Position | of the element in the first set |
|
pure virtualinherited |
Number of elements of the BivariateSet whose first index is pos.
|
inlineinherited |
Size of the first set.
|
inlineinherited |
Size of the second set.
|
inlineinherited |
Returns pointer to the first set.
|
inlineinherited |
Returns pointer to the second set.
|
pure virtualinherited |
Returns the element at the given FlatIndex pos.
|
pure virtualinherited |
A set of elements with the given first set index.
s1 | The first set index. |
|
inlineinherited |
Return an iterator to the first pair of set elements in the relation.
|
inlineinherited |
Return an iterator to one past the last pair of set elements in the relation.
|
virtualinherited |
|
staticinherited |
|
staticinherited |
|
protectedinherited |
|
protectedinherited |