TensorSpaceUfuncs

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

Bases: object

Ufuncs for Tensor objects.

Internal object, should not be created except in Tensor.

Methods

absolute([out])

Calculate the absolute value element-wise.

add(x2[, out])

Add arguments element-wise.

arccos([out])

Trigonometric inverse cosine, element-wise.

arccosh([out])

Inverse hyperbolic cosine, element-wise.

arcsin([out])

Inverse sine, element-wise.

arcsinh([out])

Inverse hyperbolic sine element-wise.

arctan([out])

Trigonometric inverse tangent, element-wise.

arctan2(x2[, out])

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

arctanh([out])

Inverse hyperbolic tangent element-wise.

bitwise_and(x2[, out])

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

bitwise_or(x2[, out])

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

bitwise_xor(x2[, out])

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

ceil([out])

Return the ceiling of the input, element-wise.

conj([out])

Return the complex conjugate, element-wise.

copysign(x2[, out])

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

cos([out])

Cosine element-wise.

cosh([out])

Hyperbolic cosine, element-wise.

deg2rad([out])

Convert angles from degrees to radians.

divide(x2[, out])

Divide arguments element-wise.

equal(x2[, out])

Return (x1 == x2) element-wise.

exp([out])

Calculate the exponential of all elements in the input array.

exp2([out])

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

expm1([out])

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

floor([out])

Return the floor of the input, element-wise.

floor_divide(x2[, out])

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

fmax(x2[, out])

Element-wise maximum of array elements.

fmin(x2[, out])

Element-wise minimum of array elements.

fmod(x2[, out])

Returns the element-wise remainder of division.

greater(x2[, out])

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

greater_equal(x2[, out])

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

hypot(x2[, out])

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

invert([out])

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

isfinite([out])

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

isinf([out])

Test element-wise for positive or negative infinity.

isnan([out])

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

left_shift(x2[, out])

Shift the bits of an integer to the left.

less(x2[, out])

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

less_equal(x2[, out])

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

log([out])

Natural logarithm, element-wise.

log10([out])

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

log1p([out])

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

log2([out])

Base-2 logarithm of x.

logaddexp(x2[, out])

Logarithm of the sum of exponentiations of the inputs.

logaddexp2(x2[, out])

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

logical_and(x2[, out])

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

logical_not([out])

Compute the truth value of NOT x element-wise.

logical_or(x2[, out])

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

logical_xor(x2[, out])

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

max([axis, dtype, out, keepdims])

Return the maximum of self.

maximum(x2[, out])

Element-wise maximum of array elements.

min([axis, dtype, out, keepdims])

Return the minimum of self.

minimum(x2[, out])

Element-wise minimum of array elements.

mod(x2[, out])

Returns the element-wise remainder of division.

modf([out])

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

multiply(x2[, out])

Multiply arguments element-wise.

negative([out])

Numerical negative, element-wise.

not_equal(x2[, out])

Return (x1 != x2) element-wise.

power(x2[, out])

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

prod([axis, dtype, out, keepdims])

Return the product of self.

rad2deg([out])

Convert angles from radians to degrees.

reciprocal([out])

Return the reciprocal of the argument, element-wise.

remainder(x2[, out])

Returns the element-wise remainder of division.

right_shift(x2[, out])

Shift the bits of an integer to the right.

rint([out])

Round elements of the array to the nearest integer.

sign([out])

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

signbit([out])

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

sin([out])

Trigonometric sine, element-wise.

sinh([out])

Hyperbolic sine, element-wise.

sqrt([out])

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

square([out])

Return the element-wise square of the input.

subtract(x2[, out])

Subtract arguments, element-wise.

sum([axis, dtype, out, keepdims])

Return the sum of self.

tan([out])

Compute tangent element-wise.

tanh([out])

Compute hyperbolic tangent element-wise.

true_divide(x2[, out])

Divide arguments element-wise.

trunc([out])

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

__init__(elem)[source]

Create ufunc wrapper for elem.