optframework.utils.func.func_math module

Created on Fri Dec 1 10:54:06 2023

@author: px2030

optframework.utils.func.func_math.float_equal(a, b, rel_tol=1e-06)[source]
optframework.utils.func.func_math.float_in_list(target, float_list, rel_tol=1e-06)[source]
optframework.utils.func.func_math.isZero(value, tol=1e-20)[source]
optframework.utils.func.func_math.ensure_integer_array(x)[source]

Ensure the input is of integer type, supports both scalars and arrays.

Parameters:

x (scalar or numpy.ndarray): Input value or array.

Returns:

int or numpy.ndarray: Integer version of the input.