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.7.0/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 | OrderedSetType = typename BSet::OrderedSetType |
using | RangeSetType = typename BSet::RangeSetType |
using | NullSetType = NullSet< PositionType, ElementType > |
Public Member Functions | |
NullBivariateSet ()=default | |
PositionType | findElementIndex (PositionType pos1, PositionType pos2=0) const override |
PositionType | findElementFlatIndex (PositionType s1, PositionType s2) const override |
PositionType | findElementFlatIndex (PositionType s1) const override |
RangeSetType | elementRangeSet (PositionType) const override |
ElementType | at (PositionType) const override |
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 |
const OrderedSetType | getElements (PositionType) const override |
virtual PositionType | findElementIndex (PositionType pos1, PositionType pos2) const=0 |
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... | |
virtual 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 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... | |
PositionType | firstSetSize () const |
Size of the first set. More... | |
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 ElementType | at (PositionType pos) const=0 |
Returns the element at the given FlatIndex pos. More... | |
virtual const OrderedSetType | getElements (PositionType s1) const=0 |
A set of elements with the given first set index. 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 |
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 >::OrderedSetType = typename BSet::OrderedSetType |
using axom::slam::NullBivariateSet< SetType1, SetType2 >::RangeSetType = typename BSet::RangeSetType |
|
inherited |
|
default |
|
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< SetType1, SetType2 >.
|
inlineoverride |
|
inlineoverride |
|
pure virtualinherited |
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. |
|
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 |
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.
References axom::slam::BivariateSet< Set1, Set2 >::m_set1.
|
inlineinherited |
Size of the second set.
References axom::slam::BivariateSet< Set1, Set2 >::m_set2.
|
inlineinherited |
Returns pointer to the first set.
References axom::slam::BivariateSet< Set1, Set2 >::m_set1.
|
inlineinherited |
Returns pointer to the second set.
References axom::slam::BivariateSet< Set1, Set2 >::at(), axom::slam::BivariateSet< Set1, Set2 >::getElements(), axom::slam::BivariateSet< Set1, Set2 >::isValid(), axom::slam::BivariateSet< Set1, Set2 >::m_set2, SLIC_ASSERT_MSG, and axom::slam::BivariateSet< Set1, Set2 >::verifyPosition().
|
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. |
|
virtualinherited |
|
pure virtualinherited |
|
staticinherited |
|
staticinherited |
|
protectedinherited |
|
protectedinherited |