ug4
operations_vec_on_index_set.h File Reference
#include "operations_vec.h"
#include <vector>

Go to the source code of this file.

Namespaces

 ug
 the ug namespace
 

Functions

template<typename vector_t >
number ug::VecNormSquared (const vector_t &a, const vector_t &b, const std::vector< size_t > vIndex)
 returns norm_2^2(a) on a given index set More...
 
template<typename vector_t >
void ug::VecNormSquaredAdd (const vector_t &a, const vector_t &b, number &sum, const std::vector< size_t > vIndex)
 calculates s += norm_2^2(a) on a given index set More...
 
template<typename vector_t >
number ug::VecProd (const vector_t &a, const vector_t &b, const std::vector< size_t > vIndex)
 returns scal<a, b> on a given index set More...
 
template<typename vector_t >
void ug::VecProd (const vector_t &a, const vector_t &b, number &sum, const std::vector< size_t > vIndex)
 calculates s += scal<a, b> on a given index set More...
 
template<typename vector_t >
void ug::VecScaleAdd (vector_t &dest, number alpha1, const vector_t &v1, number alpha2, const vector_t &v2, const std::vector< size_t > vIndex)
 calculates dest = alpha1*v1 + alpha2*v2 on a given index set More...
 
template<typename vector_t >
void ug::VecScaleAdd (vector_t &dest, number alpha1, const vector_t &v1, number alpha2, const vector_t &v2, number alpha3, const vector_t &v3, const std::vector< size_t > vIndex)
 calculates dest = alpha1*v1 + alpha2*v2 + alpha3*v3 on a given index set More...
 
template<typename vector_t >
void ug::VecScaleAssign (vector_t &dest, number alpha1, const vector_t &v1, const std::vector< size_t > vIndex)
 calculates dest = alpha1*v1 on a given index set More...
 
template<typename vector_t >
void ug::VecSet (vector_t &dest, number alpha, const std::vector< size_t > vIndex)
 sets dest = alpha on a given index set More...