Mojo function
sqrt
sqrt(x: Int) -> Int
Performs square root on an integer.
Args:
- βx (
Int): The integer value to perform square root on.
Returns:
Int: The square root of x.
sqrt[dtype: DType, width: Int, //](x: SIMD[dtype, width]) -> SIMD[dtype, width]
Performs elementwise square root on the elements of a SIMD vector.
Parameters:
- βdtype (
DType): Thedtypeof the input and output SIMD vector. - βwidth (
Int): The width of the input and output SIMD vector.
Args:
- βx (
SIMD): SIMD vector to perform square root on.
Returns:
SIMD: The elementwise square root of x.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!