Reference documentation for deal.II version 9.6.0
|
#include <deal.II/lac/read_vector.h>
Public Types | |
using | size_type = types::global_dof_index |
Public Member Functions | |
virtual size_type | size () const =0 |
virtual void | extract_subvector_to (const ArrayView< const types::global_dof_index > &indices, ArrayView< Number > &elements) const =0 |
Base class for providing read-only access to vector elements.
deal.II supports a large number of vector classes, including both its own serial and parallel vectors as well as vector classes from external libraries like PETSc and Trilinos. ReadVector is a common base class for all vector classes and defines a minimal interface for efficiently accessing vector elements.
Definition at line 40 of file read_vector.h.
using ReadVector< Number >::size_type = types::global_dof_index |
Definition at line 43 of file read_vector.h.
|
pure virtual |
Return the size of the vector.
Implemented in BlockVectorBase< VectorType >, BlockVectorBase< MPI::Vector >, BlockVectorBase< TpetraWrappers::Vector< Number, ::MemorySpace::Host > >, BlockVectorBase< Vector >, BlockVectorBase< Vector< double > >, BlockVectorBase< Vector< Number > >, BlockVectorBase< Vector< number > >, LinearAlgebra::distributed::BlockVector< Number >, LinearAlgebra::distributed::Vector< Number, MemorySpace >, LinearAlgebra::distributed::Vector< double >, LinearAlgebra::EpetraWrappers::Vector, LinearAlgebra::ReadWriteVector< Number >, LinearAlgebra::TpetraWrappers::Vector< Number, MemorySpace >, LinearAlgebra::TpetraWrappers::Vector< Number, ::MemorySpace::Host >, PETScWrappers::VectorBase, TrilinosWrappers::MPI::Vector, Vector< Number >, Vector< double >, Vector< number >, and Vector< typename VectorType::value_type >.
|
pure virtual |
Extract a subset of the vector specified by indices
into the output array elements
.
Implemented in BlockVectorBase< Vector >, LinearAlgebra::distributed::Vector< Number, MemorySpace >, LinearAlgebra::distributed::Vector< double >, LinearAlgebra::ReadWriteVector< Number >, LinearAlgebra::TpetraWrappers::Vector< Number, MemorySpace >, LinearAlgebra::TpetraWrappers::Vector< Number, ::MemorySpace::Host >, PETScWrappers::VectorBase, TrilinosWrappers::MPI::Vector, Vector< Number >, Vector< double >, Vector< number >, and Vector< typename VectorType::value_type >.