Tpetra parallel linear algebra Version of the Day
Loading...
Searching...
No Matches
Tpetra_replaceDiagonalCrsMatrix_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_REPLACEDIAGONALCRSMATRIX_DECL_HPP
11#define TPETRA_REPLACEDIAGONALCRSMATRIX_DECL_HPP
12
15
17#include "Tpetra_Vector_fwd.hpp"
18
19namespace Tpetra {
20
39template <class SC, class LO, class GO, class NT>
41 const ::Tpetra::Vector<SC, LO, GO, NT>& newDiag);
42
43} // namespace Tpetra
44
45#endif // #ifndef TPETRA_REPLACEDIAGONALCRSMATRIX_DECL_HPP
Forward declaration of Tpetra::CrsMatrix.
Forward declaration of Tpetra::Vector.
Struct that holds views of the contents of a CrsMatrix.
Namespace Tpetra contains the class and methods constituting the Tpetra library.
LO replaceDiagonalCrsMatrix(::Tpetra::CrsMatrix< SC, LO, GO, NT > &matrix, const ::Tpetra::Vector< SC, LO, GO, NT > &newDiag)
Replace diagonal entries of an input Tpetra::CrsMatrix matrix with values given in newDiag.