#include <cstddef>
#include "viennacl/matrix.hpp"
#include "viennacl/matrix_proxy.hpp"
#include "viennacl/linalg/prod.hpp"
#include "boost/numeric/ublas/matrix.hpp"
#include "boost/numeric/ublas/matrix_proxy.hpp"
#include "boost/numeric/ublas/io.hpp"
#include "viennacl/tools/random.hpp"
Go to the source code of this file.
Macros | |
#define | BOOST_UBLAS_NDEBUG |
#define | TEST_LAYOUT(Clayout, Alayout, Blayout, composite) |
#define | DECLARE(NAME, size1, size2) |
#define | TEST_ALL_LAYOUTS(C_TYPE, A_TYPE, B_TYPE) |
Functions | |
template<typename ScalarType , typename VCLMatrixType > | |
ScalarType | diff (boost::numeric::ublas::matrix< ScalarType > const &mat1, VCLMatrixType const &mat2) |
template<typename T , typename CType , typename AType , typename BType > | |
int | test_layout (CType &C, AType const &A, AType const &AT, BType const &B, BType const &BT, boost::numeric::ublas::matrix< T > const &ground, T epsilon, bool with_composite) |
template<typename T , typename RefAType , typename RefBType , typename RefCType > | |
int | test_all_layouts (std::size_t CM, std::size_t CN, RefCType &cC, std::size_t AM, std::size_t AK, RefAType &cA, RefAType &cAT, std::size_t BK, std::size_t BN, RefBType &cB, RefBType &cBT, T epsilon) |
template<class MatrixType > | |
void | init_rand (MatrixType &A) |
template<typename T > | |
int | run_test (T epsilon) |
#define BOOST_UBLAS_NDEBUG |
Definition at line 22 of file matrix_product_float_double.hpp.
#define DECLARE | ( | NAME, | |
size1, | |||
size2 | |||
) |
#define TEST_ALL_LAYOUTS | ( | C_TYPE, | |
A_TYPE, | |||
B_TYPE | |||
) |
#define TEST_LAYOUT | ( | Clayout, | |
Alayout, | |||
Blayout, | |||
composite | |||
) |
ScalarType diff | ( | boost::numeric::ublas::matrix< ScalarType > const & | mat1, |
VCLMatrixType const & | mat2 | ||
) |
Definition at line 37 of file matrix_product_float_double.hpp.
void init_rand | ( | MatrixType & | A | ) |
Definition at line 211 of file matrix_product_float_double.hpp.
int run_test | ( | T | epsilon | ) |
Definition at line 223 of file matrix_product_float_double.hpp.
int test_all_layouts | ( | std::size_t | CM, |
std::size_t | CN, | ||
RefCType & | cC, | ||
std::size_t | AM, | ||
std::size_t | AK, | ||
RefAType & | cA, | ||
RefAType & | cAT, | ||
std::size_t | BK, | ||
std::size_t | BN, | ||
RefBType & | cB, | ||
RefBType & | cBT, | ||
T | epsilon | ||
) |
Definition at line 158 of file matrix_product_float_double.hpp.
int test_layout | ( | CType & | C, |
AType const & | A, | ||
AType const & | AT, | ||
BType const & | B, | ||
BType const & | BT, | ||
boost::numeric::ublas::matrix< T > const & | ground, | ||
T | epsilon, | ||
bool | with_composite | ||
) |
Definition at line 107 of file matrix_product_float_double.hpp.