Method

NumCosmoMathSBesselOdeOperatorget_matrix

Declaration [src]

NcmMatrix*
ncm_sbessel_ode_operator_get_matrix (
  NcmSBesselOdeOperator* op,
  gint nrows
)

Description [src]

Dense $n \times n$ row-major representation of op, closed the way op is closed: rows 0 and 1 carry the two constraint functionals of its NcmSBesselOdeConstraint —- the dense $(-1)^j$ and $1$ patterns of Dirichlet data, the two single entries of the pinned constraint, or nothing at all under NCM_SBESSEL_ODE_CONSTRAINT_TAU —- and rows 2 to nrows-1 are the discretized operator. For validation and for comparison with dense solvers; the solve itself never forms this matrix.

Parameters

nrows

Type: gint

Number of rows to extract, constraint rows included.

Return value

Type: NcmMatrix

The dense matrix.

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