Tpetra parallel linear algebra
Version of the Day
Loading...
Searching...
No Matches
core
src
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
16
#include "
Tpetra_CrsMatrix_fwd.hpp
"
17
#include "
Tpetra_Vector_fwd.hpp
"
18
19
namespace
Tpetra
{
20
39
template
<
class
SC,
class
LO,
class
GO,
class
NT>
40
LO
replaceDiagonalCrsMatrix
(
::Tpetra::CrsMatrix<SC, LO, GO, NT>
&
matrix
,
41
const ::Tpetra::Vector<SC, LO, GO, NT>&
newDiag
);
42
43
}
// namespace Tpetra
44
45
#endif
// #ifndef TPETRA_REPLACEDIAGONALCRSMATRIX_DECL_HPP
Tpetra_CrsMatrix_fwd.hpp
Forward declaration of Tpetra::CrsMatrix.
Tpetra_Vector_fwd.hpp
Forward declaration of Tpetra::Vector.
Tpetra::CrsMatrixStruct
Struct that holds views of the contents of a CrsMatrix.
Definition
TpetraExt_MMHelpers_decl.hpp:36
Tpetra
Namespace Tpetra contains the class and methods constituting the Tpetra library.
Tpetra::replaceDiagonalCrsMatrix
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.
Generated on Thu Oct 9 2025 21:01:02 for Tpetra parallel linear algebra by
1.9.8