Function

NumCosmoMathVectorsubstitute

Declaration [src]

void
ncm_vector_substitute (
  NcmVector** cv1,
  NcmVector* cv2,
  gboolean check_size
)

Description [src]

This function substitute the vector cv1 by cv2, it will unref cv1 first. If check_size is TRUE then the function asserts that both vectors have the same size.

Parameters

cv1

Type: NcmVector

A NcmVector.

The data is owned by the caller of the function.
cv2

Type: NcmVector

A NcmVector.

The data is owned by the caller of the function.
check_size

Type: gboolean

Whether to check vector size.