#include <iostream>
#include <iomanip>
#include <vector>
#include "viennacl/vector.hpp"
#include "viennacl/matrix.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/scheduler/execute.hpp"
#include "viennacl/scheduler/io.hpp"
#include "viennacl/tools/random.hpp"
Go to the source code of this file.
Macros | |
#define | GENERATE_UNARY_OP_TEST(OPNAME) |
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 ViennaCLVectorType > | |
ScalarType | diff (std::vector< ScalarType > const &v1, ViennaCLVectorType const &vcl_vec) |
template<typename T1 , typename T2 > | |
int | check (T1 const &t1, T2 const &t2, double epsilon) |
template<typename NumericT , typename Epsilon , typename STLVectorType , typename ViennaCLVectorType1 , typename ViennaCLVectorType2 > | |
int | test (Epsilon const &epsilon, STLVectorType &std_v1, STLVectorType &std_v2, ViennaCLVectorType1 &vcl_v1, ViennaCLVectorType2 &vcl_v2) |
template<typename NumericT , typename Epsilon > | |
int | test (Epsilon const &epsilon) |
int | main () |
Tests the scheduler for vector-operations.
Definition in file scheduler_vector.cpp.
#define GENERATE_UNARY_OP_TEST | ( | OPNAME | ) |
int check | ( | T1 const & | t1, |
T2 const & | t2, | ||
double | epsilon | ||
) |
Definition at line 106 of file scheduler_vector.cpp.
ScalarType diff | ( | ScalarType const & | s1, |
ScalarType const & | s2 | ||
) |
Definition at line 52 of file scheduler_vector.cpp.
ScalarType diff | ( | ScalarType const & | s1, |
viennacl::scalar< ScalarType > const & | s2 | ||
) |
Definition at line 63 of file scheduler_vector.cpp.
ScalarType diff | ( | ScalarType const & | s1, |
viennacl::entry_proxy< ScalarType > const & | s2 | ||
) |
Definition at line 74 of file scheduler_vector.cpp.
ScalarType diff | ( | std::vector< ScalarType > const & | v1, |
ViennaCLVectorType const & | vcl_vec | ||
) |
Definition at line 85 of file scheduler_vector.cpp.
int main | ( | ) |
Definition at line 770 of file scheduler_vector.cpp.
int test | ( | Epsilon const & | epsilon, |
STLVectorType & | std_v1, | ||
STLVectorType & | std_v2, | ||
ViennaCLVectorType1 & | vcl_v1, | ||
ViennaCLVectorType2 & | vcl_v2 | ||
) |
Definition at line 126 of file scheduler_vector.cpp.
int test | ( | Epsilon const & | epsilon | ) |
Definition at line 608 of file scheduler_vector.cpp.