42 #ifndef TPETRA_EXPERIMENTAL_BLOCKVECTOR_DECL_HPP 43 #define TPETRA_EXPERIMENTAL_BLOCKVECTOR_DECL_HPP 45 #include <Tpetra_Experimental_BlockMultiVector.hpp> 46 #include <Tpetra_Vector.hpp> 49 namespace Experimental {
78 class GO = Details::DefaultTypes::global_ordinal_type,
83 typedef Teuchos::ScalarTraits<Scalar> STS;
162 BlockVector (
const map_type& meshMap,
const LO blockSize);
169 const map_type& pointMap,
186 const map_type& meshMap,
194 const map_type& newMeshMap,
195 const map_type& newPointMap,
196 const size_t offset = 0);
203 const map_type& newMeshMap,
204 const size_t offset = 0);
312 little_vec_type
getLocalBlock (
const LO localRowIndex)
const;
319 #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. ...
Namespace Tpetra contains the class and methods constituting the Tpetra library.
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.
KokkosClassic::DefaultNode::DefaultNodeType node_type
Default value of Node template parameter.
MultiVector for multiple degrees of freedom per mesh point.
Vector for multiple degrees of freedom per mesh point.
Node node_type
The Kokkos Node type.
int local_ordinal_type
Default value of LocalOrdinal template parameter.
mv_type::impl_scalar_type impl_scalar_type
The implementation type of entries in the matrix.
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.
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.
LittleVector< impl_scalar_type, LO > little_vec_type
"Block view" of all degrees of freedom at a mesh point.
base_type::scalar_type scalar_type
The type of entries in the vector.
Nonowning view of a set of degrees of freedom corresponding to a mesh point in a block vector or mult...
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.
double scalar_type
Default value of Scalar template parameter.
bool getGlobalRowView(const GO globalRowIndex, Scalar *&vals) const
Get a writeable view of the entries at the given mesh point, using a global index.
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.
LittleVector< const impl_scalar_type, LO > const_little_vec_type
"Const block view" of all degrees of freedom at a mesh point.
bool sumIntoLocalValues(const LO localRowIndex, const Scalar vals[]) const
Sum into all values at the given mesh point, using a local index.
GO global_ordinal_type
The type of global indices.
Scalar scalar_type
The type of entries in the matrix.
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.
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.