# naginterfaces.library.blas.ddscl¶

naginterfaces.library.blas.ddscl(d, x)[source]

ddscl multiplies a real vector by a real diagonal matrix.

For full information please refer to the NAG Library document for f06fc

https://www.nag.com/numeric/nl/nagdoc_28.7/flhtml/f06/f06fcf.html

Parameters
dfloat, array-like, shape

The vector .

xfloat, array-like, shape

The array must contain the -element vector .

Returns
xfloat, ndarray, shape

The updated vector .

Notes

No equivalent traditional C interface for this routine exists in the NAG Library.

ddscl performs the operation

where is an -element real vector and is a real diagonal matrix.

Equivalently, the function performs the element-by-element product of the vectors and