#include <iostream>
#include <boost/numeric/ublas/io.hpp>
#include <boost/numeric/ublas/triangular.hpp>
#include <boost/numeric/ublas/matrix_sparse.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/matrix_proxy.hpp>
#include <boost/numeric/ublas/lu.hpp>
#include "viennacl/scalar.hpp"
#include "viennacl/matrix.hpp"
#include "viennacl/matrix_proxy.hpp"
#include "viennacl/vector.hpp"
#include "viennacl/linalg/prod.hpp"
#include "viennacl/linalg/norm_2.hpp"
#include "viennacl/linalg/direct_solve.hpp"
#include "viennacl/tools/random.hpp"
Go to the source code of this file.
Macros | |
#define | BOOST_UBLAS_NDEBUG |
#define | VIENNACL_WITH_UBLAS 1 |
Functions | |
template<typename ScalarType > | |
ScalarType | diff (ScalarType &s1, viennacl::scalar< ScalarType > &s2) |
template<typename ScalarType > | |
ScalarType | diff (ublas::vector< ScalarType > &v1, viennacl::vector< ScalarType > &v2) |
template<typename ScalarType , typename VCLMatrixType > | |
ScalarType | diff (ublas::matrix< ScalarType > &mat1, VCLMatrixType &mat2) |
template<typename RHSTypeRef , typename RHSTypeCheck , typename Epsilon > | |
void | run_solver_check (RHSTypeRef &B_ref, RHSTypeCheck &B_check, int &retval, Epsilon const &epsilon) |
template<typename NumericT , typename Epsilon , typename ReferenceMatrixTypeA , typename ReferenceMatrixTypeB , typename ReferenceMatrixTypeC , typename MatrixTypeA , typename MatrixTypeB , typename MatrixTypeC , typename MatrixTypeResult > | |
int | test_solve (Epsilon const &epsilon, ReferenceMatrixTypeA const &A, ReferenceMatrixTypeB const &B_start, ReferenceMatrixTypeC const &C_start, MatrixTypeA const &vcl_A, MatrixTypeB &vcl_B, MatrixTypeC &vcl_C, MatrixTypeResult const &) |
template<typename NumericT , typename F_A , typename F_B , typename Epsilon > | |
int | test_solve (Epsilon const &epsilon) |
template<typename NumericT , typename Epsilon > | |
int | test (Epsilon const &epsilon) |
int | main () |
Tests the BLAS level 3 triangular solvers
Definition in file blas3_solve.cpp.
#define BOOST_UBLAS_NDEBUG |
Definition at line 33 of file blas3_solve.cpp.
#define VIENNACL_WITH_UBLAS 1 |
Definition at line 52 of file blas3_solve.cpp.
ScalarType diff | ( | ScalarType & | s1, |
viennacl::scalar< ScalarType > & | s2 | ||
) |
Definition at line 69 of file blas3_solve.cpp.
ScalarType diff | ( | ublas::vector< ScalarType > & | v1, |
viennacl::vector< ScalarType > & | v2 | ||
) |
Definition at line 78 of file blas3_solve.cpp.
ScalarType diff | ( | ublas::matrix< ScalarType > & | mat1, |
VCLMatrixType & | mat2 | ||
) |
Definition at line 98 of file blas3_solve.cpp.
int main | ( | ) |
Definition at line 527 of file blas3_solve.cpp.
void run_solver_check | ( | RHSTypeRef & | B_ref, |
RHSTypeCheck & | B_check, | ||
int & | retval, | ||
Epsilon const & | epsilon | ||
) |
Definition at line 128 of file blas3_solve.cpp.
int test | ( | Epsilon const & | epsilon | ) |
Definition at line 486 of file blas3_solve.cpp.
int test_solve | ( | Epsilon const & | epsilon, |
ReferenceMatrixTypeA const & | A, | ||
ReferenceMatrixTypeB const & | B_start, | ||
ReferenceMatrixTypeC const & | C_start, | ||
MatrixTypeA const & | vcl_A, | ||
MatrixTypeB & | vcl_B, | ||
MatrixTypeC & | vcl_C, | ||
MatrixTypeResult const & | |||
) |
Definition at line 147 of file blas3_solve.cpp.
int test_solve | ( | Epsilon const & | epsilon | ) |
Definition at line 309 of file blas3_solve.cpp.