Mojo function
cos
cos[type: DType, simd_width: Int, //](x: SIMD[type, simd_width]) -> SIMD[$0, $1]
Computes the cos
of the inputs.
Constraints:
The input must be a floating-point type.
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 input argument.
Returns:
The cos
of the input.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
π What went wrong?