Mathematical Functions¶
Trigonometric functions¶
-
cupy.
arcsin
= <ufunc 'cupy_arcsin'>¶ Elementwise inverse-sine function (a.k.a. arcsine function).
See also
-
cupy.
arccos
= <ufunc 'cupy_arccos'>¶ Elementwise inverse-cosine function (a.k.a. arccosine function).
See also
-
cupy.
arctan
= <ufunc 'cupy_arctan'>¶ Elementwise inverse-tangent function (a.k.a. arctangent function).
See also
-
cupy.
hypot
= <ufunc 'cupy_hypot'>¶ Computes the hypoteneous of orthogonal vectors of given length.
This is equivalent to
sqrt(x1 **2 + x2 ** 2)
, while this function is more efficient.See also
-
cupy.
arctan2
= <ufunc 'cupy_arctan2'>¶ Elementwise inverse-tangent of the ratio of two arrays.
See also
-
cupy.
deg2rad
= <ufunc 'cupy_deg2rad'>¶ Converts angles from degrees to radians elementwise.
See also
-
cupy.
rad2deg
= <ufunc 'cupy_rad2deg'>¶ Converts angles from radians to degrees elementwise.
See also
-
cupy.
degrees
= <ufunc 'cupy_rad2deg'>¶ Converts angles from radians to degrees elementwise.
See also
-
cupy.
radians
= <ufunc 'cupy_deg2rad'>¶ Converts angles from degrees to radians elementwise.
See also
Hyperbolic functions¶
-
cupy.
sinh
= <ufunc 'cupy_sinh'>¶ Elementwise hyperbolic sine function.
See also
-
cupy.
cosh
= <ufunc 'cupy_cosh'>¶ Elementwise hyperbolic cosine function.
See also
-
cupy.
tanh
= <ufunc 'cupy_tanh'>¶ Elementwise hyperbolic tangent function.
See also
-
cupy.
arcsinh
= <ufunc 'cupy_arcsinh'>¶ Elementwise inverse of hyperbolic sine function.
See also
-
cupy.
arccosh
= <ufunc 'cupy_arccosh'>¶ Elementwise inverse of hyperbolic cosine function.
See also
-
cupy.
arctanh
= <ufunc 'cupy_arctanh'>¶ Elementwise inverse of hyperbolic tangent function.
See also
Rounding¶
-
cupy.
rint
= <ufunc 'cupy_rint'>¶ Rounds each element of an array to the nearest integer.
See also
-
cupy.
floor
= <ufunc 'cupy_floor'>¶ Rounds each element of an array to its floor integer.
See also
-
cupy.
ceil
= <ufunc 'cupy_ceil'>¶ Rounds each element of an array to its ceiling integer.
See also
-
cupy.
trunc
= <ufunc 'cupy_trunc'>¶ Rounds each element of an array towards zero.
See also
Exponential and logarithm functions¶
-
cupy.
expm1
= <ufunc 'cupy_expm1'>¶ Computes
exp(x) - 1
elementwise.See also
-
cupy.
exp2
= <ufunc 'cupy_exp2'>¶ Elementwise exponentiation with base 2.
See also
-
cupy.
log10
= <ufunc 'cupy_log10'>¶ Elementwise common logarithm function.
See also
-
cupy.
log2
= <ufunc 'cupy_log2'>¶ Elementwise binary logarithm function.
See also
-
cupy.
log1p
= <ufunc 'cupy_log1p'>¶ Computes
log(1 + x)
elementwise.See also
-
cupy.
logaddexp
= <ufunc 'cupy_logaddexp'>¶ Computes
log(exp(x1) + exp(x2))
elementwise.See also
-
cupy.
logaddexp2
= <ufunc 'cupy_logaddexp2'>¶ Computes
log2(exp2(x1) + exp2(x2))
elementwise.See also
Floating point manipulations¶
-
cupy.
signbit
= <ufunc 'cupy_signbit'>¶ Tests elementwise if the sign bit is set (i.e. less than zero).
See also
-
cupy.
copysign
= <ufunc 'cupy_copysign'>¶ Returns the first argument with the sign bit of the second elementwise.
See also
-
cupy.
ldexp
= <ufunc 'cupy_ldexp'>¶ Computes
x1 * 2 ** x2
elementwise.See also
-
cupy.
frexp
= <ufunc 'cupy_frexp'>¶ Decomposes each element to mantissa and two’s exponent.
This ufunc outputs two arrays of the input dtype and the
int
dtype.See also
-
cupy.
nextafter
= <ufunc 'cupy_nextafter'>¶ Computes the nearest neighbor float values towards the second argument.
See also
numpy.nextafter
Arithmetic operations¶
-
cupy.
negative
= <ufunc 'cupy_negative'>¶ Takes numerical negative elementwise.
See also
-
cupy.
subtract
= <ufunc 'cupy_subtract'>¶ Subtracts arguments elementwise.
See also
-
cupy.
multiply
= <ufunc 'cupy_multiply'>¶ Multiplies two arrays elementwise.
See also
-
cupy.
divide
= <ufunc 'cupy_divide'>¶ Divides arguments elementwise.
See also
-
cupy.
true_divide
= <ufunc 'cupy_true_divide'>¶ Elementwise true division (i.e. division as floating values).
See also
-
cupy.
floor_divide
= <ufunc 'cupy_floor_divide'>¶ Elementwise floor division (i.e. integer quotient).
See also
-
cupy.
power
= <ufunc 'cupy_power'>¶ Computes
x1 ** x2
elementwise.See also
-
cupy.
fmod
= <ufunc 'cupy_fmod'>¶ Computes the remainder of C division elementwise.
See also
-
cupy.
mod
= <ufunc 'cupy_remainder'>¶ Computes the remainder of Python division elementwise.
See also
-
cupy.
remainder
= <ufunc 'cupy_remainder'>¶ Computes the remainder of Python division elementwise.
See also
-
cupy.
modf
= <ufunc 'cupy_modf'>¶ Extracts the fractional and integral parts of an array elementwise.
This ufunc returns two arrays.
See also
-
cupy.
reciprocal
= <ufunc 'cupy_reciprocal'>¶ Computes
1 / x
elementwise.See also
Miscellaneous¶
-
cupy.
sqrt
= <ufunc 'cupy_sqrt'>¶
-
cupy.
square
= <ufunc 'cupy_square'>¶ Elementwise square function.
See also
-
cupy.
absolute
= <ufunc 'cupy_absolute'>¶ Elementwise absolute value function.
See also
-
cupy.
sign
= <ufunc 'cupy_sign'>¶ Elementwise sign function.
It returns -1, 0, or 1 depending on the sign of the input.
See also
-
cupy.
maximum
= <ufunc 'cupy_maximum'>¶ Takes the maximum of two arrays elementwise.
If NaN appears, it returns the NaN.
See also
-
cupy.
minimum
= <ufunc 'cupy_minimum'>¶ Takes the minimum of two arrays elementwise.
If NaN appears, it returns the NaN.
See also
-
cupy.
fmax
= <ufunc 'cupy_fmax'>¶ Takes the maximum of two arrays elementwise.
If NaN appears, it returns the other operand.
See also
-
cupy.
fmin
= <ufunc 'cupy_fmin'>¶ Takes the minimum of two arrays elementwise.
If NaN appears, it returns the other operand.
See also