#include <iostream>#include <iomanip>#include <boost/numeric/ublas/io.hpp>#include <boost/numeric/ublas/vector.hpp>#include <boost/numeric/ublas/vector_proxy.hpp>#include "viennacl/vector.hpp"#include "viennacl/vector_proxy.hpp"#include "viennacl/linalg/inner_prod.hpp"#include "viennacl/linalg/norm_1.hpp"#include "viennacl/linalg/norm_2.hpp"#include "viennacl/linalg/norm_inf.hpp"#include "viennacl/linalg/maxmin.hpp"#include "Random.hpp"Go to the source code of this file.
Macros | |
| #define | VIENNACL_WITH_UBLAS 1 |
Functions | |
| template<typename ScalarType > | |
| ScalarType | diff (ScalarType const &s1, ScalarType const &s2) |
| template<typename ScalarType > | |
| ScalarType | diff (ScalarType const &s1, viennacl::scalar< ScalarType > const &s2) |
| template<typename ScalarType > | |
| ScalarType | diff (ScalarType const &s1, viennacl::entry_proxy< ScalarType > const &s2) |
| template<typename ScalarType , typename VCLVectorType > | |
| ScalarType | diff (ublas::vector< ScalarType > const &v1, VCLVectorType const &v2) |
| template<typename T1 , typename T2 > | |
| int | check (T1 const &t1, T2 const &t2) |
| template<typename NumericT , typename UblasVectorType , typename ViennaCLVectorType1 , typename ViennaCLVectorType2 > | |
| int | test (UblasVectorType &ublas_v1, UblasVectorType &ublas_v2, ViennaCLVectorType1 &vcl_v1, ViennaCLVectorType2 &vcl_v2) |
| template<typename NumericT > | |
| int | test () |
| int | main () |
Tests vector operations (BLAS level 1) for unsigned integer arithmetic.
Definition in file vector_uint.cpp.
| #define VIENNACL_WITH_UBLAS 1 |
Definition at line 41 of file vector_uint.cpp.
| int check | ( | T1 const & | t1, |
| T2 const & | t2 | ||
| ) |
Definition at line 103 of file vector_uint.cpp.
| ScalarType diff | ( | ScalarType const & | s1, |
| ScalarType const & | s2 | ||
| ) |
Definition at line 59 of file vector_uint.cpp.
| ScalarType diff | ( | ScalarType const & | s1, |
| viennacl::scalar< ScalarType > const & | s2 | ||
| ) |
Definition at line 68 of file vector_uint.cpp.
| ScalarType diff | ( | ScalarType const & | s1, |
| viennacl::entry_proxy< ScalarType > const & | s2 | ||
| ) |
Definition at line 77 of file vector_uint.cpp.
| ScalarType diff | ( | ublas::vector< ScalarType > const & | v1, |
| VCLVectorType const & | v2 | ||
| ) |
Definition at line 86 of file vector_uint.cpp.
| int main | ( | ) |
Definition at line 990 of file vector_uint.cpp.
| int test | ( | UblasVectorType & | ublas_v1, |
| UblasVectorType & | ublas_v2, | ||
| ViennaCLVectorType1 & | vcl_v1, | ||
| ViennaCLVectorType2 & | vcl_v2 | ||
| ) |
Definition at line 120 of file vector_uint.cpp.
| int test | ( | ) |
Definition at line 845 of file vector_uint.cpp.