42 #ifndef TPETRA_EXPERIMENTAL_BLOCKVECTOR_DECL_HPP
43 #define TPETRA_EXPERIMENTAL_BLOCKVECTOR_DECL_HPP
46 #include "Tpetra_Experimental_BlockMultiVector.hpp"
47 #include "Tpetra_Vector.hpp"
50 namespace Experimental {
77 template<
class Scalar,
84 typedef Teuchos::ScalarTraits<Scalar> STS;
127 Kokkos::MemoryTraits<Kokkos::Unmanaged> >
137 Kokkos::MemoryTraits<Kokkos::Unmanaged> >
223 const size_t offset = 0);
231 const size_t offset = 0);
346 #endif // TPETRA_EXPERIMENTAL_BLOCKMULTIVECTOR_DECL_HPP
bool getLocalRowView(const LO localRowIndex, Scalar *&vals) const
Get a writeable view of the entries at the given mesh point, using a local index. ...
Node node_type
The Kokkos Node type; a legacy thing that will go away at some point.
base_type::impl_scalar_type impl_scalar_type
The implementation type of entries in the vector.
LO local_ordinal_type
The type of local indices.
MultiVector for multiple degrees of freedom per mesh point.
Vector for multiple degrees of freedom per mesh point.
Kokkos::View< impl_scalar_type *, Kokkos::LayoutRight, device_type, Kokkos::MemoryTraits< Kokkos::Unmanaged > > little_vec_type
"Block view" of all degrees of freedom at a mesh point, for a single column of the MultiVector...
Tpetra::Vector< Scalar, LO, GO, Node > vec_type
The specialization of Tpetra::Vector that this class uses.
base_type::node_type node_type
The Kokkos Node type.
Kokkos::View< impl_scalar_type *, Kokkos::LayoutRight, device_type, Kokkos::MemoryTraits< Kokkos::Unmanaged > > little_vec_type
"Block view" of all degrees of freedom at a mesh point.
bool sumIntoGlobalValues(const GO globalRowIndex, const Scalar vals[]) const
Sum into all values at the given mesh point, using a global index.
base_type::local_ordinal_type local_ordinal_type
The type of local indices.
Tpetra::Map< LO, GO, Node > map_type
The specialization of Tpetra::Map that this class uses.
base_type::scalar_type scalar_type
The type of entries in the vector.
base_type::global_ordinal_type global_ordinal_type
The type of global indices.
vec_type getVectorView()
Get a Tpetra::Vector that views this BlockVector's data.
Kokkos::View< const impl_scalar_type *, Kokkos::LayoutRight, device_type, Kokkos::MemoryTraits< Kokkos::Unmanaged > > const_little_vec_type
"Const block view" of all degrees of freedom at a mesh point.
Node::device_type device_type
The Kokkos Device type.
bool getGlobalRowView(const GO globalRowIndex, Scalar *&vals) const
Get a writeable view of the entries at the given mesh point, using a global index.
Scalar scalar_type
The type of entries in the object.
little_vec_type getLocalBlock(const LO localRowIndex) const
Get a view of the degrees of freedom at the given mesh point, using a local index.
bool sumIntoLocalValues(const LO localRowIndex, const Scalar vals[]) const
Sum into all values at the given mesh point, using a local index.
A distributed dense vector.
bool replaceGlobalValues(const GO globalRowIndex, const Scalar vals[]) const
Replace all values at the given mesh point, using a global index.
typename mv_type::impl_scalar_type impl_scalar_type
The implementation type of entries in the object.
GO global_ordinal_type
The type of global indices.
BlockVector()
Default constructor.
Tpetra::MultiVector< Scalar, LO, GO, Node > mv_type
The specialization of Tpetra::MultiVector that this class uses.
bool replaceLocalValues(const LO localRowIndex, const Scalar vals[]) const
Replace all values at the given mesh point, using a local index.
Forward declaration of Tpetra::Experimental::BlockVector.