Function

NumCosmoMathSpectralget_d2_matrix

Declaration [src]

NcmMatrix*
ncm_spectral_get_d2_matrix (
  guint N
)

Description [src]

Returns the second derivative operator matrix that transforms Chebyshev $T_n$ coefficients of $f(x)$ to Gegenbauer $C^{(2)}_k$ coefficients of $\frac{d^2f}{dx^2}$.

Parameters

N

Type: guint

Size of the matrix.

Return value

Type: NcmMatrix

The second derivative operator matrix.

The caller of the function takes ownership of the data, and is responsible for freeing it.