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 {
78 template<
class Scalar = ::Tpetra::Details::DefaultTypes::scalar_type,
80 class GO = ::Tpetra::Details::DefaultTypes::global_ordinal_type,
85 typedef Teuchos::ScalarTraits<Scalar> STS;
125 typedef Kokkos::View<impl_scalar_type*,
128 Kokkos::MemoryTraits<Kokkos::Unmanaged> >
135 typedef Kokkos::View<
const impl_scalar_type*,
138 Kokkos::MemoryTraits<Kokkos::Unmanaged> >
174 BlockVector (
const map_type& meshMap,
const LO blockSize);
181 const map_type& pointMap,
198 const map_type& meshMap,
206 const map_type& newMeshMap,
207 const map_type& newPointMap,
208 const size_t offset = 0);
215 const map_type& newMeshMap,
216 const size_t offset = 0);
332 #endif // TPETRA_EXPERIMENTAL_BLOCKMULTIVECTOR_DECL_HPP Tpetra::MultiVector< Scalar, LO, GO, Node > mv_type
The specialization of Tpetra::MultiVector that this class uses.
Namespace Tpetra contains the class and methods constituting the Tpetra library.
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.
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...
base_type::node_type node_type
The Kokkos Node type.
LO local_ordinal_type
The type of local indices.
Tpetra::Map< LO, GO, Node > map_type
The specialization of Tpetra::Map that this class uses.
A distributed dense vector.
One or more distributed dense vectors.
BlockVector()
Default constructor.
Scalar scalar_type
The type of entries in the matrix.
bool getGlobalRowView(const GO globalRowIndex, Scalar *&vals) const
Get a writeable view of the entries at the given mesh point, using a global index.
MultiVector for multiple degrees of freedom per mesh point.
base_type::local_ordinal_type local_ordinal_type
The type of local indices.
Node node_type
The Kokkos Node type.
Vector for multiple degrees of freedom per mesh point.
int local_ordinal_type
Default value of Scalar template parameter.
mv_type::impl_scalar_type impl_scalar_type
The implementation type of entries in the matrix.
bool sumIntoLocalValues(const LO localRowIndex, const Scalar vals[]) const
Sum into all values at the given mesh point, using a local index.
bool getLocalRowView(const LO localRowIndex, Scalar *&vals) const
Get a writeable view of the entries at the given mesh point, using a local index. ...
bool replaceLocalValues(const LO localRowIndex, const Scalar vals[]) const
Replace all values at the given mesh point, using a local index.
Node::device_type device_type
The Kokkos Device type.
bool sumIntoGlobalValues(const GO globalRowIndex, const Scalar vals[]) const
Sum into all values at the given mesh point, using a global index.
base_type::scalar_type scalar_type
The type of entries in the vector.
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.
::Kokkos::Compat::KokkosDeviceWrapperNode< execution_space > node_type
Default value of Node template parameter.
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.
bool replaceGlobalValues(const GO globalRowIndex, const Scalar vals[]) const
Replace all values at the given mesh point, using a global index.
A parallel distribution of indices over processes.
base_type::global_ordinal_type global_ordinal_type
The type of global indices.
GO global_ordinal_type
The type of global indices.
vec_type getVectorView()
Get a Tpetra::Vector that views this BlockVector's data.
Forward declaration of Tpetra::Experimental::BlockVector.
base_type::impl_scalar_type impl_scalar_type
The implementation type of entries in the vector.
Tpetra::Vector< Scalar, LO, GO, Node > vec_type
The specialization of Tpetra::Vector that this class uses.