ViennaCL - The Vienna Computing Library  1.7.0
Free open-source GPU-accelerated linear algebra and solver library.
matrix_vector.cpp File Reference
#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 <boost/numeric/ublas/vector_proxy.hpp>
#include "viennacl/scalar.hpp"
#include "viennacl/matrix.hpp"
#include "viennacl/vector.hpp"
#include "viennacl/linalg/prod.hpp"
#include "viennacl/linalg/norm_2.hpp"
#include "viennacl/linalg/direct_solve.hpp"
#include "viennacl/linalg/lu.hpp"
#include "viennacl/linalg/sum.hpp"
#include "viennacl/tools/random.hpp"

Go to the source code of this file.

Macros

#define VIENNACL_WITH_UBLAS   1
 

Functions

template<typename ScalarType >
ScalarType diff (ScalarType &s1, viennacl::scalar< ScalarType > &s2)
 
template<typename ScalarType , typename VCLVectorType >
ScalarType diff (ublas::vector< ScalarType > const &v1, VCLVectorType const &v2)
 
template<typename ScalarType , typename VCLMatrixType >
ScalarType diff (ublas::matrix< ScalarType > const &mat1, VCLMatrixType const &mat2)
 
template<typename NumericT , typename Epsilon , typename UblasMatrixType , typename UblasVectorType , typename VCLMatrixType , typename VCLVectorType1 , typename VCLVectorType2 >
int test_prod_rank1 (Epsilon const &epsilon, UblasMatrixType &ublas_m1, UblasVectorType &ublas_v1, UblasVectorType &ublas_v2, UblasMatrixType &ublas_m2, VCLMatrixType &vcl_m1, VCLVectorType1 &vcl_v1, VCLVectorType2 &vcl_v2, VCLMatrixType &vcl_m2)
 
template<typename NumericT , typename Epsilon , typename UblasMatrixType , typename UblasVectorType , typename VCLMatrixType , typename VCLVectorType1 >
int test_solve (Epsilon const &epsilon, UblasMatrixType &ublas_m1, UblasVectorType &ublas_v1, VCLMatrixType &vcl_m1, VCLVectorType1 &vcl_v1)
 
template<typename NumericT , typename F , typename Epsilon >
int test (Epsilon const &epsilon)
 
int main ()
 

Detailed Description

Tests routines for matrix-vector operaions (BLAS level 2) using floating point arithmetic.

Test:
Tests routines for matrix-vector operaions (BLAS level 2) using floating point arithmetic.

Definition in file matrix_vector.cpp.

Macro Definition Documentation

#define VIENNACL_WITH_UBLAS   1

Definition at line 44 of file matrix_vector.cpp.

Function Documentation

template<typename ScalarType >
ScalarType diff ( ScalarType s1,
viennacl::scalar< ScalarType > &  s2 
)

Definition at line 63 of file matrix_vector.cpp.

template<typename ScalarType , typename VCLVectorType >
ScalarType diff ( ublas::vector< ScalarType > const &  v1,
VCLVectorType const &  v2 
)

Definition at line 72 of file matrix_vector.cpp.

template<typename ScalarType , typename VCLMatrixType >
ScalarType diff ( ublas::matrix< ScalarType > const &  mat1,
VCLMatrixType const &  mat2 
)

Definition at line 90 of file matrix_vector.cpp.

int main ( )

Definition at line 1142 of file matrix_vector.cpp.

template<typename NumericT , typename F , typename Epsilon >
int test ( Epsilon const &  epsilon)

Definition at line 494 of file matrix_vector.cpp.

template<typename NumericT , typename Epsilon , typename UblasMatrixType , typename UblasVectorType , typename VCLMatrixType , typename VCLVectorType1 , typename VCLVectorType2 >
int test_prod_rank1 ( Epsilon const &  epsilon,
UblasMatrixType &  ublas_m1,
UblasVectorType &  ublas_v1,
UblasVectorType &  ublas_v2,
UblasMatrixType &  ublas_m2,
VCLMatrixType &  vcl_m1,
VCLVectorType1 &  vcl_v1,
VCLVectorType2 &  vcl_v2,
VCLMatrixType &  vcl_m2 
)

Definition at line 117 of file matrix_vector.cpp.

template<typename NumericT , typename Epsilon , typename UblasMatrixType , typename UblasVectorType , typename VCLMatrixType , typename VCLVectorType1 >
int test_solve ( Epsilon const &  epsilon,
UblasMatrixType &  ublas_m1,
UblasVectorType &  ublas_v1,
VCLMatrixType &  vcl_m1,
VCLVectorType1 &  vcl_v1 
)

Definition at line 374 of file matrix_vector.cpp.