Skip to main content
Version: 1.0

polynomial_evaluate

polynomial_evaluate[dtype: DType, width: Int, //, coefficients: Span[Scalar[dtype], coefficients.origin]](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 (Span): 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.