TSFExtended::AccessibleVector defines an interface through which elements for a vector can be accessed. More...
Public Member Functions | |
| virtual | ~AccessibleVector () |
| virtual dtor | |
| virtual const Scalar & | getElement (OrdType globalIndex) const =0 |
| get the element at the given global index | |
| virtual void | getElements (const int *globalIndices, int numElems, Teuchos::Array< Scalar > &elems) const |
| get a batch of elements. | |
TSFExtended::AccessibleVector defines an interface through which elements for a vector can be accessed.
Element access is occasionally used by application codes in probing results vectors, but should rarely be used by high-performance solver codes; this capability is therefore in TSFExtended rather than Thyra.
Definition at line 50 of file TSFAccessibleVector.hpp.
| virtual TSFExtended::AccessibleVector< Scalar >::~AccessibleVector | ( | ) | [inline, virtual] |
virtual dtor
Definition at line 54 of file TSFAccessibleVector.hpp.
| virtual const Scalar& TSFExtended::AccessibleVector< Scalar >::getElement | ( | OrdType | globalIndex | ) | const [pure virtual] |
get the element at the given global index
Implemented in TSFExtended::EpetraGhostView, TSFExtended::EpetraMultiVector, TSFExtended::EpetraVector, TSFExtended::SerialGhostView, TSFExtended::SerialVector, TSFExtended::IndexableVector< Scalar >, and TSFExtended::IndexableVector< double >.
Referenced by TSFExtended::AccessibleVector< double >::getElements().
| virtual void TSFExtended::AccessibleVector< Scalar >::getElements | ( | const int * | globalIndices, |
| int | numElems, | ||
| Teuchos::Array< Scalar > & | elems | ||
| ) | const [inline, virtual] |
get a batch of elements.
Slow default implementation loops over calls to getElement().
Definition at line 62 of file TSFAccessibleVector.hpp.