ug4
ug::MapVector< TValueType > Class Template Reference

#include <mapvector.h>

+ Inheritance diagram for ug::MapVector< TValueType >:

Public Types

typedef TValueType value_type
 
typedef MapVector< TValueType > vector_type
 
- Public Types inherited from ug::Vector< TValueType >
typedef TValueType value_type
 
typedef Vector< TValueType > vector_type
 

Public Member Functions

 MapVector ()
 constructor More...
 
 MapVector (size_t _length)
 constructor with length More...
 
- Public Member Functions inherited from ug::Vector< TValueType >
template<typename V >
void add (const V &u)
 
void add (const value_type *u, const size_t *indices, size_t nr)
 
size_t capacity () const
 
SmartPtr< vector_typeclone () const
 clones the vector (deep-copy) including values More...
 
SmartPtr< vector_typeclone_without_values () const
 clones the vector (deep-copy) excluding values More...
 
void create (const Vector &v)
 create as a copy of other vector More...
 
void create (size_t size)
 create a vector with specific size More...
 
size_t defragment ()
 
double dotprod (const Vector &w)
 returns v.T w, that is the dotprod of this vector and w More...
 
template<typename V >
void get (V &u) const
 
void get (value_type *u, const size_t *indices, size_t nr) const
 
double maxnorm () const
 return max values[i] (max norm) More...
 
double norm () const
 return sqrt(sum values[i]^2) (euclidian norm) More...
 
void operator*= (const number &a)
 
void operator+= (const Vector &v)
 
void operator-= (const Vector &v)
 
void operator= (const Vector &v)
 assign other vector v More...
 
double operator= (double d)
 assign double d to whole Vector More...
 
value_typeoperator[] (size_t i)
 access element i of the vector More...
 
const value_typeoperator[] (size_t i) const
 
void p ()
 gdb shortcut for print More...
 
void print (const char *const text=NULL) const
 print vector to console More...
 
void reserve (size_t newCapacity, bool bCopyValues=true)
 
void reserve_exactly (size_t newCapacity, bool bCopyValues)
 
void reserve_sloppy (size_t newCapacity, bool bCopyValues=true)
 
void resize (size_t newSize, bool bCopyValues=true)
 
void resize_exactly (size_t newSize, bool bCopyValues=true)
 resize the vector to be EXACTLY newSize big (no overhead) More...
 
void resize_sloppy (size_t newSize, bool bCopyValues=true)
 
template<typename V >
void set (const V &u)
 
void set (const value_type *u, const size_t *indices, size_t nr)
 
void set (double d)
 assign double d to whole Vector More...
 
void set_random (double from, double to)
 
size_t size () const
 
 Vector ()
 constructor More...
 
 Vector (const vector_type &v)
 
 Vector (size_t size)
 constructor with size More...
 
virtual ~Vector ()
 virtual destructor More...
 

Additional Inherited Members

- Protected Member Functions inherited from ug::Vector< TValueType >
virtual vector_typevirtual_clone () const
 virtual clone using covariant return type More...
 
virtual vector_typevirtual_clone_without_values () const
 virtual clone using covariant return type excluding values More...
 

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