DiagonalScale

Note

This is not a standard BLAS routine, but it is BLAS-like.

Performs either \(X := \mbox{op}(D) X\) or \(X := X \mbox{op}(D)\), where \(op(D)\) equals \(D=D^T\), or \(D^H=\bar D\), where \(D = \mbox{diag}(d)\) and \(d\) is a column vector.

C++ API

void DiagonalScale(LeftOrRight side, Orientation orientation, const Matrix<T> &d, Matrix<T> &X)
void DiagonalScale(LeftOrRight side, Orientation orientation, const AbstractDistMatrix<T> &d, AbstractDistMatrix<T> &X)

C API

ElError ElDiagonalScale_i(ElLeftOrRight side, ElConstMatrix_i d, ElMatrix_i X)
ElError ElDiagonalScale_s(ElLeftOrRight side, ElConstMatrix_s d, ElMatrix_s X)
ElError ElDiagonalScale_d(ElLeftOrRight side, ElConstMatrix_d d, ElMatrix_d X)
ElError ElDiagonalScale_c(ElLeftOrRight side, ElOrientation orientation, ElConstMatrix_c d, ElMatrix_c X)
ElError ElDiagonalScale_z(ElLeftOrRight side, ElOrientation orientation, ElConstMatrix_z d, ElMatrix_z X)

Python API

DiagonalScale(side, d, X)