Go to the source code of this file.
|
namespace | ug |
| the ug namespace
|
|
|
template<typename T > |
void | ug::VecAssign (GPUVector< T > &dest, const GPUVector< T > &v1) |
| sets dest = v1 entrywise
|
|
template<typename T > |
double | ug::VecNormSquared (const GPUVector< T > &a, const GPUVector< T > &b) |
| returns norm_2^2(a)
|
|
template<typename T > |
void | ug::VecNormSquaredAdd (const GPUVector< T > &a, const GPUVector< T > &b, double &sum) |
| calculates s += norm_2^2(a)
|
|
template<typename T > |
double | ug::VecProd (const GPUVector< T > &v1, const GPUVector< T > &v2) |
| returns scal<a, b>
|
|
template<typename T > |
void | ug::VecProd (const GPUVector< T > &v1, const GPUVector< T > &v2, double &res) |
| calculates s += scal<a, b>
|
|
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
|
|
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
|
|
template<typename T > |
void | ug::VecScaleAssign (GPUVector< T > &dest, double alpha1, const GPUVector< T > &v1) |
| calculates dest = alpha1*v1
|
|