orthax.orthval

orthax.orthval(x, c, rec, tensor=True)Source

Evaluate an orthogonal series.

Parameters:
  • x (jax.Array) – Evaluation points.

  • c (jax.Array) – Coefficients of series, in ascending order

  • rec (AbstractRecurrenceRelation) – Recurrence relation for the family of orthogonal polynomials

  • tensor (boolean, optional) – If True, the shape of the coefficient array is extended with ones on the right, one for each dimension of x. Scalars have dimension 0 for this action. The result is that every column of coefficients in c is evaluated for every element of x. If False, x is broadcast over the columns of c for the evaluation. This keyword is useful when c is multidimensional. The default value is True.

Returns:

y (jax.Array) – Series evaluated at x