Function

NumCosmoMathSpectralcompute_s2_row

Declaration [src]

void
ncm_spectral_compute_s2_row (
  gdouble* row_data,
  glong k,
  glong offset,
  gdouble coeff
)

Description [src]

Adds coeff times row $k$ of ncm_spectral_get_s2_matrix() to row_data. Its nonzero entries are

  • column $k - 2$, for $k \ge 2$: $1/(8(k + 1))$, plus $1/24$ when $k = 2$;
  • column $k$: $1/(4(k + 1)(k + 3))$, plus $1/12$ when $k = 0$ and $1/16$ when $k = 1$;
  • column $k + 2$: $-(k + 2)/(4(k + 1)(k + 3))$, plus $1/8$ when $k = 0$;
  • column $k + 4$: $-1/(4(k + 1)(k + 3))$;
  • column $k + 6$: $1/(8(k + 3))$.

Parameters

row_data

Type: gdouble*

The row.

The data is owned by the caller of the function.
k

Type: glong

Row index.

offset

Type: glong

Position of column k in row_data.

coeff

Type: gdouble

Factor of the row.