ViennaCL - The Vienna Computing Library  1.7.0
Free open-source GPU-accelerated linear algebra and solver library.
coordinate_matrix.hpp File Reference

Implementation of the coordinate_matrix class. More...

#include <map>
#include <vector>
#include <list>
#include "viennacl/forwards.h"
#include "viennacl/vector.hpp"
#include "viennacl/linalg/sparse_matrix_operations.hpp"

Go to the source code of this file.

Classes

class  viennacl::coordinate_matrix< NumericT, AlignmentV >
 A sparse square matrix, where entries are stored as triplets (i,j, val), where i and j are the row and column indices and val denotes the entry. More...
 

Namespaces

 viennacl
 Main namespace in ViennaCL. Holds all the basic types such as vector, matrix, etc. and defines operations upon them.
 

Functions

template<typename CPUMatrixT , typename NumericT , unsigned int AlignmentV>
void viennacl::copy (const CPUMatrixT &cpu_matrix, coordinate_matrix< NumericT, AlignmentV > &gpu_matrix)
 Copies a sparse matrix from the host to the OpenCL device (either GPU or multi-core CPU) More...
 
template<typename NumericT , unsigned int AlignmentV>
void viennacl::copy (const std::vector< std::map< unsigned int, NumericT > > &cpu_matrix, coordinate_matrix< NumericT, AlignmentV > &gpu_matrix)
 Copies a sparse matrix in the std::vector< std::map < > > format to an OpenCL device. More...
 
template<typename CPUMatrixT , typename NumericT , unsigned int AlignmentV>
void viennacl::copy (const coordinate_matrix< NumericT, AlignmentV > &gpu_matrix, CPUMatrixT &cpu_matrix)
 Copies a sparse matrix from the OpenCL device (either GPU or multi-core CPU) to the host. More...
 
template<typename NumericT , unsigned int AlignmentV>
void viennacl::copy (const coordinate_matrix< NumericT, AlignmentV > &gpu_matrix, std::vector< std::map< unsigned int, NumericT > > &cpu_matrix)
 Copies a sparse matrix from an OpenCL device to the host. The host type is the std::vector< std::map < > > format . More...
 

Detailed Description

Implementation of the coordinate_matrix class.

Definition in file coordinate_matrix.hpp.