ViennaCL - The Vienna Computing Library  1.5.0
Public Types | Public Member Functions | Friends
hyb_matrix< SCALARTYPE, ALIGNMENT > Class Template Reference

Sparse matrix class using a hybrid format composed of the ELL and CSR format for storing the nonzeros. More...

#include <hyb_matrix.hpp>

Public Types

typedef
viennacl::backend::mem_handle 
handle_type
typedef scalar< typename
viennacl::tools::CHECK_SCALAR_TEMPLATE_ARGUMENT
< SCALARTYPE >::ResultType > 
value_type

Public Member Functions

 hyb_matrix ()
 hyb_matrix (viennacl::context ctx)
SCALARTYPE csr_threshold () const
void csr_threshold (SCALARTYPE thr)
vcl_size_t internal_size1 () const
vcl_size_t internal_size2 () const
vcl_size_t size1 () const
vcl_size_t size2 () const
vcl_size_t internal_ellnnz () const
vcl_size_t ell_nnz () const
vcl_size_t csr_nnz () const
const handle_typehandle () const
const handle_typehandle2 () const
const handle_typehandle3 () const
const handle_typehandle4 () const
const handle_typehandle5 () const

Friends

template<typename CPU_MATRIX , typename T , unsigned int ALIGN>
void copy (const CPU_MATRIX &cpu_matrix, hyb_matrix< T, ALIGN > &gpu_matrix)

Detailed Description

template<typename SCALARTYPE, unsigned int ALIGNMENT>
class viennacl::hyb_matrix< SCALARTYPE, ALIGNMENT >

Sparse matrix class using a hybrid format composed of the ELL and CSR format for storing the nonzeros.


Member Typedef Documentation

typedef scalar<typename viennacl::tools::CHECK_SCALAR_TEMPLATE_ARGUMENT<SCALARTYPE>::ResultType> value_type

Constructor & Destructor Documentation

hyb_matrix ( ) [inline]
hyb_matrix ( viennacl::context  ctx) [inline]

Member Function Documentation

vcl_size_t csr_nnz ( ) const [inline]
SCALARTYPE csr_threshold ( ) const [inline]
void csr_threshold ( SCALARTYPE  thr) [inline]
vcl_size_t ell_nnz ( ) const [inline]
const handle_type& handle ( ) const [inline]
const handle_type& handle2 ( ) const [inline]
const handle_type& handle3 ( ) const [inline]
const handle_type& handle4 ( ) const [inline]
const handle_type& handle5 ( ) const [inline]
vcl_size_t internal_ellnnz ( ) const [inline]
vcl_size_t internal_size1 ( ) const [inline]
vcl_size_t internal_size2 ( ) const [inline]
vcl_size_t size1 ( ) const [inline]
vcl_size_t size2 ( ) const [inline]

Friends And Related Function Documentation

void copy ( const CPU_MATRIX &  cpu_matrix,
hyb_matrix< T, ALIGN > &  gpu_matrix 
) [friend]

The documentation for this class was generated from the following file: