ProductSpaceUfuncs

class odl.util.ufuncs.ProductSpaceUfuncs(elem)[source]

Bases: object

Ufuncs for ProductSpaceElement objects.

Internal object, should not be created except in ProductSpaceElement.

Methods

absolute(self[, out])

Calculate the absolute value element-wise.

add(self, x2[, out])

Add arguments element-wise.

arccos(self[, out])

Trigonometric inverse cosine, element-wise.

arccosh(self[, out])

Inverse hyperbolic cosine, element-wise.

arcsin(self[, out])

Inverse sine, element-wise.

arcsinh(self[, out])

Inverse hyperbolic sine element-wise.

arctan(self[, out])

Trigonometric inverse tangent, element-wise.

arctan2(self, x2[, out])

Element-wise arc tangent of x1/x2 choosing the quadrant correctly.

arctanh(self[, out])

Inverse hyperbolic tangent element-wise.

bitwise_and(self, x2[, out])

Compute the bit-wise AND of two arrays element-wise.

bitwise_or(self, x2[, out])

Compute the bit-wise OR of two arrays element-wise.

bitwise_xor(self, x2[, out])

Compute the bit-wise XOR of two arrays element-wise.

ceil(self[, out])

Return the ceiling of the input, element-wise.

conj(self[, out])

Return the complex conjugate, element-wise.

copysign(self, x2[, out])

Change the sign of x1 to that of x2, element-wise.

cos(self[, out])

Cosine element-wise.

cosh(self[, out])

Hyperbolic cosine, element-wise.

deg2rad(self[, out])

Convert angles from degrees to radians.

divide(self, x2[, out])

Returns a true division of the inputs, element-wise.

equal(self, x2[, out])

Return (x1 == x2) element-wise.

exp(self[, out])

Calculate the exponential of all elements in the input array.

exp2(self[, out])

Calculate 2**p for all p in the input array.

expm1(self[, out])

Calculate exp(x) - 1 for all elements in the array.

floor(self[, out])

Return the floor of the input, element-wise.

floor_divide(self, x2[, out])

Return the largest integer smaller or equal to the division of the inputs.

fmax(self, x2[, out])

Element-wise maximum of array elements.

fmin(self, x2[, out])

Element-wise minimum of array elements.

fmod(self, x2[, out])

Return the element-wise remainder of division.

greater(self, x2[, out])

Return the truth value of (x1 > x2) element-wise.

greater_equal(self, x2[, out])

Return the truth value of (x1 >= x2) element-wise.

hypot(self, x2[, out])

Given the “legs” of a right triangle, return its hypotenuse.

invert(self[, out])

Compute bit-wise inversion, or bit-wise NOT, element-wise.

isfinite(self[, out])

Test element-wise for finiteness (not infinity or not Not a Number).

isinf(self[, out])

Test element-wise for positive or negative infinity.

isnan(self[, out])

Test element-wise for NaN and return result as a boolean array.

left_shift(self, x2[, out])

Shift the bits of an integer to the left.

less(self, x2[, out])

Return the truth value of (x1 < x2) element-wise.

less_equal(self, x2[, out])

Return the truth value of (x1 =< x2) element-wise.

log(self[, out])

Natural logarithm, element-wise.

log10(self[, out])

Return the base 10 logarithm of the input array, element-wise.

log1p(self[, out])

Return the natural logarithm of one plus the input array, element-wise.

log2(self[, out])

Base-2 logarithm of x.

logaddexp(self, x2[, out])

Logarithm of the sum of exponentiations of the inputs.

logaddexp2(self, x2[, out])

Logarithm of the sum of exponentiations of the inputs in base-2.

logical_and(self, x2[, out])

Compute the truth value of x1 AND x2 element-wise.

logical_not(self[, out])

Compute the truth value of NOT x element-wise.

logical_or(self, x2[, out])

Compute the truth value of x1 OR x2 element-wise.

logical_xor(self, x2[, out])

Compute the truth value of x1 XOR x2, element-wise.

max(self)

Return the maximum of self.

maximum(self, x2[, out])

Element-wise maximum of array elements.

min(self)

Return the minimum of self.

minimum(self, x2[, out])

Element-wise minimum of array elements.

mod(self, x2[, out])

Return element-wise remainder of division.

modf(self[, out1, out2])

Return the fractional and integral parts of an array, element-wise.

multiply(self, x2[, out])

Multiply arguments element-wise.

negative(self[, out])

Numerical negative, element-wise.

not_equal(self, x2[, out])

Return (x1 != x2) element-wise.

power(self, x2[, out])

First array elements raised to powers from second array, element-wise.

prod(self)

Return the product of self.

rad2deg(self[, out])

Convert angles from radians to degrees.

reciprocal(self[, out])

Return the reciprocal of the argument, element-wise.

remainder(self, x2[, out])

Return element-wise remainder of division.

right_shift(self, x2[, out])

Shift the bits of an integer to the right.

rint(self[, out])

Round elements of the array to the nearest integer.

sign(self[, out])

Returns an element-wise indication of the sign of a number.

signbit(self[, out])

Returns element-wise True where signbit is set (less than zero).

sin(self[, out])

Trigonometric sine, element-wise.

sinh(self[, out])

Hyperbolic sine, element-wise.

sqrt(self[, out])

Return the non-negative square-root of an array, element-wise.

square(self[, out])

Return the element-wise square of the input.

subtract(self, x2[, out])

Subtract arguments, element-wise.

sum(self)

Return the sum of self.

tan(self[, out])

Compute tangent element-wise.

tanh(self[, out])

Compute hyperbolic tangent element-wise.

true_divide(self, x2[, out])

Returns a true division of the inputs, element-wise.

trunc(self[, out])

Return the truncated value of the input, element-wise.

__init__(self, elem)[source]

Create ufunc wrapper for elem.