Method

NumCosmoMathMatrixcmp

Declaration [src]

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

Description [src]

This function performes a comparison, component-wise, of the two matrices, given by $\left| \right. ($cm1 $-$ cm2 $)/($scale $+$ cm2$)\left. \right|$ and returns its maximum value.

Parameters

cm2

Type: NcmMatrix

A constant 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|$.