# ufunc_ops¶

Ufunc operators for ODL vectors.

Classes

 `absolute_func` `absolute_op`(*args, **kwargs) Calculate the absolute value element-wise. `add_op`(*args, **kwargs) Add arguments element-wise. `arccos_func` `arccos_op`(*args, **kwargs) Trigonometric inverse cosine, element-wise. `arccosh_func` `arccosh_op`(*args, **kwargs) Inverse hyperbolic cosine, element-wise. `arcsin_func` `arcsin_op`(*args, **kwargs) Inverse sine, element-wise. `arcsinh_func` `arcsinh_op`(*args, **kwargs) Inverse hyperbolic sine element-wise. `arctan2_op`(*args, **kwargs) Element-wise arc tangent of `x1/x2` choosing the quadrant correctly. `arctan_func` `arctan_op`(*args, **kwargs) Trigonometric inverse tangent, element-wise. `arctanh_func` `arctanh_op`(*args, **kwargs) Inverse hyperbolic tangent element-wise. `bitwise_and_op`(*args, **kwargs) Compute the bit-wise AND of two arrays element-wise. `bitwise_or_op`(*args, **kwargs) Compute the bit-wise OR of two arrays element-wise. `bitwise_xor_op`(*args, **kwargs) Compute the bit-wise XOR of two arrays element-wise. `ceil_func` `ceil_op`(*args, **kwargs) Return the ceiling of the input, element-wise. `conj_func` `conj_op`(*args, **kwargs) Return the complex conjugate, element-wise. `copysign_op`(*args, **kwargs) Change the sign of x1 to that of x2, element-wise. `cos_func` `cos_op`(*args, **kwargs) Cosine element-wise. `cosh_func` `cosh_op`(*args, **kwargs) Hyperbolic cosine, element-wise. `deg2rad_func` `deg2rad_op`(*args, **kwargs) Convert angles from degrees to radians. `divide_op`(*args, **kwargs) Returns a true division of the inputs, element-wise. `equal_op`(*args, **kwargs) Return (x1 == x2) element-wise. `exp2_func` `exp2_op`(*args, **kwargs) Calculate `2**p` for all `p` in the input array. `exp_func` `exp_op`(*args, **kwargs) Calculate the exponential of all elements in the input array. `expm1_func` `expm1_op`(*args, **kwargs) Calculate `exp(x) - 1` for all elements in the array. `floor_divide_op`(*args, **kwargs) Return the largest integer smaller or equal to the division of the inputs. `floor_func` `floor_op`(*args, **kwargs) Return the floor of the input, element-wise. `fmax_op`(*args, **kwargs) Element-wise maximum of array elements. `fmin_op`(*args, **kwargs) Element-wise minimum of array elements. `fmod_op`(*args, **kwargs) Return the element-wise remainder of division. `greater_equal_op`(*args, **kwargs) Return the truth value of (x1 >= x2) element-wise. `greater_op`(*args, **kwargs) Return the truth value of (x1 > x2) element-wise. `hypot_op`(*args, **kwargs) Given the “legs” of a right triangle, return its hypotenuse. `invert_op`(*args, **kwargs) Compute bit-wise inversion, or bit-wise NOT, element-wise. `isfinite_func` `isfinite_op`(*args, **kwargs) Test element-wise for finiteness (not infinity or not Not a Number). `isinf_func` `isinf_op`(*args, **kwargs) Test element-wise for positive or negative infinity. `isnan_func` `isnan_op`(*args, **kwargs) Test element-wise for NaN and return result as a boolean array. `left_shift_op`(*args, **kwargs) Shift the bits of an integer to the left. `less_equal_op`(*args, **kwargs) Return the truth value of (x1 =< x2) element-wise. `less_op`(*args, **kwargs) Return the truth value of (x1 < x2) element-wise. `log10_func` `log10_op`(*args, **kwargs) Return the base 10 logarithm of the input array, element-wise. `log1p_func` `log1p_op`(*args, **kwargs) Return the natural logarithm of one plus the input array, element-wise. `log2_func` `log2_op`(*args, **kwargs) Base-2 logarithm of `x`. `log_func` `log_op`(*args, **kwargs) Natural logarithm, element-wise. `logaddexp2_op`(*args, **kwargs) Logarithm of the sum of exponentiations of the inputs in base-2. `logaddexp_op`(*args, **kwargs) Logarithm of the sum of exponentiations of the inputs. `logical_and_op`(*args, **kwargs) Compute the truth value of x1 AND x2 element-wise. `logical_not_func` `logical_not_op`(*args, **kwargs) Compute the truth value of NOT x element-wise. `logical_or_op`(*args, **kwargs) Compute the truth value of x1 OR x2 element-wise. `logical_xor_op`(*args, **kwargs) Compute the truth value of x1 XOR x2, element-wise. `maximum_op`(*args, **kwargs) Element-wise maximum of array elements. `minimum_op`(*args, **kwargs) Element-wise minimum of array elements. `mod_op`(*args, **kwargs) Return element-wise remainder of division. `modf_op`(*args, **kwargs) Return the fractional and integral parts of an array, element-wise. `multiply_op`(*args, **kwargs) Multiply arguments element-wise. `negative_func` `negative_op`(*args, **kwargs) Numerical negative, element-wise. `not_equal_op`(*args, **kwargs) Return (x1 != x2) element-wise. `power_op`(*args, **kwargs) First array elements raised to powers from second array, element-wise. `rad2deg_func` `rad2deg_op`(*args, **kwargs) Convert angles from radians to degrees. `reciprocal_func` `reciprocal_op`(*args, **kwargs) Return the reciprocal of the argument, element-wise. `remainder_op`(*args, **kwargs) Return element-wise remainder of division. `right_shift_op`(*args, **kwargs) Shift the bits of an integer to the right. `rint_func` `rint_op`(*args, **kwargs) Round elements of the array to the nearest integer. `sign_func` `sign_op`(*args, **kwargs) Returns an element-wise indication of the sign of a number. `signbit_func` `signbit_op`(*args, **kwargs) Returns element-wise True where signbit is set (less than zero). `sin_func` `sin_op`(*args, **kwargs) Trigonometric sine, element-wise. `sinh_func` `sinh_op`(*args, **kwargs) Hyperbolic sine, element-wise. `sqrt_func` `sqrt_op`(*args, **kwargs) Return the non-negative square-root of an array, element-wise. `square_func` `square_op`(*args, **kwargs) Return the element-wise square of the input. `subtract_op`(*args, **kwargs) Subtract arguments, element-wise. `tan_func` `tan_op`(*args, **kwargs) Compute tangent element-wise. `tanh_func` `tanh_op`(*args, **kwargs) Compute hyperbolic tangent element-wise. `true_divide_op`(*args, **kwargs) Returns a true division of the inputs, element-wise. `trunc_func` `trunc_op`(*args, **kwargs) Return the truncated value of the input, element-wise.

