Method

NumCosmoMathMatrixis_identity

Declaration [src]

gboolean
ncm_matrix_is_identity (
  const NcmMatrix* cm,
  const gdouble tol
)

Description [src]

Aborts if cm is not square.

Parameters

tol

Type: const gdouble

Absolute tolerance.

Return value

Type: gboolean

Whether $\max_{ij} |M_{ij} - \delta_{ij}| <$ tol.