Xpetra: Is there an equivalent to Epetra's ReplaceDiagonalValues()?
Created by: mayrmt
@trilinos/xpetra @lucbv
In Epetra, the diagonal of a matrix can be replaced by Epetra_CrsMatrix::ReplaceDiagonalValues()
. Is there an equivalent routine in Xpetra?
I know how to extract a copy of the diagonal via Xpetra::Matrix::getLocalDiagCopy()
, but I couldn't find a mechanism to specifically replace the diagonal.
I can think of a workaround using Xpetra::Matrix::replaceLocalValues()
with proper row and col addressing, i.e. col being an array with just a single entry, namely the row index.
Related Issues
- Part of #4084 (closed)