autopdex.solution_structures.precompute_projection

autopdex.solution_structures.precompute_projection(psdf_fun, alpha_fun, x_int, num_diff=1)[source]

Precomputes the projection operator and its derivatives up to a specified order at given integration points.

Parameters:
  • psdf_fun (callable) – Projection function.

  • alpha_fun (callable) – Coefficient function.

  • x_int (jnp.ndarray) – Integration points.

  • num_diff (int, optional) – Number of derivatives to compute (0, 1, or 2). Default is 1.

Returns:

Precomputed projection values and derivatives.
  • If num_diff == 0: (fun_i,)

  • If num_diff == 1: (fun_i, dfun_i)

  • If num_diff == 2: (fun_i, dfun_i, ddfun_i)

Return type:

tuple