Method
NumCosmoMathMatrixsym_update_vector
Declaration [src]
void
ncm_matrix_sym_update_vector (
NcmMatrix* cm,
gchar UL,
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 = M^\intercal v$ if NT == ‘T’
and stores the result in u. This function assumes
that $M$ is symmetric and it´s stored in the Upper/Lower
triangle if UL == ‘U’/’L’.
Parameters
UL-
Type:
gcharChar indicating ‘U’pper or ‘L’ower matrix.
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.