33 #ifndef BLAS_MAT_INTERFACE_H_
34 #define BLAS_MAT_INTERFACE_H_
39 template<
typename vector_t,
typename matrix_t>
40 inline bool MatMultScale(vector_t &dest,
const number &beta1,
const matrix_t &A1,
const vector_t &w1);
43 template<
typename vector_t,
typename matrix_t>
44 inline bool MatMult(vector_t &dest,
const matrix_t &A1,
const vector_t &w1);
48 template<
typename vector_t,
typename matrix_t>
50 const number &alpha1,
const vector_t &v1,
51 const number &beta1,
const matrix_t &A1,
const vector_t &w1 );
54 template<
typename vector_t,
typename matrix_t>
56 const matrix_t &A1,
const vector_t &w1 );
60 template<
typename vector_t,
typename matrix_t>
62 const number &beta1,
const matrix_t &A1,
const vector_t &w1 );
65 template<
typename vector_t,
typename matrix_t>
67 const matrix_t &A1,
const vector_t &w1 );
71 template<
typename vector_t,
typename matrix_t>
73 const number &alpha1,
const vector_t &v1,
74 const number &beta1,
const matrix_t &A1,
const vector_t &w1 )
76 return mat_operations_class<vector_t, matrix_t, matrix_algebra_type_traits<matrix_t>::type>
83 template<
typename vector_t,
typename matrix_t>
85 const number &alpha1,
const vector_t &v1,
86 const number &beta1,
const matrix_t &A1,
const vector_t &w1 )
88 return mat_operations_class<vector_t, matrix_t, matrix_algebra_type_traits<matrix_t>::type>
bool MatMultScaleTransposed(vector_t &dest, const number &beta1, const matrix_t &A1, const vector_t &w1)
calculates dest = beta1 * A1^T *w1;
bool MatMultTransposedScaledAdd(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: blas_mat_interface.h:72
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;
bool MatMultAddRow(typename vector_t::value_type &dest, const number &alpha1, const vector_t &v1, const number &beta1, const matrix_t &A1, const vector_t &w1)
calculates dest += beta1 * A1[row] *w1;
Definition: blas_mat_interface.h:84
bool MatMultScale(vector_t &dest, const number &beta1, const matrix_t &A1, const vector_t &w1)
calculates dest = beta1 * A1 * w1;
bool MatMultAppend(vector_t &dest, const matrix_t &A1, const vector_t &w1)
calculates dest += A1*w1
bool MatMult(vector_t &dest, const matrix_t &A1, const vector_t &w1)
calculates dest = A1 * 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
T value_type
Definition: sparsematrix_interface.h:2