Method

NumCosmoMathMatrixupdate_vector

Declaration [src]

void
ncm_matrix_update_vector (
  NcmMatrix* cm,
  gchar NT,
  const gdouble alpha,
  NcmVector* v,
  const gdouble beta,
  NcmVector* u
)

Description [src]

Computes the matrix - vector product $u = \alpha M v + \beta u$ if NT == ‘N’ or $u = \alpha M^\intercal v + u$ if NT == ‘T’ and stores the result in u.

Parameters

NT

Type: gchar

Char indicating ‘N’ or ‘T’.

alpha

Type: const gdouble

A double $\alpha$.

v

Type: NcmVector

A NcmVector to update.

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

Type: const gdouble

A double $\beta$.

u

Type: NcmVector

A NcmVector to store the result.

The data is owned by the caller of the method.