interface#
This module provides high-level helper functions for basis transformations.
- minterpy.transformations.interface.get_transformation(origin_polynomial, target_type)[source]#
Finds the Transformation class that can transform the basis of the origin_polynomial to the desired target_type.
- Parameters:
origin_polynomial (MultivariatePolynomialSingleABC) – an instance of the origin polynomial
target_type (type[MultivariatePolynomialSingleABC]) – data type of the target polynomial
- Returns:
the Transformation class that can perform this transformation.
- Return type:
- minterpy.transformations.interface.get_transformation_class(origin_type, target_type)[source]#
Finds the Transformation class to go from origin_type to target_type
A registry of ‘available_transforms’ is maintained in the TransformationABC. This function performs a lookup in this registry to retrieve the correct Transformation class.
- Parameters:
origin_type (type[MultivariatePolynomialSingleABC]) – data type of the origin polynomial
target_type (type[MultivariatePolynomialSingleABC]) – data type of the target polynomial
- Returns:
the Transformation class that can perform this transformation.
- Return type: