ug4
operations_mat.h File Reference

Go to the source code of this file.

Namespaces

 ug
 the ug namespace
 

Functions

template<typename vector_t , typename matrix_t >
bool ug::MatMult (vector_t &dest, const number &beta1, const matrix_t &A1, const vector_t &w1)
 calculates dest = beta1 * A1; More...
 
template<typename vector_t , typename matrix_t >
bool ug::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 + alpha2*v2 + beta1 * A1 *w1; More...
 
template<typename vector_t , typename matrix_t >
bool ug::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; More...
 
template<typename vector_t , typename matrix_t >
bool ug::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; More...
 
template<typename vector_t , typename matrix_t >
bool ug::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; More...
 
template<typename vector_t , typename matrix_t >
bool ug::MatMultTransposed (vector_t &dest, const number &beta1, const matrix_t &A1, const vector_t &w1)
 calculates dest = alpha1*v1 + beta1 * A1 *w1; More...
 
template<typename vector_t , typename matrix_t >
bool ug::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; More...