Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

Sparse_Vector Class Template Reference
[linbox/vector]

#include <sparse.h>


Detailed Description

template<class T, class I = unsigned long>
class LinBox::Sparse_Vector< T, I >

vector< Pair<T> > and actualsize


Public Types

typedef Pair< T, I > Element
typedef T Type_t
typedef Sparse_Vector< T, I > Self_t
typedef VectorCategories::SparseSequenceVectorTag VectorCategory

Public Member Functions

 Sparse_Vector ()
 Sparse_Vector (size_t n)
 Sparse_Vector (size_t n, size_t rn)
 ~Sparse_Vector ()
size_t actualsize () const
 Actual dimension of the vector, 0 for infinite or unknown.

size_t reactualsize (const size_t s)
template<class XX> size_t reactualsize (const XX s)

Friends

std::ostream & operator<< (std::ostream &o, const Sparse_Vector< T, I > v)


Member Typedef Documentation

typedef Pair<T, I> Element
 

typedef T Type_t
 

typedef Sparse_Vector<T, I> Self_t
 

typedef VectorCategories::SparseSequenceVectorTag VectorCategory
 


Constructor & Destructor Documentation

Sparse_Vector  )  [inline]
 

Sparse_Vector size_t  n  )  [inline]
 

Sparse_Vector size_t  n,
size_t  rn
[inline]
 

~Sparse_Vector  )  [inline]
 


Member Function Documentation

size_t actualsize  )  const [inline]
 

Actual dimension of the vector, 0 for infinite or unknown.

size_t reactualsize const size_t  s  )  [inline]
 

size_t reactualsize const XX  s  )  [inline]
 


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  o,
const Sparse_Vector< T, I >  v
[friend]
 


Generated on Fri Jul 8 10:29:57 2005 for linbox by doxygen 1.3.7