File size: 1,026 Bytes
c835f15 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
from cupy._math import ufunc
sinh = ufunc.create_math_ufunc(
'sinh', 1, 'cupy_sinh',
'''Elementwise hyperbolic sine function.
.. seealso:: :data:`numpy.sinh`
''')
cosh = ufunc.create_math_ufunc(
'cosh', 1, 'cupy_cosh',
'''Elementwise hyperbolic cosine function.
.. seealso:: :data:`numpy.cosh`
''')
tanh = ufunc.create_math_ufunc(
'tanh', 1, 'cupy_tanh',
'''Elementwise hyperbolic tangent function.
.. seealso:: :data:`numpy.tanh`
''')
arcsinh = ufunc.create_math_ufunc(
'asinh', 1, 'cupy_arcsinh',
'''Elementwise inverse of hyperbolic sine function.
.. seealso:: :data:`numpy.arcsinh`
''')
arccosh = ufunc.create_math_ufunc(
'acosh', 1, 'cupy_arccosh',
'''Elementwise inverse of hyperbolic cosine function.
.. seealso:: :data:`numpy.arccosh`
''')
arctanh = ufunc.create_math_ufunc(
'atanh', 1, 'cupy_arctanh',
'''Elementwise inverse of hyperbolic tangent function.
.. seealso:: :data:`numpy.arctanh`
''')
|