10#ifndef TPETRA_BLOCKVECTOR_DECL_HPP
11#define TPETRA_BLOCKVECTOR_DECL_HPP
14#include "Tpetra_BlockMultiVector.hpp"
15#include "Tpetra_Vector.hpp"
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);
Forward declaration of Tpetra::BlockVector.
GO global_ordinal_type
The type of global indices.
typename mv_type::impl_scalar_type impl_scalar_type
The implementation type of entries in the object.
BlockMultiVector()
Default constructor.
Node node_type
The Kokkos Node type; a legacy thing that will go away at some point.
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.
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.
LO local_ordinal_type
The type of local indices.
Scalar scalar_type
The type of entries in the object.
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.
A parallel distribution of indices over processes.
One or more distributed dense vectors.
A distributed dense vector.
Namespace Tpetra contains the class and methods constituting the Tpetra library.