ViennaCL - The Vienna Computing Library  1.7.0
Free open-source GPU-accelerated linear algebra and solver library.
sparse.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/operation_sparse.hpp>
#include <boost/numeric/ublas/vector_proxy.hpp>
#include "viennacl/scalar.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/vector.hpp"
#include "viennacl/vector_proxy.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.

Macros

#define 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 VCL_MATRIX >
ScalarType diff (ublas::compressed_matrix< ScalarType > &cpu_matrix, VCL_MATRIX &gpu_matrix)
 
template<typename NumericT , typename VCL_MatrixT , typename Epsilon , typename UblasVectorT , typename VCLVectorT >
int strided_matrix_vector_product_test (Epsilon epsilon, UblasVectorT &result, UblasVectorT const &rhs, VCLVectorT &vcl_result, VCLVectorT &vcl_rhs)
 
template<typename NumericT , typename VCL_MATRIX , typename Epsilon >
int resize_test (Epsilon const &epsilon)
 
template<typename NumericT , typename Epsilon >
int test (Epsilon const &epsilon)
 
int main ()
 

Detailed Description

Tests sparse matrix operations.

Test:
Tests sparse matrix operations.

Tests sparse matrix operations.

Test:
Tests sparse matrix operations.

Definition in file sparse.cpp.

Macro Definition Documentation

#define NDEBUG

Definition at line 25 of file sparse.cpp.

#define VIENNACL_WITH_UBLAS   1

Definition at line 50 of file sparse.cpp.

Function Documentation

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

Definition at line 76 of file sparse.cpp.

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

Definition at line 84 of file sparse.cpp.

template<typename ScalarType , typename VCL_MATRIX >
ScalarType diff ( ublas::compressed_matrix< ScalarType > &  cpu_matrix,
VCL_MATRIX &  gpu_matrix 
)

Definition at line 116 of file sparse.cpp.

int main ( )
Examples:
sparse.cpp.

Definition at line 943 of file sparse.cpp.

template<typename NumericT , typename VCL_MATRIX , typename Epsilon >
int resize_test ( Epsilon const &  epsilon)

Definition at line 228 of file sparse.cpp.

template<typename NumericT , typename VCL_MatrixT , typename Epsilon , typename UblasVectorT , typename VCLVectorT >
int strided_matrix_vector_product_test ( Epsilon  epsilon,
UblasVectorT &  result,
UblasVectorT const &  rhs,
VCLVectorT &  vcl_result,
VCLVectorT &  vcl_rhs 
)

Definition at line 179 of file sparse.cpp.

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

Definition at line 394 of file sparse.cpp.