Mojo function
polynomial_evaluate
polynomial_evaluate[dtype: DType, width: Int, //, coefficients: List[Scalar[dtype]]](x: SIMD[dtype, width]) -> SIMD[dtype, width]
Evaluates the polynomial.
Parameters:
- βdtype (DType): The dtype of the value.
- βwidth (Int): The width of the computed value.
- βcoefficients (List): The coefficients.
Args:
- βx (SIMD): The value to compute the polynomial with.
Returns:
SIMD: 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!
