exp

exp(x: int | float | complex | Tensor | ndarray | number) float | complex | Tensor | ndarray | number[source]
exp(x: int | float) float
exp(x: int | float) float
exp(x: complex) complex
exp(x: Tensor) Tensor
exp(x: ndarray) ndarray
exp(x: number) number

Type agnostic exponential function.

\[y = e^x\]
Parameters:

x (int | float | complex | torch.Tensor | numpy.ndarray | numpy.number) – value by which to raise \(e\).

Returns:

\(e\) raised to the input.

Return type:

float | complex | torch.Tensor | numpy.ndarray | numpy.number