MOOCHO (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Private Attributes | List of all members
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>

Private Attributes

value_typepvalue_
 
index_type row_i_
 
index_type col_j_
 

Public Typedefs.

typedef T_Value value_type
 
typedef T_Index index_type
 

Constructors

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

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. More...
 
void change_value_ptr (value_type *pvalue)
 Change the element pointer. More...
 

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 59 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 65 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 67 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 75 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 79 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 84 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 96 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 101 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 106 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 111 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 116 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 122 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 129 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 130 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 130 of file AbstractLinAlgPack_SparseCOOPtrElement.hpp.


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