Method

NumCosmoMathISetget_vector_inv_cmp

Declaration [src]

NcmVector*
ncm_iset_get_vector_inv_cmp (
  NcmISet* iset,
  NcmVector* u,
  NcmVector* v,
  NcmVector* v_dup
)

Description [src]

Computes the inverse of the relative difference between vectors u and v, namely: $$\left(\frac{u_i - v_i}{u_i}\right)^{-1},$$ for indexes $i \in $ iset.

Parameters

u

Type: NcmVector

A NcmVector.

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

Type: NcmVector

A NcmVector.

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

Type: NcmVector

A NcmVector.

The data is owned by the caller of the method.

Return value

Type: NcmVector

The subset.

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