42#ifndef TPETRA_BLOCKVECTOR_DECL_HPP
43#define TPETRA_BLOCKVECTOR_DECL_HPP
46#include "Tpetra_BlockMultiVector.hpp"
47#include "Tpetra_Vector.hpp"
83 typedef Teuchos::ScalarTraits<Scalar> STS;
123 typedef typename base_type::little_vec_type
125 typedef typename base_type::little_host_vec_type
126 little_host_vec_type;
132 typedef typename base_type::const_little_vec_type
134 typedef typename base_type::const_little_host_vec_type
135 const_little_host_vec_type;
328 Access::ReadOnlyStruct)
const;
330 Access::OverwriteAllStruct);
332 Access::ReadWriteStruct);
Forward declaration of Tpetra::BlockVector.
MultiVector for multiple degrees of freedom per mesh point.
Vector for multiple degrees of freedom per mesh point.
const_little_host_vec_type getLocalBlockHost(const LO localRowIndex, Access::ReadOnlyStruct) const
Get a view of the degrees of freedom at the given mesh point, using a local index.
base_type::scalar_type scalar_type
The type of entries in the vector.
BlockVector(const BlockVector< Scalar, LO, GO, Node > &)=default
Copy constructor (shallow copy).
base_type::little_vec_type little_vec_type
"Block view" of all degrees of freedom at a mesh point.
base_type::local_ordinal_type local_ordinal_type
The type of local indices.
Tpetra::MultiVector< Scalar, LO, GO, Node > mv_type
The specialization of Tpetra::MultiVector that this class uses.
Tpetra::Map< LO, GO, Node > map_type
The specialization of Tpetra::Map that this class uses.
base_type::node_type node_type
The Kokkos Node type.
bool sumIntoGlobalValues(const GO globalRowIndex, const Scalar vals[])
Sum into all values at the given mesh point, using a global index.
BlockVector< Scalar, LO, GO, Node > & operator=(const BlockVector< Scalar, LO, GO, Node > &)=default
Copy assigment (shallow copy).
Tpetra::Vector< Scalar, LO, GO, Node > vec_type
The specialization of Tpetra::Vector that this class uses.
bool replaceGlobalValues(const GO globalRowIndex, const Scalar vals[])
Replace all values at the given mesh point, using a global index.
base_type::const_little_vec_type const_little_vec_type
"Const block view" of all degrees of freedom at a mesh point.
BlockVector()
Default constructor.
bool sumIntoLocalValues(const LO localRowIndex, const Scalar vals[])
Sum into all values at the given mesh point, using a local index.
vec_type getVectorView()
Get a Tpetra::Vector that views this BlockVector's data.
base_type::impl_scalar_type impl_scalar_type
The implementation type of entries in the vector.
bool replaceLocalValues(const LO localRowIndex, const Scalar vals[])
Replace all values at the given mesh point, using a local index.
BlockVector(BlockVector< Scalar, LO, GO, Node > &&)=default
Move constructor (shallow move).
Node::device_type device_type
The Kokkos Device type.
base_type::global_ordinal_type global_ordinal_type
The type of global indices.
Struct that holds views of the contents of a CrsMatrix.
A distributed dense vector.
Namespace Tpetra contains the class and methods constituting the Tpetra library.