numba_dpex.ocl.mathdecl module

class numba_dpex.ocl.mathdecl.MathModuleAttribute(context)

Bases: numba.core.typing.templates.AttributeTemplate

key = Module(<module 'math' from '/usr/share/miniconda/lib/python3.9/lib-dynload/math.cpython-39-x86_64-linux-gnu.so'>)
resolve_acos(mod)
resolve_acosh(mod)
resolve_asin(mod)
resolve_asinh(mod)
resolve_atan(mod)
resolve_atan2(mod)
resolve_atanh(mod)
resolve_ceil(mod)
resolve_copysign(mod)
resolve_cos(mod)
resolve_cosh(mod)
resolve_degrees(mod)
resolve_e(mod)
resolve_erf(mod)
resolve_erfc(mod)
resolve_exp(mod)
resolve_expm1(mod)
resolve_fabs(mod)
resolve_floor(mod)
resolve_fmod(mod)
resolve_gamma(mod)
resolve_isinf(mod)
resolve_isnan(mod)
resolve_lgamma(mod)
resolve_log(mod)
resolve_log10(mod)
resolve_log1p(mod)
resolve_pi(mod)
resolve_pow(mod)
resolve_radians(mod)
resolve_sin(mod)
resolve_sinh(mod)
resolve_sqrt(mod)
resolve_tan(mod)
resolve_tanh(mod)
resolve_trunc(mod)
class numba_dpex.ocl.mathdecl.Math_acos(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return the arc cosine (measured in radians) of x.

The result is between 0 and pi.

class numba_dpex.ocl.mathdecl.Math_acosh(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return the inverse hyperbolic cosine of x.

class numba_dpex.ocl.mathdecl.Math_asin(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return the arc sine (measured in radians) of x.

The result is between -pi/2 and pi/2.

class numba_dpex.ocl.mathdecl.Math_asinh(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return the inverse hyperbolic sine of x.

class numba_dpex.ocl.mathdecl.Math_atan(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return the arc tangent (measured in radians) of x.

The result is between -pi/2 and pi/2.

class numba_dpex.ocl.mathdecl.Math_atan2(context)

Bases: numba.core.typing.templates.ConcreteTemplate

cases = [(int64, int64) -> float64, (uint64, uint64) -> float64, (float32, float32) -> float32, (float64, float64) -> float64]
key(x, /)

Return the arc tangent (measured in radians) of y/x.

Unlike atan(y/x), the signs of both x and y are considered.

class numba_dpex.ocl.mathdecl.Math_atanh(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return the inverse hyperbolic tangent of x.

class numba_dpex.ocl.mathdecl.Math_binary(context)

Bases: numba.core.typing.templates.ConcreteTemplate

cases = [(float32, float32) -> float32, (float64, float64) -> float64]
class numba_dpex.ocl.mathdecl.Math_ceil(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return the ceiling of x as an Integral.

This is the smallest integer >= x.

class numba_dpex.ocl.mathdecl.Math_copysign(context)

Bases: numba_dpex.ocl.mathdecl.Math_binary

key(y, /)

Return a float with the magnitude (absolute value) of x but the sign of y.

On platforms that support signed zeros, copysign(1.0, -0.0) returns -1.0.

class numba_dpex.ocl.mathdecl.Math_cos(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return the cosine of x (measured in radians).

class numba_dpex.ocl.mathdecl.Math_cosh(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return the hyperbolic cosine of x.

class numba_dpex.ocl.mathdecl.Math_degrees(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Convert angle x from radians to degrees.

class numba_dpex.ocl.mathdecl.Math_erf(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Error function at x.

class numba_dpex.ocl.mathdecl.Math_erfc(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Complementary error function at x.

class numba_dpex.ocl.mathdecl.Math_exp(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return e raised to the power of x.

class numba_dpex.ocl.mathdecl.Math_expm1(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return exp(x)-1.

This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.

class numba_dpex.ocl.mathdecl.Math_fabs(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return the absolute value of the float x.

class numba_dpex.ocl.mathdecl.Math_floor(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return the floor of x as an Integral.

This is the largest integer <= x.

class numba_dpex.ocl.mathdecl.Math_fmod(context)

Bases: numba_dpex.ocl.mathdecl.Math_binary

key(y, /)

Return fmod(x, y), according to platform C.

x % y may differ.

class numba_dpex.ocl.mathdecl.Math_gamma(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Gamma function at x.

class numba_dpex.ocl.mathdecl.Math_isinf(context)

Bases: numba.core.typing.templates.ConcreteTemplate

cases = [(int64,) -> bool, (uint64,) -> bool, (float32,) -> bool, (float64,) -> bool]
key()

Return True if x is a positive or negative infinity, and False otherwise.

class numba_dpex.ocl.mathdecl.Math_isnan(context)

Bases: numba.core.typing.templates.ConcreteTemplate

cases = [(int64,) -> bool, (uint64,) -> bool, (float32,) -> bool, (float64,) -> bool]
key()

Return True if x is a NaN (not a number), and False otherwise.

class numba_dpex.ocl.mathdecl.Math_lgamma(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Natural logarithm of absolute value of Gamma function at x.

class numba_dpex.ocl.mathdecl.Math_log(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

log(x, [base=math.e]) Return the logarithm of x to the given base.

If the base not specified, returns the natural logarithm (base e) of x.

class numba_dpex.ocl.mathdecl.Math_log10(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return the base 10 logarithm of x.

class numba_dpex.ocl.mathdecl.Math_log1p(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return the natural logarithm of 1+x (base e).

The result is computed in a way which is accurate for x near zero.

class numba_dpex.ocl.mathdecl.Math_pow(context)

Bases: numba.core.typing.templates.ConcreteTemplate

cases = [(float32, float32) -> float32, (float64, float64) -> float64, (float32, int32) -> float32, (float64, int32) -> float64]
key(y, /)

Return x**y (x to the power of y).

class numba_dpex.ocl.mathdecl.Math_radians(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Convert angle x from degrees to radians.

class numba_dpex.ocl.mathdecl.Math_sin(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return the sine of x (measured in radians).

class numba_dpex.ocl.mathdecl.Math_sinh(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return the hyperbolic sine of x.

class numba_dpex.ocl.mathdecl.Math_sqrt(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return the square root of x.

class numba_dpex.ocl.mathdecl.Math_tan(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return the tangent of x (measured in radians).

class numba_dpex.ocl.mathdecl.Math_tanh(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Return the hyperbolic tangent of x.

class numba_dpex.ocl.mathdecl.Math_trunc(context)

Bases: numba_dpex.ocl.mathdecl.Math_unary

key()

Truncates the Real x to the nearest Integral toward 0.

Uses the __trunc__ magic method.

class numba_dpex.ocl.mathdecl.Math_unary(context)

Bases: numba.core.typing.templates.ConcreteTemplate

cases = [(int64,) -> float64, (uint64,) -> float64, (float32,) -> float32, (float64,) -> float64]