ug4
gpuvector.h File Reference

Go to the source code of this file.

Classes

class  ug::GPUVector< TValueType >
 

Namespaces

 ug
 the ug namespace
 

Functions

template<typename T >
void ug::VecAssign (GPUVector< T > &dest, const GPUVector< T > &v1)
 sets dest = v1 entrywise More...
 
template<typename T >
double ug::VecNormSquared (const GPUVector< T > &a, const GPUVector< T > &b)
 returns norm_2^2(a) More...
 
template<typename T >
void ug::VecNormSquaredAdd (const GPUVector< T > &a, const GPUVector< T > &b, double &sum)
 calculates s += norm_2^2(a) More...
 
template<typename T >
double ug::VecProd (const GPUVector< T > &v1, const GPUVector< T > &v2)
 returns scal<a, b> More...
 
template<typename T >
void ug::VecProd (const GPUVector< T > &v1, const GPUVector< T > &v2, double &res)
 calculates s += scal<a, b> More...
 
template<typename T >
void ug::VecScaleAdd (GPUVector< T > &dest, double alpha1, const GPUVector< T > &v1, double alpha2, const GPUVector< T > &v2)
 calculates dest = alpha1*v1 + alpha2*v2 More...
 
template<typename T >
void ug::VecScaleAdd (GPUVector< T > &dest, double alpha1, const GPUVector< T > &v1, double alpha2, const GPUVector< T > &v2, double alpha3, const GPUVector< T > &v3)
 calculates dest = alpha1*v1 + alpha2*v2 + alpha3*v3 More...
 
template<typename T >
void ug::VecScaleAssign (GPUVector< T > &dest, double alpha1, const GPUVector< T > &v1)
 calculates dest = alpha1*v1 More...