Function

NumCosmoMathSpectralcompute_s_row

Declaration [src]

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

Description [src]

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

  • column $k - 1$, for $k \ge 1$: $1/(4(k + 1))$, plus $1/8$ when $k = 1$;
  • column $k + 1$: $-1/(4(k + 3))$, plus $1/4$ when $k = 0$;
  • column $k + 3$: $-1/(4(k + 1))$;
  • column $k + 5$: $1/(4(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.