orthax.orthcompanion

orthax.orthcompanion(c, rec)Source

Return the companion matrix of c.

Parameters:
  • c (array_like) – 1-D array of orthogonal series coefficients ordered from low to high degree.

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

Returns:

mat (jax.Array) – Companion matrix of dimensions (deg, deg).