Create a subset based on the components of a vector. More...
#include <VectorSelector.h>

Public Member Functions | |
| virtual AMP_MPI | communicator (const Vector &vec) const |
| Returns the communicator for the subset. | |
| const auto & | getIndices () const |
| Get the indices. | |
| virtual bool | isSelected (const Vector &v) const override |
| Returns true if Vector grossly matches a selection condition. | |
| std::shared_ptr< const Vector > | subset (std::shared_ptr< const Vector > vec) const |
| Subset the given vector. | |
| virtual std::shared_ptr< Vector > | subset (std::shared_ptr< Vector > vec) const override |
| Subset the given vector. | |
| virtual std::shared_ptr< Vector > | subset (std::shared_ptr< Vector > vec) const=0 |
| Subset the given vector. | |
| VS_Components (size_t index) | |
| Constructor. | |
| VS_Components (std::vector< size_t > index) | |
| Constructor. | |
Static Public Member Functions | |
| static std::shared_ptr< VectorSelector > | create (const std::vector< std::shared_ptr< VectorSelector > > &selectors) |
| Create a VectorSelector. | |
Protected Attributes | |
| std::vector< size_t > | d_index |
Create a subset based on the components of a vector.
This will select the given components of a vector
Definition at line 123 of file VectorSelector.h.
| AMP::LinearAlgebra::VS_Components::VS_Components | ( | size_t | index | ) |
Constructor.
| [in] | index | The component index to subset |
|
explicit |
Constructor.
| [in] | index | The component indices to subset |
|
virtualinherited |
Returns the communicator for the subset.
| [in] | vec | The Vector to match |
This function will return the proper communicator given the current vector. For most subsetters, this will be the same communicator as the current vector, however some subsetters (MeshSelector) may opperate on a different (smaller) comm.
Reimplemented in AMP::LinearAlgebra::VS_Comm, and AMP::LinearAlgebra::VS_Mesh.
|
staticinherited |
Create a VectorSelector.
Create a VectorSelector that applies a set of selectors which all must be met for the subset operation
| [in] | selectors | A list of subsequent selectors to apply |
|
inline |
|
overridevirtual |
Returns true if Vector grossly matches a selection condition.
| [in] | vec | The Vector to match |
Base class defaults to accepting all vectors.
Implements AMP::LinearAlgebra::VectorSelector.
|
virtual |
Subset the given vector.
| [in] | vec | The Vector to subset |
Base class defaults to returning all data in the vector
Implements AMP::LinearAlgebra::VectorSelector.
|
overridevirtual |
Subset the given vector.
| [in] | vec | The Vector to subset |
Base class defaults to returning all data in the vector
Implements AMP::LinearAlgebra::VectorSelector.
|
virtual |
Subset the given vector.
| [in] | vec | The Vector to subset |
Base class defaults to returning all data in the vector
Implements AMP::LinearAlgebra::VectorSelector.
|
protected |
Definition at line 145 of file VectorSelector.h.
Referenced by getIndices().
|
Advanced Multi-Physics (AMP) Oak Ridge National Laboratory Idaho National Laboratory Los Alamos National Laboratory |
This page automatically produced from the source code by Last updated: Tue Mar 10 2026 13:06:43. Comments on this page |