|
| MapVector () |
| constructor More...
|
|
| MapVector (size_t _length) |
| constructor with length More...
|
|
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_type > | clone () const |
| clones the vector (deep-copy) including values More...
|
|
SmartPtr< vector_type > | clone_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_type & | operator[] (size_t i) |
| access element i of the vector More...
|
|
const value_type & | operator[] (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...
|
|