Lazy Functions#

The next functions can be used for computing with any of NDArray, C2Array, NDField and LazyExpr.

Their result is always a LazyExpr instance, which can be evaluated (with compute or __getitem__) to get the actual values of the computation.

abs

Calculate the absolute value element-wise.

arcsin

Compute the inverse sine, element-wise.

arccos

Compute the inverse cosine, element-wise.

arctan

Compute the inverse tangent, element-wise.

arctan2

Compute the element-wise arc tangent of ndarr1 / ndarr2 choosing the quadrant correctly.

arcsinh

Compute the inverse hyperbolic sine, element-wise.

arccosh

Compute the inverse hyperbolic cosine, element-wise.

arctanh

Compute the inverse hyperbolic tangent, element-wise.

sin

Compute the trigonometric sine, element-wise.

cos

Trigonometric cosine, element-wise.

tan

Compute the trigonometric tangent, element-wise.

sinh

Hyperbolic sine, element-wise.

cosh

Compute the hyperbolic cosine, element-wise.

tanh

Compute the hyperbolic tangent, element-wise.

exp

Calculate the exponential of all elements in the input array.

expm1

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

log

Compute the natural logarithm, element-wise.

log10

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

log1p

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

sqrt

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

conj

Return the complex conjugate, element-wise.

real

Return the real part of the complex array, element-wise.

imag

Return the imaginary part of the complex array, element-wise.

contains

Check if the array contains a specified value.