ShiftDiagonal¶
Adds a given value to a diagonal of a matrix.
C++ API¶
-
void
ShiftDiagonal
(SparseMatrix<T> &A, S alpha, Int offset = 0)¶
-
void
ShiftDiagonal
(DistSparseMatrix<T> &A, S alpha, Int offset = 0)¶
C API¶
-
ElError
ElShiftDiagonal_c
(ElMatrix_c A, complex_float alpha, ElInt offset)¶
-
ElError
ElShiftDiagonal_z
(ElMatrix_z A, complex_double alpha, ElInt offset)¶
-
ElError
ElShiftDiagonalDist_c
(ElDistMatrix_c A, complex_float alpha, ElInt offset)¶
-
ElError
ElShiftDiagonalDist_z
(ElDistMatrix_z A, complex_double alpha, ElInt offset)¶
-
ElError
ElShiftDiagonalSparse_c
(ElSparseMatrix_c A, complex_float alpha, ElInt offset)¶
-
ElError
ElShiftDiagonalSparse_z
(ElSparseMatrix_z A, complex_double alpha, ElInt offset)¶
-
ElError
ElShiftDiagonalDistSparse_c
(ElDistSparseMatrix_c A, complex_float alpha, ElInt offset)¶
-
ElError
ElShiftDiagonalDistSparse_z
(ElDistSparseMatrix_z A, complex_double alpha, ElInt offset)¶