scipp.spatial.scaling_from_vector#

scipp.spatial.scaling_from_vector(*, value)#

Creates a scaling transformation from a provided 3-vector.

Parameters

value (Union[ndarray, list]) – A list or NumPy array of 3 values, corresponding to scaling coefficients in the x, y and z directions respectively.

Returns

A scalar variable of dtype linear_transform3.