#include <numvector.h>
Inheritance diagram for MODEL::NumVector:
Public Types | |
typedef NT::number | number |
typedef NT::number | numT |
typedef NT::vect | vect |
typedef std::vector<number> | base |
Public Methods | |
NumVector (const numT &init=0.) | |
virtual | ~NumVector () |
NumVector (const numT Tarray[]) | |
NumVector* | clone (void) |
NumVector (const NumVector &vcopy) | |
const NumVector& | operator= (const NumVector &vassign) |
const numT& | operator[] (integer i) const |
numT& | operator[] (integer i) |
NumVector& | operator+= (const NumVector &nvplus) |
NumVector& | operator-= (const NumVector &nvmin) |
NumVector& | operator/= (const numT &nvdiv) |
NumVector& | operator *= (const numT &nvmul) |
Friends | |
NumVector | operator * (const numT &nvmul, const NumVector &nv) |
NumVector | operator/ (const NumVector &nvmul, const numT &nv) |
NumVector | operator+ (const NumVector &nvmul, const NumVector &nv) |
NumVector | operator- (const NumVector &nvmul, const NumVector &nv) |
numT | norm (const NumVector &nv) |
numT | length (const NumVector &nv) |
NumVector | operator- (const NumVector &m) |
Definition at line 33 of file numvector.h.
|
Constuctor automatically resize for speed gain Definition at line 42 of file numvector.h. Referenced by clone().
|
|
Constructor to copy everything from an array resize has to be called, otherwise the objects[] do not exist ! Definition at line 49 of file numvector.h. |
|
Copy constructor calls to class Definition at line 57 of file numvector.h. |
|
"virtual" copy constructor Definition at line 54 of file numvector.h. |
|
Assignment operator calls top class Definition at line 60 of file numvector.h. |
|
Overloaded accessor to catch errors (bound checking) Definition at line 74 of file numvector.h. |
|
Overloaded accessor to catch errors (bound checking) Definition at line 64 of file numvector.h. |
|
Slightly more effort: the length. |
|
Computes the norm of a vector. |
More Info? Michael Peeters. Also, check our research website: www.alna.vub.ac.be
Last update: June 2002.