AbstractLinAlgPack::SparseCOOPtrElement< T_Index, T_Value > Class Template Reference

Sparse pointer element type for a COO matrix (val, ivect, jvect). More...

#include <AbstractLinAlgPack_SparseCOOPtrElement.hpp>

List of all members.

Public Typedefs.

typedef T_Value value_type
 
typedef T_Index index_type
 

Constructors

 SparseCOOPtrElement ()
 Construct uninitialized (poiner to value set to zero) (index() == 0#).
 SparseCOOPtrElement (value_type *pvalue, index_type row_i, index_type col_j)
 Construct with a pointer to the value and index set.
void initialize (value_type *pvalue, index_type row_i, index_type col_j)
 Initialize.

Value and index access

value_typevalue ()
 
value_type value () const
 
index_type row_i () const
 
index_type col_j () const
 
void change_indexes (index_type row_i, index_type col_j)
 Change the indexs.
void change_value_ptr (value_type *pvalue)
 Change the element pointer.

Private Attributes

value_typepvalue_
index_type row_i_
index_type col_j_


Detailed Description

template<class T_Index, class T_Value>
class AbstractLinAlgPack::SparseCOOPtrElement< T_Index, T_Value >

Sparse pointer element type for a COO matrix (val, ivect, jvect).

This class abstracts a sparse element of a templated type from a coordinate matrix. It has a pointer to the value of the element.

The default assignment operator and copy constructor are allowed.

Definition at line 46 of file AbstractLinAlgPack_SparseCOOPtrElement.hpp.


Member Typedef Documentation

template<class T_Index, class T_Value>
typedef T_Value AbstractLinAlgPack::SparseCOOPtrElement< T_Index, T_Value >::value_type

Definition at line 52 of file AbstractLinAlgPack_SparseCOOPtrElement.hpp.

template<class T_Index, class T_Value>
typedef T_Index AbstractLinAlgPack::SparseCOOPtrElement< T_Index, T_Value >::index_type

Definition at line 54 of file AbstractLinAlgPack_SparseCOOPtrElement.hpp.


Constructor & Destructor Documentation

template<class T_Index, class T_Value>
AbstractLinAlgPack::SparseCOOPtrElement< T_Index, T_Value >::SparseCOOPtrElement (  )  [inline]

Construct uninitialized (poiner to value set to zero) (index() == 0#).

Definition at line 62 of file AbstractLinAlgPack_SparseCOOPtrElement.hpp.

template<class T_Index, class T_Value>
AbstractLinAlgPack::SparseCOOPtrElement< T_Index, T_Value >::SparseCOOPtrElement ( value_type pvalue,
index_type  row_i,
index_type  col_j 
) [inline]

Construct with a pointer to the value and index set.

Definition at line 66 of file AbstractLinAlgPack_SparseCOOPtrElement.hpp.


Member Function Documentation

template<class T_Index, class T_Value>
void AbstractLinAlgPack::SparseCOOPtrElement< T_Index, T_Value >::initialize ( value_type pvalue,
index_type  row_i,
index_type  col_j 
) [inline]

Initialize.

Definition at line 71 of file AbstractLinAlgPack_SparseCOOPtrElement.hpp.

template<class T_Index, class T_Value>
value_type& AbstractLinAlgPack::SparseCOOPtrElement< T_Index, T_Value >::value (  )  [inline]

Definition at line 83 of file AbstractLinAlgPack_SparseCOOPtrElement.hpp.

template<class T_Index, class T_Value>
value_type AbstractLinAlgPack::SparseCOOPtrElement< T_Index, T_Value >::value (  )  const [inline]

Definition at line 88 of file AbstractLinAlgPack_SparseCOOPtrElement.hpp.

template<class T_Index, class T_Value>
index_type AbstractLinAlgPack::SparseCOOPtrElement< T_Index, T_Value >::row_i (  )  const [inline]

Definition at line 93 of file AbstractLinAlgPack_SparseCOOPtrElement.hpp.

template<class T_Index, class T_Value>
index_type AbstractLinAlgPack::SparseCOOPtrElement< T_Index, T_Value >::col_j (  )  const [inline]

Definition at line 98 of file AbstractLinAlgPack_SparseCOOPtrElement.hpp.

template<class T_Index, class T_Value>
void AbstractLinAlgPack::SparseCOOPtrElement< T_Index, T_Value >::change_indexes ( index_type  row_i,
index_type  col_j 
) [inline]

Change the indexs.

Definition at line 103 of file AbstractLinAlgPack_SparseCOOPtrElement.hpp.

template<class T_Index, class T_Value>
void AbstractLinAlgPack::SparseCOOPtrElement< T_Index, T_Value >::change_value_ptr ( value_type pvalue  )  [inline]

Change the element pointer.

Definition at line 109 of file AbstractLinAlgPack_SparseCOOPtrElement.hpp.


Member Data Documentation

template<class T_Index, class T_Value>
value_type* AbstractLinAlgPack::SparseCOOPtrElement< T_Index, T_Value >::pvalue_ [private]

Definition at line 116 of file AbstractLinAlgPack_SparseCOOPtrElement.hpp.

template<class T_Index, class T_Value>
index_type AbstractLinAlgPack::SparseCOOPtrElement< T_Index, T_Value >::row_i_ [private]

Definition at line 117 of file AbstractLinAlgPack_SparseCOOPtrElement.hpp.

template<class T_Index, class T_Value>
index_type AbstractLinAlgPack::SparseCOOPtrElement< T_Index, T_Value >::col_j_ [private]

Definition at line 117 of file AbstractLinAlgPack_SparseCOOPtrElement.hpp.


The documentation for this class was generated from the following file:
Generated on Wed May 12 21:57:05 2010 for MOOCHO (Single Doxygen Collection) by  doxygen 1.4.7