AbstractLinAlgPack_SparseVectorClassDecl.hpp File Reference

#include <assert.h>
#include <vector>
#include <sstream>
#include "AbstractLinAlgPack_SpVecIndexLookupClass.hpp"

Include dependency graph for AbstractLinAlgPack_SparseVectorClassDecl.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  AbstractLinAlgPack
namespace  AbstractLinAlgPack::SparseVectorUtilityPack

Classes

class  AbstractLinAlgPack::SparseVectorUtilityPack::DoesNotExistException
  More...
class  AbstractLinAlgPack::SparseVectorUtilityPack::NotSortedException
  More...
class  AbstractLinAlgPack::SparseVectorUtilityPack::DuplicateIndexesException
  More...
class  AbstractLinAlgPack::SparseVectorUtilityPack::OutOfRoomException
  More...
class  AbstractLinAlgPack::SparseVectorUtilityPack::UnsizedException
  More...
class  AbstractLinAlgPack::SparseVectorUtilityPack::NoNonZeroElementsException
  More...
class  AbstractLinAlgPack::SparseVector< T_Element, T_Alloc >
 Sparse Vector class template. More...
class  AbstractLinAlgPack::SparseVectorSlice< T_Element >
 Sparse Vector Slice class template. More...

Nonmember untility functions

template<class T_Element>
SparseVectorSlice< T_Element > create_slice (const SparseVectorUtilityPack::SpVecIndexLookup< T_Element > &index_lookup, size_type size, Range1D rng)
 Return a sparse vector slice.

Functions

void assert_is_sorted (bool is_sorted)
template<class T_Element>
const T_Element * lookup_element (const SpVecIndexLookup< T_Element > &index_lookup, typename SpVecIndexLookup< T_Element >::index_type index, bool is_sorted)
 Lookup an element.


Function Documentation

void AbstractLinAlgPack::SparseVectorUtilityPack::assert_is_sorted bool  is_sorted  ) 
 

Definition at line 31 of file abstract/interfaces/AbstractLinAlgPack_SparseVectorClass.cpp.

template<class T_Element>
SparseVectorSlice< T_Element > AbstractLinAlgPack::create_slice const SparseVectorUtilityPack::SpVecIndexLookup< T_Element > &  index_lookup,
size_type  size,
Range1D  rng
 

Return a sparse vector slice.

Preconditions:

  • index_lookup.validate_state() is called
  • [rng.full_range() != true] rng.ubound() <= size (throw #std::out_of_range#)

Postconditions:

  • Fill them in latter

Definition at line 47 of file AbstractLinAlgPack_SparseVectorClassDef.hpp.

template<class T_Element>
const T_Element* lookup_element const SpVecIndexLookup< T_Element > &  index_lookup,
typename SpVecIndexLookup< T_Element >::index_type  index,
bool  is_sorted
[inline]
 

Lookup an element.

If the element does not exist, then NULL will be returned.

Definition at line 808 of file AbstractLinAlgPack_SparseVectorClassDecl.hpp.


Generated on Thu Sep 18 12:35:29 2008 for MOOCHO (Single Doxygen Collection) by doxygen 1.3.9.1