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>
40LO
42 const ::Tpetra::Vector<SC, LO, GO, NT>& newDiag);
43
44} // namespace Tpetra
45
46#endif // #ifndef TPETRA_REPLACEDIAGONALCRSMATRIX_DECL_HPP
Forward declaration of Tpetra::CrsMatrix.
Forward declaration of Tpetra::Vector.
Sparse matrix that presents a row-oriented interface that lets users read or modify entries.
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.