MCPcopy Create free account
hub / github.com/numpy/numpy / expm1

Function expm1

numpy/array_api/_elementwise_functions.py:314–322  ·  view source on GitHub ↗

Array API compatible wrapper for :py:func:`np.expm1 `. See its docstring for more information.

(x: Array, /)

Source from the content-addressed store, hash-verified

312
313
314def expm1(x: Array, /) -> Array:
315 """
316 Array API compatible wrapper for :py:func:`np.expm1 <numpy.expm1>`.
317
318 See its docstring for more information.
319 """
320 if x.dtype not in _floating_dtypes:
321 raise TypeError("Only floating-point dtypes are allowed in expm1")
322 return Array._new(np.expm1(x._array))
323
324
325def floor(x: Array, /) -> Array:

Callers 3

random_paretoFunction · 0.85
random_powerFunction · 0.85
random_logseriesFunction · 0.85

Calls 1

_newMethod · 0.80

Tested by

no test coverage detected