ViennaCL - The Vienna Computing Library  1.7.0
Free open-source GPU-accelerated linear algebra and solver library.
viennacl::matrix_iterator< ROWCOL, MatrixT > Class Template Reference

A dense matrix class. More...

#include <forwards.h>

Public Types

typedef MatrixT::value_type value_type
 

Public Member Functions

 matrix_iterator (MatrixT &mat, vcl_size_t start_row, vcl_size_t start_col)
 
value_type operator* (void)
 
self_typeoperator++ (void)
 
self_type operator++ (int)
 
bool operator== (self_type const &other)
 
bool operator!= (self_type const &other)
 
vcl_size_t index1 ()
 
vcl_size_t index2 ()
 
MatrixT & operator() (void) const
 

Detailed Description

template<typename ROWCOL, typename MatrixT>
class viennacl::matrix_iterator< ROWCOL, MatrixT >

A dense matrix class.

uBLAS-like iterator class for iterating over the entries of a dense matrix.

Template Parameters
SCALARTYPEThe underlying scalar type (either float or double)
ALIGNMENTThe internal memory size is given by (size()/ALIGNMENT + 1) * ALIGNMENT. ALIGNMENT must be a power of two. Best values or usually 4, 8 or 16, higher values are usually a waste of memory.

Definition at line 369 of file forwards.h.

Member Typedef Documentation

template<typename ROWCOL , typename MatrixT >
typedef MatrixT::value_type viennacl::matrix_iterator< ROWCOL, MatrixT >::value_type

Definition at line 96 of file matrix.hpp.

Constructor & Destructor Documentation

template<typename ROWCOL , typename MatrixT >
viennacl::matrix_iterator< ROWCOL, MatrixT >::matrix_iterator ( MatrixT &  mat,
vcl_size_t  start_row,
vcl_size_t  start_col 
)
inline

Definition at line 98 of file matrix.hpp.

Member Function Documentation

template<typename ROWCOL , typename MatrixT >
vcl_size_t viennacl::matrix_iterator< ROWCOL, MatrixT >::index1 ( )
inline

Definition at line 109 of file matrix.hpp.

template<typename ROWCOL , typename MatrixT >
vcl_size_t viennacl::matrix_iterator< ROWCOL, MatrixT >::index2 ( )
inline

Definition at line 110 of file matrix.hpp.

template<typename ROWCOL , typename MatrixT >
bool viennacl::matrix_iterator< ROWCOL, MatrixT >::operator!= ( self_type const &  other)
inline

Definition at line 107 of file matrix.hpp.

template<typename ROWCOL , typename MatrixT >
MatrixT& viennacl::matrix_iterator< ROWCOL, MatrixT >::operator() ( void  ) const
inline

Definition at line 112 of file matrix.hpp.

template<typename ROWCOL , typename MatrixT >
value_type viennacl::matrix_iterator< ROWCOL, MatrixT >::operator* ( void  )
inline

Definition at line 102 of file matrix.hpp.

template<typename ROWCOL , typename MatrixT >
self_type& viennacl::matrix_iterator< ROWCOL, MatrixT >::operator++ ( void  )
inline

Definition at line 103 of file matrix.hpp.

template<typename ROWCOL , typename MatrixT >
self_type viennacl::matrix_iterator< ROWCOL, MatrixT >::operator++ ( int  )
inline

Definition at line 104 of file matrix.hpp.

template<typename ROWCOL , typename MatrixT >
bool viennacl::matrix_iterator< ROWCOL, MatrixT >::operator== ( self_type const &  other)
inline

Definition at line 106 of file matrix.hpp.


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