|
| MapVector () |
| constructor
|
|
| MapVector (size_t _length) |
| constructor with length
|
|
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
|
|
SmartPtr< vector_type > | clone_without_values () const |
| clones the vector (deep-copy) excluding values
|
|
void | create (const Vector &v) |
| create as a copy of other vector
|
|
void | create (size_t size) |
| create a vector with specific size
|
|
size_t | defragment () |
|
double | dotprod (const Vector &w) |
| returns v.T w, that is the dotprod of this vector and w
|
|
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)
|
|
double | norm () const |
| return sqrt(sum values[i]^2) (euclidian norm)
|
|
void | operator*= (const number &a) |
|
void | operator+= (const Vector &v) |
|
void | operator-= (const Vector &v) |
|
void | operator= (const Vector &v) |
| assign other vector v
|
|
double | operator= (double d) |
| assign double d to whole Vector
|
|
value_type & | operator[] (size_t i) |
| access element i of the vector
|
|
const value_type & | operator[] (size_t i) const |
|
void | p () |
| gdb shortcut for print
|
|
void | print (const char *const text=NULL) const |
| print vector to console
|
|
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)
|
|
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
|
|
void | set_random (double from, double to) |
|
size_t | size () const |
|
| Vector () |
| constructor
|
|
| Vector (const vector_type &v) |
|
| Vector (size_t size) |
| constructor with size
|
|
virtual | ~Vector () |
| virtual destructor
|
|