Implementation of the compressed_matrix class. More...
#include <vector>#include <list>#include <map>#include "viennacl/forwards.h"#include "viennacl/ocl/backend.hpp"#include "viennacl/vector.hpp"#include "viennacl/linalg/compressed_matrix_operations.hpp"#include "viennacl/tools/tools.hpp"Go to the source code of this file.
Data Structures | |
| class | compressed_matrix< SCALARTYPE, ALIGNMENT > |
| A sparse square matrix in compressed sparse rows format. More... | |
Namespaces | |
| namespace | viennacl |
Functions | |
| template<typename CPU_MATRIX , typename SCALARTYPE , unsigned int ALIGNMENT> | |
| void | copy (const CPU_MATRIX &cpu_matrix, compressed_matrix< SCALARTYPE, ALIGNMENT > &gpu_matrix) |
| Copies a sparse matrix from the host to the OpenCL device (either GPU or multi-core CPU). | |
| template<typename SCALARTYPE , unsigned int ALIGNMENT> | |
| void | copy (const std::vector< std::map< unsigned int, SCALARTYPE > > &cpu_matrix, compressed_matrix< SCALARTYPE, ALIGNMENT > &gpu_matrix) |
| Copies a sparse matrix in the std::vector< std::map < > > format to an OpenCL device. | |
| template<typename CPU_MATRIX , typename SCALARTYPE , unsigned int ALIGNMENT> | |
| void | copy (const compressed_matrix< SCALARTYPE, ALIGNMENT > &gpu_matrix, CPU_MATRIX &cpu_matrix) |
| Copies a sparse matrix from the OpenCL device (either GPU or multi-core CPU) to the host. | |
| template<typename SCALARTYPE , unsigned int ALIGNMENT> | |
| void | copy (const compressed_matrix< SCALARTYPE, ALIGNMENT > &gpu_matrix, std::vector< std::map< unsigned int, SCALARTYPE > > &cpu_matrix) |
| Copies a sparse matrix from an OpenCL device to the host. The host type is the std::vector< std::map < > > format . | |
Implementation of the compressed_matrix class.
1.7.1