scipp.spatial.scaling_from_vector#

scipp.spatial.scaling_from_vector(*, value)#

Creates a scaling transformation from a provided 3-vector.

Parameters:

value (ndarray[Any, dtype[TypeVar(_Float, bound= float64 | float32, covariant=True)]] | Sequence[TypeVar(_Float, bound= float64 | float32, covariant=True)]) – A list or NumPy array of 3 values, corresponding to scaling coefficients in the x, y and z directions respectively.

Returns:

Variable – A scalar variable of dtype linear_transform3.