Advanced Multi-Physics (AMP)
On-Line Documentation
VectorIndexer.h
Go to the documentation of this file.
1#ifndef included_AMP_VectorIndexer
2#define included_AMP_VectorIndexer
3
4#include <memory>
5
6
7namespace AMP::LinearAlgebra {
8
9class Vector;
10
23{
24public:
26 virtual ~VectorIndexer() {}
27
33 virtual bool isInSub( size_t underlyingID ) const = 0;
34
39 virtual size_t getSubID( size_t underlyingID ) const = 0;
40
46 virtual size_t getSuperID( size_t subsetID ) const = 0;
47
53 virtual size_t getIncrement( size_t underlyingID ) const = 0;
54
60 virtual size_t getNumLocalElements( std::shared_ptr<Vector> v ) const = 0;
61};
62
63} // namespace AMP::LinearAlgebra
64
65
66#endif
virtual size_t getSuperID(size_t subsetID) const =0
Given a global id in the SubsetVector, return the corresponding global id in the underlying vector.
virtual size_t getSubID(size_t underlyingID) const =0
Given a global id in the underlying vector, return the subset global id.
virtual bool isInSub(size_t underlyingID) const =0
Given a global id in the underlying vector, this returns true if the global id is in the SubsetVector...
virtual size_t getNumLocalElements(std::shared_ptr< Vector > v) const =0
Given a particular underlying vector, compute the number of local elements that are in this mapping.
virtual size_t getIncrement(size_t underlyingID) const =0
Given a global id in the underlying vector, return the distance to the next id in the SubsetVector.
virtual ~VectorIndexer()
Destructor.



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:41.
Comments on this page