interpax_fft.epigraph_and

interpax_fft.epigraph_and(points, df_dy, /)Source

Set intersection of epigraph of function f with the given set of points.

Useful to get subset of points where the straight line path between adjacent points resides in the epigraph of a continuous map f.

Parameters:
  • points (jnp.ndarray) – Boolean array indicating which indices correspond to points in the set.

  • df_dy (jnp.ndarray) – Shape points.shape. Sign of ∂f/∂y (yᵢ) for f(yᵢ) = 0.

Returns:

points (jnp.ndarray) – Boolean array indicating whether element is in epigraph of given function and satisfies the stated condition.