Method

NumCosmoMathMatrixfast_set

Declaration [src]

void
ncm_matrix_fast_set (
  NcmMatrix* cm,
  const guint ij,
  const gdouble val
)

Description [src]

This function sets the value of the cm[i,j] element to val by direct access of its base data. Where ij = i $\times$ tda $+$ j.

If the matrix was created with ncm_matrix_new() or ncm_matrix_new0() then tda = ncols.

Parameters

ij

Type: const guint

Element index of the NcmMatrix base data.

val

Type: const gdouble

A double.