scipy.linalg.blas.dscal#

scipy.linalg.blas.dscal(a, x, n=None, offx=0, incx=1) = <fblas function dscal>#

Scale x in place by a: x = a*x (BLAS dscal).

Parameters:
afloat

Scalar multiplier.

xndarray

Input/output vector; overwritten with a*x.

nint, optional

Number of elements to process. Default is the whole vector.

offxint, optional

Index of the first element of x to use. Default is 0.

incxint, optional

Stride between successive elements of x. Default is 1.

Returns:
xndarray

The scaled vector a*x.