Mojo function
polynomial_evaluate
polynomial_evaluate[dtype: DType, simd_width: Int, //, coefficients: List[SIMD[$0, $1], 0]](x: SIMD[dtype, simd_width]) -> SIMD[$0, $1]
Evaluates the polynomial.
Parameters:
- βdtype (
DType
): The dtype of the value. - βsimd_width (
Int
): The simd_width of the computed value. - βcoefficients (
List[SIMD[$0, $1], 0]
): The coefficients.
Args:
- βx (
SIMD[dtype, simd_width]
): The value to compute the polynomial with.
Returns:
The polynomial evaluation results using the specified value and the constant coefficients.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
π What went wrong?