Method

NumCosmoMathSBesselOdeSolverget_operator_matrix

Declaration [src]

NcmMatrix*
ncm_sbessel_ode_solver_get_operator_matrix (
  NcmSBesselOdeSolver* solver,
  const gdouble a,
  const gdouble b,
  guint ell,
  gint nrows
)

Description [src]

Builds and returns a dense matrix representation of the differential operator truncated to nrows rows in row-major format. This is useful for validation, testing against truth tables, and comparison with standard dense solvers.

The matrix includes: - Row 0: boundary condition u(-1) = 0 - Row 1: boundary condition u(+1) = 0 - Rows 2 to nrows-1: differential operator rows

The matrix is square (nrows x nrows) for compatibility with standard solvers.

Parameters

a

Type: const gdouble

Left endpoint.

b

Type: const gdouble

Right endpoint.

ell

Type: guint

$\ell$ multipole order.

nrows

Type: gint

Number of rows to extract (including 2 boundary condition rows).

Return value

Type: NcmMatrix

Dense matrix representation of the operator (row-major).

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