Tpetra parallel linear algebra Version of the Day
Loading...
Searching...
No Matches
Tpetra_Reindex_MultiVector_decl.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// Tpetra: Templated Linear Algebra Services Package
4//
5// Copyright 2008 NTESS and the Tpetra contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef TPETRA_REINDEX_MULTIVECTOR_DECL_HPP
11#define TPETRA_REINDEX_MULTIVECTOR_DECL_HPP
12
15
16#include <Tpetra_Transform.hpp>
17#include <Tpetra_MultiVector.hpp>
18
19namespace Tpetra {
20
22
24template <class Scalar,
25 class LocalOrdinal,
26 class GlobalOrdinal,
27 class Node>
28class Reindex_MultiVector : public ViewTransform<MultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node> > {
29 public:
31 using OriginalType = typename ViewTransform<MultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node> >::OriginalType;
32
34
37
39
42
44
46 NewType operator()(OriginalType const& origMultiVector);
47
48 private:
49 Teuchos::RCP<Map<LocalOrdinal, GlobalOrdinal, Node> const> newRowMap_;
50};
51
52} // namespace Tpetra
53
54#endif // TPETRA_REINDEX_MULTIVECTOR_DECL_HPP
Struct that holds views of the contents of a CrsMatrix.
NewType operator()(OriginalType const &origMultiVector)
Namespace Tpetra contains the class and methods constituting the Tpetra library.