#include <iostream>
#include "viennacl/scalar.hpp"
#include "viennacl/vector.hpp"
#include "viennacl/vector_proxy.hpp"
#include "viennacl/matrix.hpp"
#include "viennacl/matrix_proxy.hpp"
#include "viennacl/compressed_matrix.hpp"
#include "viennacl/compressed_compressed_matrix.hpp"
#include "viennacl/coordinate_matrix.hpp"
#include "viennacl/ell_matrix.hpp"
#include "viennacl/sliced_ell_matrix.hpp"
#include "viennacl/hyb_matrix.hpp"
#include "viennacl/linalg/prod.hpp"
#include "viennacl/linalg/norm_2.hpp"
#include "viennacl/linalg/ilu.hpp"
#include "viennacl/linalg/detail/ilu/common.hpp"
#include "viennacl/io/matrix_market.hpp"
#include "viennacl/tools/random.hpp"
Go to the source code of this file.
Classes | |
struct | op_assign |
struct | op_plus_assign |
struct | op_minus_assign |
Functions | |
template<typename NumericT > | |
NumericT | diff (NumericT const &s1, viennacl::scalar< NumericT > const &s2) |
template<typename NumericT > | |
NumericT | diff (std::vector< NumericT > const &v1, viennacl::vector< NumericT > const &v2) |
template<typename NumericT > | |
NumericT | diff (std::vector< std::vector< NumericT > > const &A1, viennacl::matrix< NumericT > const &A2) |
template<typename HostContainerT , typename DeviceContainerT , typename NumericT > | |
void | check (HostContainerT const &host_container, DeviceContainerT const &device_container, std::string current_stage, NumericT epsilon) |
template<typename OpT , typename NumericT , typename HostMatrixT , typename DeviceMatrixT > | |
void | test_gemm (NumericT epsilon, HostMatrixT &host_A, HostMatrixT &host_B, HostMatrixT &host_C, DeviceMatrixT &device_A, std::string name_A, DeviceMatrixT &device_B, std::string name_B, DeviceMatrixT &device_C, bool copy_from_A, bool trans_first, bool trans_second) |
template<typename OpT , typename NumericT , typename HostMatrixT , typename DeviceMatrixT > | |
void | test_gemm (NumericT epsilon, HostMatrixT &host_A, HostMatrixT &host_B, HostMatrixT &host_C, DeviceMatrixT &device_A, std::string name_A, DeviceMatrixT &device_B, std::string name_B, DeviceMatrixT &device_C, bool copy_from_A) |
template<typename NumericT > | |
int | test (NumericT epsilon) |
int | main () |
Tests the correct handling of self-assignments.
Definition in file self_assign.cpp.
void check | ( | HostContainerT const & | host_container, |
DeviceContainerT const & | device_container, | ||
std::string | current_stage, | ||
NumericT | epsilon | ||
) |
Definition at line 114 of file self_assign.cpp.
NumericT diff | ( | NumericT const & | s1, |
viennacl::scalar< NumericT > const & | s2 | ||
) |
Definition at line 59 of file self_assign.cpp.
NumericT diff | ( | std::vector< NumericT > const & | v1, |
viennacl::vector< NumericT > const & | v2 | ||
) |
Definition at line 67 of file self_assign.cpp.
NumericT diff | ( | std::vector< std::vector< NumericT > > const & | A1, |
viennacl::matrix< NumericT > const & | A2 | ||
) |
Definition at line 97 of file self_assign.cpp.
int main | ( | ) |
Definition at line 456 of file self_assign.cpp.
int test | ( | NumericT | epsilon | ) |
Definition at line 235 of file self_assign.cpp.
void test_gemm | ( | NumericT | epsilon, |
HostMatrixT & | host_A, | ||
HostMatrixT & | host_B, | ||
HostMatrixT & | host_C, | ||
DeviceMatrixT & | device_A, | ||
std::string | name_A, | ||
DeviceMatrixT & | device_B, | ||
std::string | name_B, | ||
DeviceMatrixT & | device_C, | ||
bool | copy_from_A, | ||
bool | trans_first, | ||
bool | trans_second | ||
) |
Definition at line 161 of file self_assign.cpp.
void test_gemm | ( | NumericT | epsilon, |
HostMatrixT & | host_A, | ||
HostMatrixT & | host_B, | ||
HostMatrixT & | host_C, | ||
DeviceMatrixT & | device_A, | ||
std::string | name_A, | ||
DeviceMatrixT & | device_B, | ||
std::string | name_B, | ||
DeviceMatrixT & | device_C, | ||
bool | copy_from_A | ||
) |
Definition at line 219 of file self_assign.cpp.