Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
TNT::Fortran_Sparse_Vector< T > Class Template Reference

#include <Base/Math/tnt/fspvec.h>

+ Collaboration diagram for TNT::Fortran_Sparse_Vector< T >:

Public Types

typedef const T * const_iterator
 
typedef const T & const_reference
 
typedef T element_type
 
typedef T * iterator
 
typedef T * pointer
 
typedef T & reference
 
typedef Subscript size_type
 
typedef T value_type
 

Public Member Functions

Subscript dim () const
 
 Fortran_Sparse_Vector ()
 
 Fortran_Sparse_Vector (Subscript N, Subscript nz)
 
 Fortran_Sparse_Vector (Subscript N, Subscript nz, const T *values, const Subscript *indices)
 
 Fortran_Sparse_Vector (const Fortran_Sparse_Vector< T > &S)
 
 Fortran_Sparse_Vector (Subscript N, Subscript nz, char *v, char *ind)
 
Subscriptindex (Subscript i)
 
const Subscriptindex (Subscript i) const
 
Subscript lbound () const
 
Fortran_Sparse_Vector< T > & newsize (Subscript N, Subscript nz)
 
Subscript num_nonzeros () const
 
Fortran_Sparse_Vector< T > & operator= (const Fortran_Sparse_Vector< T > &A)
 
T & val (Subscript i)
 
const T & val (Subscript i) const
 

Protected Attributes

Subscript dim_
 
Vector< Subscriptindex_
 
Vector< T > val_
 

Detailed Description

template<class T>
class TNT::Fortran_Sparse_Vector< T >

Definition at line 52 of file fspvec.h.

Member Typedef Documentation

template<class T>
typedef const T* TNT::Fortran_Sparse_Vector< T >::const_iterator

Definition at line 64 of file fspvec.h.

template<class T>
typedef const T& TNT::Fortran_Sparse_Vector< T >::const_reference

Definition at line 65 of file fspvec.h.

template<class T>
typedef T TNT::Fortran_Sparse_Vector< T >::element_type

Definition at line 60 of file fspvec.h.

template<class T>
typedef T* TNT::Fortran_Sparse_Vector< T >::iterator

Definition at line 62 of file fspvec.h.

template<class T>
typedef T* TNT::Fortran_Sparse_Vector< T >::pointer

Definition at line 61 of file fspvec.h.

template<class T>
typedef T& TNT::Fortran_Sparse_Vector< T >::reference

Definition at line 63 of file fspvec.h.

template<class T>
typedef Subscript TNT::Fortran_Sparse_Vector< T >::size_type

Definition at line 58 of file fspvec.h.

template<class T>
typedef T TNT::Fortran_Sparse_Vector< T >::value_type

Definition at line 59 of file fspvec.h.

Constructor & Destructor Documentation

template<class T>
TNT::Fortran_Sparse_Vector< T >::Fortran_Sparse_Vector ( )
inline

Definition at line 92 of file fspvec.h.

template<class T>
TNT::Fortran_Sparse_Vector< T >::Fortran_Sparse_Vector ( Subscript  N,
Subscript  nz 
)
inline

Definition at line 93 of file fspvec.h.

template<class T>
TNT::Fortran_Sparse_Vector< T >::Fortran_Sparse_Vector ( Subscript  N,
Subscript  nz,
const T *  values,
const Subscript indices 
)
inline

Definition at line 95 of file fspvec.h.

template<class T>
TNT::Fortran_Sparse_Vector< T >::Fortran_Sparse_Vector ( const Fortran_Sparse_Vector< T > &  S)
inline

Definition at line 99 of file fspvec.h.

template<class T>
TNT::Fortran_Sparse_Vector< T >::Fortran_Sparse_Vector ( Subscript  N,
Subscript  nz,
char *  v,
char *  ind 
)
inline

Definition at line 106 of file fspvec.h.

Member Function Documentation

template<class T>
Subscript TNT::Fortran_Sparse_Vector< T >::dim ( ) const
inline

Definition at line 79 of file fspvec.h.

References TNT::Fortran_Sparse_Vector< T >::dim_.

template<class T>
Subscript& TNT::Fortran_Sparse_Vector< T >::index ( Subscript  i)
inline

Definition at line 87 of file fspvec.h.

References TNT::Fortran_Sparse_Vector< T >::index_.

Referenced by TNT::operator>>().

template<class T>
const Subscript& TNT::Fortran_Sparse_Vector< T >::index ( Subscript  i) const
inline

Definition at line 88 of file fspvec.h.

References TNT::Fortran_Sparse_Vector< T >::index_.

template<class T>
Subscript TNT::Fortran_Sparse_Vector< T >::lbound ( ) const
inline

Definition at line 67 of file fspvec.h.

template<class T>
Fortran_Sparse_Vector<T>& TNT::Fortran_Sparse_Vector< T >::newsize ( Subscript  N,
Subscript  nz 
)
inline
template<class T>
Subscript TNT::Fortran_Sparse_Vector< T >::num_nonzeros ( ) const
inline

Definition at line 80 of file fspvec.h.

References TNT::Fortran_Sparse_Vector< T >::val_.

template<class T>
Fortran_Sparse_Vector<T>& TNT::Fortran_Sparse_Vector< T >::operator= ( const Fortran_Sparse_Vector< T > &  A)
inline
template<class T>
T& TNT::Fortran_Sparse_Vector< T >::val ( Subscript  i)
inline

Definition at line 84 of file fspvec.h.

References TNT::Fortran_Sparse_Vector< T >::val_.

Referenced by TNT::operator>>().

template<class T>
const T& TNT::Fortran_Sparse_Vector< T >::val ( Subscript  i) const
inline

Definition at line 85 of file fspvec.h.

References TNT::Fortran_Sparse_Vector< T >::val_.

Member Data Documentation

template<class T>
Subscript TNT::Fortran_Sparse_Vector< T >::dim_
protected
template<class T>
Vector<Subscript> TNT::Fortran_Sparse_Vector< T >::index_
protected
template<class T>
Vector<T> TNT::Fortran_Sparse_Vector< T >::val_
protected

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