58   std::vector< std::map<unsigned int, ScalarType> > host_A;
 
   61     std::cout << 
"Error reading Matrix file" << std::endl;
 
   79   std::cout << 
"Running Lanczos algorithm (eigenvalues only). This might take a while..." << std::endl;
 
   86   std::cout << 
"Running Lanczos algorithm (with eigenvectors). This might take a while..." << std::endl;
 
   93   for (std::size_t i = 0; i< lanczos_eigenvalues.size(); i++)
 
   95     std::cout << 
"Approx. eigenvalue " << std::setprecision(7) << lanczos_eigenvalues[i];
 
A reader and writer for the matrix market format is implemented here. 
std::vector< typename viennacl::result_of::cpu_value_type< typename MatrixT::value_type >::type > eig(MatrixT const &matrix, DenseMatrixT &eigenvectors_A, lanczos_tag const &tag, bool compute_eigenvectors=true)
Implementation of the calculation of eigenvalues using lanczos (with and without reorthogonalization)...
const vcl_size_t & size1() const 
Returns the number of rows. 
Implementation of the dense matrix class. 
viennacl::enable_if< viennacl::is_stl< typename viennacl::traits::tag_of< VectorT1 >::type >::value, typename VectorT1::value_type >::type inner_prod(VectorT1 const &v1, VectorT2 const &v2)
VectorT prod(std::vector< std::vector< T, A1 >, A2 > const &matrix, VectorT const &vector)
Implementation of the compressed_matrix class. 
Proxy classes for matrices. 
The vector type with operator-overloads and proxy classes is defined here. Linear algebra operations ...
void copy(std::vector< NumericT > &cpu_vec, circulant_matrix< NumericT, AlignmentV > &gpu_mat)
Copies a circulant matrix from the std::vector to the OpenCL device (either GPU or multi-core CPU) ...
A sparse square matrix in compressed sparse rows format. 
vector_expression< const matrix_base< NumericT, F >, const unsigned int, op_column > column(const matrix_base< NumericT, F > &A, unsigned int j)
long read_matrix_market_file(MatrixT &mat, const char *file, long index_base=1)
Reads a sparse matrix from a file (MatrixMarket format) 
Implementation of the ViennaCL scalar class. 
A tag for the lanczos algorithm. 
Generic interface for the Lanczos algorithm.