find_min_signature

odl.ufunc_ops.ufunc_ops.find_min_signature(ufunc, dtypes_in)[source]

Determine the minimum matching ufunc signature for given dtypes.

Parameters:
ufuncstr or numpy.ufunc

Ufunc whose signatures are to be considered.

dtypes_in

Sequence of objects specifying input dtypes. Its length must match the number of inputs of ufunc, and its entries must be understood by numpy.dtype.

Returns:
signaturestr

Minimum matching ufunc signature, see, e.g., np.add.types for examples.

Raises:
TypeError

If no valid signature is found.