1 #ifndef VIENNACL_TOOLS_MATRIX_GENERATION_HPP_
2 #define VIENNACL_TOOLS_MATRIX_GENERATION_HPP_
47 template<
typename MatrixType>
50 typedef typename MatrixType::value_type
ScalarType;
52 vcl_size_t total_unknowns = points_x * points_y;
55 A.resize(total_unknowns, total_unknowns,
false);
93 template<
typename NumericT>
97 std::vector< std::map<unsigned int, NumericT> > temp_A;
103 template<
typename NumericT>
107 std::vector< std::map<unsigned int, NumericT> > temp_A;
113 template<
typename NumericT>
117 std::vector< std::map<unsigned int, NumericT> > temp_A;
123 template<
typename NumericT>
127 std::vector< std::map<unsigned int, NumericT> > temp_A;
133 template<
typename NumericT>
137 std::vector< std::map<unsigned int, NumericT> > temp_A;
Sparse matrix class using a hybrid format composed of the ELL and CSR format for storing the nonzeros...
Adapter classes for sparse matrices made of the STL type std::vector >
This file provides the forward declarations for the main types used within ViennaCL.
Main namespace in ViennaCL. Holds all the basic types such as vector, matrix, etc. and defines operations upon them.
Sparse matrix class using the ELLPACK format for storing the nonzeros.
Sparse matrix class using the sliced ELLPACK with parameters C, .
vector_expression< const matrix_base< NumericT, F >, const unsigned int, op_row > row(const matrix_base< NumericT, F > &A, unsigned int i)
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 collection of compile time type deductions.
A sparse square matrix, where entries are stored as triplets (i,j, val), where i and j are the row an...