33 #ifndef __H__UG__CPU_ALGEBRA__OPERATIONS_MAT__
34 #define __H__UG__CPU_ALGEBRA__OPERATIONS_MAT__
58 template<
typename vector_t,
typename matrix_t>
60 const number &beta1,
const matrix_t &A1,
const vector_t &w1)
67 template<
typename vector_t,
typename matrix_t>
69 const number &alpha1,
const vector_t &v1,
70 const number &beta1,
const matrix_t &A1,
const vector_t &w1 )
77 template<
typename vector_t,
typename matrix_t>
79 const number &alpha1,
const vector_t &v1,
80 const number &alpha2,
const vector_t &v2,
81 const number &beta1,
const matrix_t &A1,
const vector_t &w1)
84 ::MatMultAdd(dest, alpha1, v1, alpha2, v2, beta1, A1, w1);
88 template<
typename vector_t,
typename matrix_t>
90 const number &beta1,
const matrix_t &A1,
const vector_t &w1,
91 const number &beta2,
const matrix_t &A2,
const vector_t &w2)
98 template<
typename vector_t,
typename matrix_t>
100 const number &alpha1,
const vector_t &v1,
101 const number &beta1,
const matrix_t &A1,
const vector_t &w1,
102 const number &beta2,
const matrix_t &A2,
const vector_t &w2)
105 ::MatMultAdd(dest, alpha1, v1, beta1, A1, w1, beta2, A2, w2);
110 template<
typename vector_t,
typename matrix_t>
112 const number &beta1,
const matrix_t &A1,
const vector_t &w1 )
120 template<
typename vector_t,
typename matrix_t>
122 const number &alpha1,
const vector_t &v1,
123 const number &beta1,
const matrix_t &A1,
const vector_t &w1 )
double number
Definition: types.h:124
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 *w1;
Definition: operations_mat.h:121
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: operations_mat.h:68
bool MatMult(vector_t &dest, const number &beta1, const matrix_t &A1, const vector_t &w1)
calculates dest = beta1 * A1;
Definition: operations_mat.h:59
bool MatMultTransposed(vector_t &dest, const number &beta1, const matrix_t &A1, const vector_t &w1)
calculates dest = alpha1*v1 + beta1 * A1 *w1;
Definition: operations_mat.h:111
Definition: matrix_algebra_types.h:75