Functions

 `absolute`([domain]) Calculate the absolute value element-wise. `add`([domain]) Add arguments element-wise. `arccos`([domain]) Trigonometric inverse cosine, element-wise. `arccosh`([domain]) Inverse hyperbolic cosine, element-wise. `arcsin`([domain]) Inverse sine, element-wise. `arcsinh`([domain]) Inverse hyperbolic sine element-wise. `arctan`([domain]) Trigonometric inverse tangent, element-wise. `arctan2`([domain]) Element-wise arc tangent of `x1/x2` choosing the quadrant correctly. `arctanh`([domain]) Inverse hyperbolic tangent element-wise. `bitwise_and`([domain]) Compute the bit-wise AND of two arrays element-wise. `bitwise_or`([domain]) Compute the bit-wise OR of two arrays element-wise. `bitwise_xor`([domain]) Compute the bit-wise XOR of two arrays element-wise. `ceil`([domain]) Return the ceiling of the input, element-wise. `conj`([domain]) Return the complex conjugate, element-wise. `copysign`([domain]) Change the sign of x1 to that of x2, element-wise. `cos`([domain]) Cosine element-wise. `cosh`([domain]) Hyperbolic cosine, element-wise. `deg2rad`([domain]) Convert angles from degrees to radians. Create derivative function for some ufuncs. `divide`([domain]) Returns a true division of the inputs, element-wise. `dtypes_out`(ufunc, dtypes_in) Return the result dtype(s) of `ufunc` with inputs of given dtypes. `equal`([domain]) Return (x1 == x2) element-wise. `exp`([domain]) Calculate the exponential of all elements in the input array. `exp2`([domain]) Calculate `2**p` for all `p` in the input array. `expm1`([domain]) Calculate `exp(x) - 1` for all elements in the array. `find_min_signature`(ufunc, dtypes_in) Determine the minimum matching ufunc signature for given dtypes. `floor`([domain]) Return the floor of the input, element-wise. `floor_divide`([domain]) Return the largest integer smaller or equal to the division of the inputs. `fmax`([domain]) Element-wise maximum of array elements. `fmin`([domain]) Element-wise minimum of array elements. `fmod`([domain]) Return the element-wise remainder of division. Create gradient `Functional` for some ufuncs. `greater`([domain]) Return the truth value of (x1 > x2) element-wise. `greater_equal`([domain]) Return the truth value of (x1 >= x2) element-wise. `hypot`([domain]) Given the “legs” of a right triangle, return its hypotenuse. `indirection`(name, docstring) `invert`([domain]) Compute bit-wise inversion, or bit-wise NOT, element-wise. `isfinite`([domain]) Test element-wise for finiteness (not infinity or not Not a Number). `isinf`([domain]) Test element-wise for positive or negative infinity. `isnan`([domain]) Test element-wise for NaN and return result as a boolean array. `left_shift`([domain]) Shift the bits of an integer to the left. `less`([domain]) Return the truth value of (x1 < x2) element-wise. `less_equal`([domain]) Return the truth value of (x1 =< x2) element-wise. `log`([domain]) Natural logarithm, element-wise. `log10`([domain]) Return the base 10 logarithm of the input array, element-wise. `log1p`([domain]) Return the natural logarithm of one plus the input array, element-wise. `log2`([domain]) Base-2 logarithm of `x`. `logaddexp`([domain]) Logarithm of the sum of exponentiations of the inputs. `logaddexp2`([domain]) Logarithm of the sum of exponentiations of the inputs in base-2. `logical_and`([domain]) Compute the truth value of x1 AND x2 element-wise. `logical_not`([domain]) Compute the truth value of NOT x element-wise. `logical_or`([domain]) Compute the truth value of x1 OR x2 element-wise. `logical_xor`([domain]) Compute the truth value of x1 XOR x2, element-wise. `maximum`([domain]) Element-wise maximum of array elements. `minimum`([domain]) Element-wise minimum of array elements. `mod`([domain]) Return element-wise remainder of division. `modf`([domain]) Return the fractional and integral parts of an array, element-wise. `multiply`([domain]) Multiply arguments element-wise. `negative`([domain]) Numerical negative, element-wise. `not_equal`([domain]) Return (x1 != x2) element-wise. `power`([domain]) First array elements raised to powers from second array, element-wise. `rad2deg`([domain]) Convert angles from radians to degrees. `reciprocal`([domain]) Return the reciprocal of the argument, element-wise. `remainder`([domain]) Return element-wise remainder of division. `right_shift`([domain]) Shift the bits of an integer to the right. `rint`([domain]) Round elements of the array to the nearest integer. `sign`([domain]) Returns an element-wise indication of the sign of a number. `signbit`([domain]) Returns element-wise True where signbit is set (less than zero). `sin`([domain]) Trigonometric sine, element-wise. `sinh`([domain]) Hyperbolic sine, element-wise. `sqrt`([domain]) Return the non-negative square-root of an array, element-wise. `square`([domain]) Return the element-wise square of the input. `subtract`([domain]) Subtract arguments, element-wise. `tan`([domain]) Compute tangent element-wise. `tanh`([domain]) Compute hyperbolic tangent element-wise. `true_divide`([domain]) Returns a true division of the inputs, element-wise. `trunc`([domain]) Return the truncated value of the input, element-wise. `ufunc_class_factory`(name, nargin, nargout, …) Create a Ufunc `Operator` from a given specification. `ufunc_factory`([domain]) Return the truncated value of the input, element-wise. `ufunc_functional_factory`(name, nargin, …) Create a ufunc `Functional` from a given specification.