10 #ifndef TPETRA_BLOCKVECTOR_DECL_HPP
11 #define TPETRA_BLOCKVECTOR_DECL_HPP
14 #include "Tpetra_BlockMultiVector.hpp"
15 #include "Tpetra_Vector.hpp"
44 template<
class Scalar,
51 typedef Teuchos::ScalarTraits<Scalar> STS;
93 typedef typename base_type::little_host_vec_type
102 typedef typename base_type::const_little_host_vec_type
103 const_little_host_vec_type;
131 const Teuchos::DataAccess copyOrView);
212 const size_t offset = 0);
220 const size_t offset = 0);
296 Access::ReadOnlyStruct)
const;
298 Access::OverwriteAllStruct);
300 Access::ReadWriteStruct);
306 #endif // TPETRA_BLOCKMULTIVECTOR_DECL_HPP
Node node_type
The Kokkos Node type; a legacy thing that will go away at some point.
BlockVector< Scalar, LO, GO, Node > & operator=(const BlockVector< Scalar, LO, GO, Node > &)=default
Copy assigment (shallow copy).
base_type::little_vec_type little_vec_type
"Block view" of all degrees of freedom at a mesh point.
Kokkos::View< const impl_scalar_type *, device_type > const_little_vec_type
"Const block view" of all degrees of freedom at a mesh point, for a single column of the MultiVector...
bool sumIntoGlobalValues(const GO globalRowIndex, const Scalar vals[])
Sum into all values at the given mesh point, using a global index.
base_type::node_type node_type
The Kokkos Node type.
LO local_ordinal_type
The type of local indices.
base_type::scalar_type scalar_type
The type of entries in the vector.
Kokkos::View< impl_scalar_type *, device_type > little_vec_type
"Block view" of all degrees of freedom at a mesh point, for a single column of the MultiVector...
bool sumIntoLocalValues(const LO localRowIndex, const Scalar vals[])
Sum into all values at the given mesh point, using a local index.
GO global_ordinal_type
The type of global indices.
base_type::impl_scalar_type impl_scalar_type
The implementation type of entries in the vector.
base_type::const_little_vec_type const_little_vec_type
"Const block view" of all degrees of freedom at a mesh point.
MultiVector for multiple degrees of freedom per mesh point.
vec_type getVectorView()
Get a Tpetra::Vector that views this BlockVector's data.
Tpetra::Vector< Scalar, LO, GO, Node > vec_type
The specialization of Tpetra::Vector that this class uses.
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.
Tpetra::MultiVector< Scalar, LO, GO, Node > mv_type
The specialization of Tpetra::MultiVector that this class uses.
Scalar scalar_type
The type of entries in the object.
bool replaceLocalValues(const LO localRowIndex, const Scalar vals[])
Replace all values at the given mesh point, using a local index.
A distributed dense vector.
base_type::local_ordinal_type local_ordinal_type
The type of local indices.
bool replaceGlobalValues(const GO globalRowIndex, const Scalar vals[])
Replace all values at the given mesh point, using a global index.
Forward declaration of Tpetra::BlockVector.
typename mv_type::impl_scalar_type impl_scalar_type
The implementation type of entries in the object.
BlockVector()
Default constructor.
Vector for multiple degrees of freedom per mesh point.
Tpetra::Map< LO, GO, Node > map_type
The specialization of Tpetra::Map that this class uses.
base_type::global_ordinal_type global_ordinal_type
The type of global indices.
Node::device_type device_type
The Kokkos Device type.