Method

NumCosmoMathVectorreplace_data_full

Declaration [src]

void
ncm_vector_replace_data_full (
  NcmVector* cv,
  gdouble* data,
  guint size,
  guint stride
)

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.
size

Type: guint

The size of the new data.

stride

Type: guint

The step-size from one element to the next in physical memory, measured in units of double.