SetDiagonal¶
Note
This is not a standard BLAS routine.
Sets all of the diagonal entries of a matrix to a given value.
C++ API¶
-
void
SetDiagonal
(AbstractDistMatrix<T> &A, T alpha)¶
-
void
SetDiagonal
(Matrix<T> &A, T alpha, Int offset = 0, LeftOrRight side = LEFT)¶
-
void
SetDiagonal
(AbstractDistMatrix<T> &A, T alpha, Int offset = 0, LeftOrRight side = LEFT)¶
C API¶
-
ElError
ElSetDiagonal_c
(ElMatrix_c A, complex_float alpha, ElInt offset)¶
-
ElError
ElSetDiagonal_z
(ElMatrix_z A, complex_double alpha, ElInt offset)¶
-
ElError
ElSetDiagonalDist_c
(ElDistMatrix_c A, complex_float alpha, ElInt offset)¶
-
ElError
ElSetDiagonalDist_z
(ElDistMatrix_z A, complex_double alpha, ElInt offset)¶