Method

NumCosmoMathVectorreplace_data

Declaration [src]

void
ncm_vector_replace_data (
  NcmVector* cv,
  gdouble* data
)

Description [src]

This function replaces the data of the vector cv by data. It does not make any check on the size of the new data. It assumes that the new data has the same size of the vector cv and that the original data was statically allocated.

It is useful when one needs to convert a data pointer to a NcmVector.

This method is not directly available to language bindings.

Parameters

data

Type: gdouble*

A pointer to the new data.

The data is owned by the caller of the method.