#include <iostream>
#include <iomanip>
#include <vector>
#include "viennacl/backend/memory.hpp"
#include "viennacl/matrix.hpp"
#include "viennacl/matrix_proxy.hpp"
Go to the source code of this file.
|
template<typename NumericT , typename MatrixT > |
int | check (std::vector< NumericT > const &std_dest, std::size_t start1, std::size_t inc1, std::size_t size1, std::size_t start2, std::size_t inc2, std::size_t size2, std::size_t internal_size2, MatrixT const &vcl_dest) |
|
template<typename STLVectorT1 , typename STLVectorT2 , typename ViennaCLVectorT1 , typename ViennaCLVectorT2 > |
int | test (STLVectorT1 &std_src, std::size_t start1_src, std::size_t inc1_src, std::size_t size1_src, std::size_t start2_src, std::size_t inc2_src, std::size_t size2_src, std::size_t internal_size2_src, STLVectorT2 &std_dest, std::size_t start1_dest, std::size_t inc1_dest, std::size_t size1_dest, std::size_t start2_dest, std::size_t inc2_dest, std::size_t size2_dest, std::size_t internal_size2_dest, ViennaCLVectorT1 const &vcl_src, ViennaCLVectorT2 &vcl_dest) |
|
std::string | type_string (unsigned int) |
|
std::string | type_string (int) |
|
std::string | type_string (long) |
|
std::string | type_string (float) |
|
std::string | type_string (double) |
|
template<typename LayoutT , typename FromNumericT , typename ToNumericT > |
int | test () |
|
template<typename FromNumericT , typename ToNumericT > |
int | test () |
|
int | main () |
|
Tests conversion between matrices with different numeric type
- Test:
- Tests conversion between matrices with different numeric type
Definition in file matrix_convert.cpp.
template<typename NumericT , typename MatrixT >
int check |
( |
std::vector< NumericT > const & |
std_dest, |
|
|
std::size_t |
start1, |
|
|
std::size_t |
inc1, |
|
|
std::size_t |
size1, |
|
|
std::size_t |
start2, |
|
|
std::size_t |
inc2, |
|
|
std::size_t |
size2, |
|
|
std::size_t |
internal_size2, |
|
|
MatrixT const & |
vcl_dest |
|
) |
| |
template<typename STLVectorT1 , typename STLVectorT2 , typename ViennaCLVectorT1 , typename ViennaCLVectorT2 >
int test |
( |
STLVectorT1 & |
std_src, |
|
|
std::size_t |
start1_src, |
|
|
std::size_t |
inc1_src, |
|
|
std::size_t |
size1_src, |
|
|
std::size_t |
start2_src, |
|
|
std::size_t |
inc2_src, |
|
|
std::size_t |
size2_src, |
|
|
std::size_t |
internal_size2_src, |
|
|
STLVectorT2 & |
std_dest, |
|
|
std::size_t |
start1_dest, |
|
|
std::size_t |
inc1_dest, |
|
|
std::size_t |
size1_dest, |
|
|
std::size_t |
start2_dest, |
|
|
std::size_t |
inc2_dest, |
|
|
std::size_t |
size2_dest, |
|
|
std::size_t |
internal_size2_dest, |
|
|
ViennaCLVectorT1 const & |
vcl_src, |
|
|
ViennaCLVectorT2 & |
vcl_dest |
|
) |
| |
template<typename LayoutT , typename FromNumericT , typename ToNumericT >
template<typename FromNumericT , typename ToNumericT >
std::string type_string |
( |
unsigned |
int | ) |
|
|
inline |
std::string type_string |
( |
int |
| ) |
|
|
inline |
std::string type_string |
( |
long |
| ) |
|
|
inline |
std::string type_string |
( |
float |
| ) |
|
|
inline |
std::string type_string |
( |
double |
| ) |
|
|
inline |