Method

NumCosmoHIPertTwoFluidsStateInterpeval

Declaration [src]

NcHIPertITwoFluidsState*
nc_hipert_two_fluids_state_interp_eval (
  NcHIPertTwoFluidsStateInterp* sinterp,
  NcHICosmo* cosmo,
  gdouble x
)

Description [src]

Interpolates the perturbation state at the point x using the splines stored in sinterp. The result contains the complex values of the variables $\zeta$, $Q$, $P_\zeta$, and $P_Q$ for both quantized modes.

The interpolated values are stored internally in sinterp->state and are valid until the next call to this function.

Parameters

cosmo

Type: NcHICosmo

A NcHICosmo.

The data is owned by the caller of the method.
x

Type: gdouble

The interpolation point (e.g., time or wavenumber).

Return value

Type: NcHIPertITwoFluidsState

A pointer to the internally stored interpolated NcHIPertITwoFluidsState. The caller must not free the returned pointer.

The returned data is owned by the instance.