scale#

Vector.scale(fac, copy=True)[source]#

Scale the vector.

Parameters:
facfloat

The scaling factor.

copybool, default True

If True, return a copy of the original vector, otherwise scale in-place.

Returns:
scaled_vectorVector

The scaled vector.