Method

NumCosmoMathIntegralFixedinteg_vec_mult

Declaration [src]

gdouble
ncm_integral_fixed_integ_vec_mult (
  NcmIntegralFixed* intf,
  const NcmVector* f_at_nodes
)

Description [src]

Computes the integral $\int F(x) G(x) \mathrm{d}x$ as the dot product of the stored quadrature-weighted nodes (which already contain $w_k F(x_k)$) with f_at_nodes (the externally evaluated $G(x_k)$), scaled by delta_x / 2.

Parameters

f_at_nodes

Type: NcmVector

A NcmVector of length (n_nodes - 1) * rule_n holding the integrand values evaluated at the abscissae returned by #ncm_integral_fixed_get_nodes.

The data is owned by the caller of the method.

Return value

Type: gdouble

The value of the integral.