function
exp
exp[type: DType, simd_width: Int](x: SIMD[type, simd_width]) -> SIMD[$0, $1]
Calculates elementwise exponential of the input vector.
Given an input vector and an output vector , sets for each position in the input vector (where is the mathmatical constant ).
Parameters:
- type (
DType
): Thedtype
of the input and output SIMD vector. Constraints: must be a floating-point type. - simd_width (
Int
): The width of the input and output SIMD vector.
Args:
- x (
SIMD[type, simd_width]
): The input SIMD vector.
Returns:
A SIMD vector containing raised to the power where is an element in the input SIMD vector.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
If you'd like to share more information, please report an issue on GitHub
😔 What went wrong?