SetDiagonal

Sets a diagonal of a matrix equal to a particular vector.

C++ API

void SetDiagonal(Matrix<T> &A, const Matrix<T> &d, Int offset = 0)
void SetDiagonal(DistMatrix<T, U, V> &A, const AbstractDistMatrix<T> &d, Int offset = 0)
void SetRealPartOfDiagonal(Matrix<T> &A, const Matrix<Base<T>> &d, Int offset = 0)
void SetRealPartOfDiagonal(DistMatrix<T, U, V> &A, const AbstractDistMatrix<Base<T>> &d, Int offset = 0)
void SetImagPartOfDiagonal(Matrix<T> &A, const Matrix<Base<T>> &d, Int offset = 0)
void SetImagPartOfDiagonal(DistMatrix<T, U, V> &A, const AbstractDistMatrix<Base<T>> &d, Int offset = 0)

C API

TODO

Python API

TODO