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:
Returns:

the Transformation class that can perform this transformation.

Return type:

TransformationABC

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:
Returns:

the Transformation class that can perform this transformation.

Return type:

type[TransformationABC]