sqrt¶
- sqrt(x: int | float | complex | Tensor | ndarray | number) float | complex | Tensor | ndarray | number[source]¶
- sqrt(x: int | float) float
- sqrt(x: int | float) float
- sqrt(x: complex) complex
- sqrt(x: Tensor) Tensor
- sqrt(x: ndarray) ndarray
- sqrt(x: number) number
Type agnostic square root function.
\[y = \sqrt{x}\]- Parameters:
x (int | float | complex | torch.Tensor | numpy.ndarray | numpy.number) – value of which to take the square root.
- Returns:
square root of the input.
- Return type:
float | complex | torch.Tensor | numpy.ndarray | numpy.number