1 #ifndef VIENNACL_TOOLS_MATRIX_GENERATION_HPP_
2 #define VIENNACL_TOOLS_MATRIX_GENERATION_HPP_
47 template<
typename MatrixType>
50 vcl_size_t total_unknowns = points_x * points_y;
53 A.resize(total_unknowns, total_unknowns,
false);
91 template<
typename NumericT>
95 std::vector< std::map<unsigned int, NumericT> > temp_A;
101 template<
typename NumericT>
105 std::vector< std::map<unsigned int, NumericT> > temp_A;
111 template<
typename NumericT>
115 std::vector< std::map<unsigned int, NumericT> > temp_A;
121 template<
typename NumericT>
125 std::vector< std::map<unsigned int, NumericT> > temp_A;
131 template<
typename NumericT>
135 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.
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...