Mojo function
tanh
tanh[dtype: DType, width: Int, //](x: SIMD[dtype, width]) -> SIMD[dtype, width]
Performs elementwise evaluation of the tanh function.
Parameters:
- โdtype (
DType): Thedtypeof the input and output SIMD vector. - โwidth (
Int): The width of the input and output SIMD vector.
Args:
- โx (
SIMD): The vector to perform the elementwise tanh on.
Returns:
SIMD: 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!