baybe.transformations.utils.sum_affine_transformations¶
- baybe.transformations.utils.sum_affine_transformations(transformations: Collection[Transformation], /)[source]¶
Additively combine affine transformations in a given transformation collection.
- Parameters:
transformations (
Collection[Transformation]) – A collection of transformations.- Raises:
TypeError – If any of the passed elements is not a
baybe.transformations.base.Transformation.- Return type:
- Returns:
A condensed version of the collection where all affine transformations have been combined into one.