Mojo function
tanh
tanh[type: DType, simd_width: Int, //](x: SIMD[type, simd_width]) -> SIMD[type, simd_width]
Performs elementwise evaluation of the tanh function.
Parameters:
- type (
DType
): Thedtype
of the input and output SIMD vector. - simd_width (
Int
): The width of the input and output SIMD vector.
Args:
- x (
SIMD[type, simd_width]
): The vector to perform the elementwise tanh on.
Returns:
The result of the elementwise tanh operation.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!