UpdateDiagonal

Adds a multiple of a given vector to a diagonal of a matrix.

C++ API

void UpdateDiagonal(Matrix<T> &A, T alpha, const Matrix<T> &d, Int offset = 0)
void UpdateDiagonal(DistMatrix<T, U, V> &A, T alpha, const AbstractDistMatrix<T> &d, Int offset = 0)
void UpdateRealPartOfDiagonal(Matrix<T> &A, Base<T> alpha, const Matrix<Base<T>> &d, Int offset = 0)
void UpdateRealPartOfDiagonal(DistMatrix<T, U, V> &A, Base<T> alpha, const AbstractDistMatrix<Base<T>> &d, Int offset = 0)
void UpdateImagPartOfDiagonal(Matrix<T> &A, Base<T> alpha, const Matrix<Base<T>> &d, Int offset = 0)
void UpdateImagPartOfDiagonal(DistMatrix<T, U, V> &A, Base<T> alpha, const AbstractDistMatrix<Base<T>> &d, Int offset = 0)

C API

TODO

Python API

TODO