ug4
blas_mat_interface.h File Reference

Go to the source code of this file.

Functions

template<typename vector_t , typename matrix_t >
bool MatMult (vector_t &dest, const matrix_t &A1, const vector_t &w1)
 calculates dest = A1 * w1; More...
 
template<typename vector_t , typename matrix_t >
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; More...
 
template<typename vector_t , typename matrix_t >
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; More...
 
template<typename vector_t , typename matrix_t >
bool MatMultAppend (vector_t &dest, const matrix_t &A1, const vector_t &w1)
 calculates dest += A1*w1 More...
 
template<typename vector_t , typename matrix_t >
bool MatMultScale (vector_t &dest, const number &beta1, const matrix_t &A1, const vector_t &w1)
 calculates dest = beta1 * A1 * w1; More...
 
template<typename vector_t , typename matrix_t >
bool MatMultScaleTransposed (vector_t &dest, const matrix_t &A1, const vector_t &w1)
 calculates dest = A1^T *w1; More...
 
template<typename vector_t , typename matrix_t >
bool MatMultScaleTransposed (vector_t &dest, const number &beta1, const matrix_t &A1, const vector_t &w1)
 calculates dest = beta1 * A1^T *w1; More...
 
template<typename vector_t , typename matrix_t >
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; More...
 

Function Documentation

◆ MatMult()

template<typename vector_t , typename matrix_t >
bool MatMult ( vector_t &  dest,
const matrix_t &  A1,
const vector_t &  w1 
)
inline

◆ MatMultAdd()

template<typename vector_t , typename matrix_t >
bool MatMultAdd ( vector_t &  dest,
const number alpha1,
const vector_t &  v1,
const number beta1,
const matrix_t &  A1,
const vector_t &  w1 
)
inline

calculates dest = alpha1*v1 + beta1 * A1 *w1;

Referenced by ug::SparseMatrix< TValueType >::apply_ignore_zero_rows(), and MatMultAddRow().

◆ MatMultAddRow()

template<typename vector_t , typename matrix_t >
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 
)
inline

calculates dest += beta1 * A1[row] *w1;

References MatMultAdd().

◆ MatMultAppend()

template<typename vector_t , typename matrix_t >
bool MatMultAppend ( vector_t &  dest,
const matrix_t &  A1,
const vector_t &  w1 
)
inline

calculates dest += A1*w1

◆ MatMultScale()

template<typename vector_t , typename matrix_t >
bool MatMultScale ( vector_t &  dest,
const number beta1,
const matrix_t &  A1,
const vector_t &  w1 
)
inline

calculates dest = beta1 * A1 * w1;

◆ MatMultScaleTransposed() [1/2]

template<typename vector_t , typename matrix_t >
bool MatMultScaleTransposed ( vector_t &  dest,
const matrix_t &  A1,
const vector_t &  w1 
)
inline

calculates dest = A1^T *w1;

◆ MatMultScaleTransposed() [2/2]

template<typename vector_t , typename matrix_t >
bool MatMultScaleTransposed ( vector_t &  dest,
const number beta1,
const matrix_t &  A1,
const vector_t &  w1 
)
inline

calculates dest = beta1 * A1^T *w1;

◆ MatMultTransposedScaledAdd()

template<typename vector_t , typename matrix_t >
bool MatMultTransposedScaledAdd ( vector_t &  dest,
const number alpha1,
const vector_t &  v1,
const number beta1,
const matrix_t &  A1,
const vector_t &  w1 
)
inline

calculates dest = alpha1*v1 + beta1 * A1^T *w1;

References ug::MatMultTransposedAdd().