ViennaCL - The Vienna Computing Library  1.7.0
Free open-source GPU-accelerated linear algebra and solver library.
libviennacl_blas2.cpp File Reference
#include <iostream>
#include <vector>
#include "viennacl.hpp"
#include "viennacl/vector.hpp"

Go to the source code of this file.

Functions

template<typename ScalarType >
ScalarType diff (ScalarType const &s1, ScalarType const &s2)
 
template<typename ScalarType , typename ViennaCLVectorType >
ScalarType diff (std::vector< ScalarType > const &v1, ViennaCLVectorType const &vcl_vec)
 
template<typename T , typename U , typename EpsilonT >
void check (T const &t, U const &u, EpsilonT eps)
 
int main ()
 

Detailed Description

Testing the BLAS level 2 routines in the ViennaCL BLAS-like shared library

Test:
Testing the BLAS level 2 routines in the ViennaCL BLAS-like shared library

Definition in file libviennacl_blas2.cpp.

Function Documentation

template<typename T , typename U , typename EpsilonT >
void check ( T const &  t,
U const &  u,
EpsilonT  eps 
)

Definition at line 63 of file libviennacl_blas2.cpp.

template<typename ScalarType >
ScalarType diff ( ScalarType const &  s1,
ScalarType const &  s2 
)

Definition at line 33 of file libviennacl_blas2.cpp.

template<typename ScalarType , typename ViennaCLVectorType >
ScalarType diff ( std::vector< ScalarType > const &  v1,
ViennaCLVectorType const &  vcl_vec 
)

Definition at line 41 of file libviennacl_blas2.cpp.

int main ( )

Definition at line 75 of file libviennacl_blas2.cpp.