40 template<
typename vector_t,
typename matrix_t>
44 static inline bool MatMult(vector_t &dest,
45 const number &beta1,
const matrix_t &A1,
const vector_t &w1)
47 return dest.mat_mult(beta1, A1, w1);
52 const number &alpha1,
const vector_t &v1,
53 const number &beta1,
const matrix_t &A1,
const vector_t &w1)
55 return dest.mat_mult_add(alpha1, w1, beta1, A1, w1);
60 const number &alpha1,
const vector_t &v1,
61 const number &alpha2,
const vector_t &v2,
62 const number &beta1,
const matrix_t &A1,
const vector_t &w1)
64 return dest.mat_mult_add(alpha1, w1, alpha2, v2, beta1, A1, w1);
69 const number &beta1,
const matrix_t &A1,
const vector_t &w1,
70 const number &beta2,
const matrix_t &A2,
const vector_t &w2)
72 return dest.mat_mult_add(beta1, A1, w1, A2, w2);
77 const number &alpha1,
const vector_t &v1,
78 const number &beta1,
const matrix_t &A1,
const vector_t &w1,
79 const number &beta2,
const matrix_t &A2,
const vector_t &w2)
81 return dest.mat_mult_add(alpha1, v1, beta1, A1, w1, beta2, A2, w2);
86 const number &beta1,
const matrix_t &A1,
const vector_t &w1)
88 return dest.mat_mult_transposed(beta1, A1, w1);
93 const number &alpha1,
const vector_t &v1,
94 const number &beta1,
const matrix_t &A1,
const vector_t &w1)
96 return dest.mat_mult_tranposed_add(alpha1, w1, beta1, A1, w1);
double number
Definition: types.h:124
@ MATRIX_USE_MEMBER_FUNCTIONS
Definition: matrix_algebra_types.h:71
static bool MatMult(vector_t &dest, const number &beta1, const matrix_t &A1, const vector_t &w1)
calculates dest = beta1 * A1;
Definition: matrix_use_member_functions.h:44
static bool MatMultAdd(vector_t &dest, const number &beta1, const matrix_t &A1, const vector_t &w1, const number &beta2, const matrix_t &A2, const vector_t &w2)
calculates dest = beta1 * A1 *w1 + beta2 * A2*w2;
Definition: matrix_use_member_functions.h:68
static bool MatMultTransposedAdd(vector_t &dest, const number &alpha1, const vector_t &v1, const number &beta1, const matrix_t &A1, const vector_t &w1)
calculates dest = alpha1*v1 + beta1 * A1^T *w1;
Definition: matrix_use_member_functions.h:92
static bool MatMultAdd(vector_t &dest, const number &alpha1, const vector_t &v1, const number &beta1, const matrix_t &A1, const vector_t &w1, const number &beta2, const matrix_t &A2, const vector_t &w2)
calculates dest = alpha1*v1 + beta1 * A1 *w1 + beta2 * A2*w2;
Definition: matrix_use_member_functions.h:76
static bool MatMultAdd(vector_t &dest, const number &alpha1, const vector_t &v1, const number &alpha2, const vector_t &v2, const number &beta1, const matrix_t &A1, const vector_t &w1)
calculates dest = alpha1*v1 + beta1 * A1 *w1 + alpha2*v2;
Definition: matrix_use_member_functions.h:59
static bool MatMultTransposed(vector_t &dest, const number &beta1, const matrix_t &A1, const vector_t &w1)
calculates dest = beta1 * A1^T *w1;
Definition: matrix_use_member_functions.h:85
static bool MatMultAdd(vector_t &dest, const number &alpha1, const vector_t &v1, const number &beta1, const matrix_t &A1, const vector_t &w1)
calculates dest = alpha1*v1 + beta1 * A1 *w1;
Definition: matrix_use_member_functions.h:51
Definition: matrix_algebra_types.h:75