Implementations of vector operations using a plain single-threaded or OpenMP-enabled execution on CPU.
More...
|
| template<typename NumericT > |
| NumericT | flip_sign (NumericT val) |
| |
| unsigned long | flip_sign (unsigned long val) |
| |
| unsigned int | flip_sign (unsigned int val) |
| |
| unsigned short | flip_sign (unsigned short val) |
| |
| unsigned char | flip_sign (unsigned char val) |
| |
| template<typename T , typename ScalarType1 > |
| void | av (vector_base< T > &vec1, vector_base< T > const &vec2, ScalarType1 const &alpha, vcl_size_t, bool reciprocal_alpha, bool flip_sign_alpha) |
| |
| template<typename T , typename ScalarType1 , typename ScalarType2 > |
| void | avbv (vector_base< T > &vec1, vector_base< T > const &vec2, ScalarType1 const &alpha, vcl_size_t, bool reciprocal_alpha, bool flip_sign_alpha, vector_base< T > const &vec3, ScalarType2 const &beta, vcl_size_t, bool reciprocal_beta, bool flip_sign_beta) |
| |
| template<typename T , typename ScalarType1 , typename ScalarType2 > |
| void | avbv_v (vector_base< T > &vec1, vector_base< T > const &vec2, ScalarType1 const &alpha, vcl_size_t, bool reciprocal_alpha, bool flip_sign_alpha, vector_base< T > const &vec3, ScalarType2 const &beta, vcl_size_t, bool reciprocal_beta, bool flip_sign_beta) |
| |
| template<typename T > |
| void | vector_assign (vector_base< T > &vec1, const T &alpha, bool up_to_internal_size=false) |
| | Assign a constant value to a vector (-range/-slice) More...
|
| |
| template<typename T > |
| void | vector_swap (vector_base< T > &vec1, vector_base< T > &vec2) |
| | Swaps the contents of two vectors, data is copied. More...
|
| |
| template<typename T , typename OP > |
| void | element_op (vector_base< T > &vec1, vector_expression< const vector_base< T >, const vector_base< T >, op_element_binary< OP > > const &proxy) |
| | Implementation of the element-wise operation v1 = v2 .* v3 and v1 = v2 ./ v3 (using MATLAB syntax) More...
|
| |
| template<typename T , typename OP > |
| void | element_op (vector_base< T > &vec1, vector_expression< const vector_base< T >, const vector_base< T >, op_element_unary< OP > > const &proxy) |
| | Implementation of the element-wise operation v1 = v2 .* v3 and v1 = v2 ./ v3 (using MATLAB syntax) More...
|
| |
| template<typename T , typename S3 > |
| void | inner_prod_impl (vector_base< T > const &vec1, vector_base< T > const &vec2, S3 &result) |
| | Computes the inner product of two vectors - implementation. Library users should call inner_prod(vec1, vec2). More...
|
| |
| template<typename T > |
| void | inner_prod_impl (vector_base< T > const &x, vector_tuple< T > const &vec_tuple, vector_base< T > &result) |
| |
| template<typename T , typename S2 > |
| void | norm_1_impl (vector_base< T > const &vec1, S2 &result) |
| | Computes the l^1-norm of a vector. More...
|
| |
| template<typename T , typename S2 > |
| void | norm_2_impl (vector_base< T > const &vec1, S2 &result) |
| | Computes the l^2-norm of a vector - implementation. More...
|
| |
| template<typename T , typename S2 > |
| void | norm_inf_impl (vector_base< T > const &vec1, S2 &result) |
| | Computes the supremum-norm of a vector. More...
|
| |
| template<typename T > |
| vcl_size_t | index_norm_inf (vector_base< T > const &vec1) |
| | Computes the index of the first entry that is equal to the supremum-norm in modulus. More...
|
| |
| template<typename T > |
| void | plane_rotation (vector_base< T > &vec1, vector_base< T > &vec2, T alpha, T beta) |
| | Computes a plane rotation of two vectors. More...
|
| |
Implementations of vector operations using a plain single-threaded or OpenMP-enabled execution on CPU.