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:
gcharChar indicating ‘N’ or ‘T’.
alpha-
Type:
const gdoubleA double $\alpha$.
v-
Type:
NcmVectorA
NcmVectorto update.The data is owned by the caller of the method. beta-
Type:
const gdoubleA double $\beta$.
u-
Type:
NcmVectorA
NcmVectorto store the result.The data is owned by the caller of the method.