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 eval or __getitem__) to get the actual values of the computation.

abs

Calculate the absolute value element-wise.

arcsin

Inverse sine, element-wise.

arccos

Trigonometric inverse cosine, element-wise.

arctan

Trigonometric inverse tangent, element-wise.

arctan2

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

arcsinh

Inverse hyperbolic sine, element-wise.

arccosh

Inverse hyperbolic cosine, element-wise.

arctanh

Inverse hyperbolic tangent, element-wise.

sin

Trigonometric sine, element-wise.

cos

Trigonometric cosine, element-wise.

tan

Trigonometric tangent, element-wise.

sinh

Hyperbolic sine, element-wise.

cosh

Hyperbolic cosine, element-wise.

tanh

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

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 string value.