Method

NumCosmoMathMatrixcmp_diag

Declaration [src]

gdouble
ncm_matrix_cmp_diag (
  const NcmMatrix* cm1,
  const NcmMatrix* cm2,
  const gdouble scale
)

Description [src]

This function is similar to ncm_matrix_cmp(), but now only the diagonal elements are compared.

Parameters

cm2

Type: NcmMatrix

A NcmMatrix.

The data is owned by the caller of the method.
scale

Type: const gdouble

A constant gdouble.

Return value

Type: gdouble

The maximum value of the operation $\left| \right. ($cm1 $-$ cm2 $)/($scale $+$ cm2$)\left. \right|$ comparing only the diagonal elements.