def __init__(self, arg_template, precision=ML_Binary32, abs_accuracy=S2**-24, libm_compliant=True, debug_flag=False, fuse_fma=True, fast_path_extract=True, target=MPFRProcessor(), output_file="ut_latency_evaluation.c", function_name="ut_latency_evaluation"): # precision argument extraction precision = ArgDefault.select_value( [arg_template.precision, precision]) io_precisions = [precision] * 2 # initializing base class ML_FunctionBasis.__init__( self, base_name="ut_latency_evaluation", function_name=function_name, output_file=output_file, io_precisions=io_precisions, abs_accuracy=None, libm_compliant=libm_compliant, processor=target, fuse_fma=fuse_fma, fast_path_extract=fast_path_extract, debug_flag=debug_flag, arg_template=arg_template, ) self.precision = precision
def __init__(self, precision=ML_Binary32, abs_accuracy=S2**-24, libm_compliant=True, debug_flag=False, fuse_fma=True, fast_path_extract=True, target=MPFRProcessor(), output_file="ut_payne_hanek.c", function_name="ut_payne_hanek"): io_precisions = [precision] * 2 # initializing base class ML_FunctionBasis.__init__(self, base_name="ut_payne_hanek", function_name=function_name, output_file=output_file, io_precisions=io_precisions, abs_accuracy=None, libm_compliant=libm_compliant, processor=target, fuse_fma=fuse_fma, fast_path_extract=fast_path_extract, debug_flag=debug_flag) self.precision = precision
def get_default_args(**kw): """ Return a structure containing the arguments for ML_Exponential, builtin from a default argument mapping overloaded with @p kw """ default_args = { "output_file": "ut_implicit_interval_eval.c", "function_name": "ut_implicit_interval_eval", "precision": ML_Binary32, "accuracy": ML_Faithful, "target": MPFRProcessor() } default_args.update(kw) return DefaultArgTemplate(**default_args)
def get_default_args(**kw): """ Return a structure containing the arguments for current class, builtin from a default argument mapping overloaded with @p kw """ default_args = { "output_file": "ut_new_arg_template.c", "function_name": "ut_new_arg_template", "precision": ML_Binary32, "accuracy": ML_Faithful, "target": MPFRProcessor() } default_args.update(kw) return DefaultArgTemplate(**default_args)
def get_default_args(**kw): """ Return a structure containing the arguments for current class, builtin from a default argument mapping overloaded with @p kw """ default_args = { "output_file": "ut_loop_operation.c", "function_name": "ut_loop_operation", "precision": ML_Int32, "target": MPFRProcessor(), "fast_path_extract": True, "fuse_fma": True, "libm_compliant": True } default_args.update(kw) return DefaultArgTemplate(**default_args)