class vect |
Class for manipulating vector of real numbers
| vect () Constructor. | |
| vect (int n, double val = 0.0) Constructor. | |
| vect (double* array, int n) Constructor. | |
| vect (const vect&) Copy Constructor | |
| ~vect () Destructor | |
| operator= (const vect&) Overloading assignment operator | |
| dim () const Returns the dimension of the vector. | |
| operator[] (int i) Index overloading. | |
| operator[] (int) const Index overloading. | |
| sqr_length () const Returns the square of the Euclidean length of the vector. | |
| length () const Returns the Euclidean length of the vector. | |
| norm () const Returns the vector normalized. | |
| operator+= (const vect&) Overloading += operator | |
| operator-= (const vect&) Overloading -= operator | |
| operator+ (const vect& v1) const Overloading addition | |
| operator- (const vect& v1) const Overloading subtraction | |
| operator* (const vect& v1) const Overloading Scalar multiplication | |
| operator* (double r) const Componentwise multiplication | |
| operator- () const Unary minus | |
| operator/ (double) const Componentwise division | |
| operator== (const vect& w) const Boolean equality test | |
| operator!= (const vect& w) const Boolean inequality test | |
| print (ostream& O) Prints the vector componentwise to ostream | |
| print () Prints the vector componentwise to cout | |
| read (istream& I) Reads numbers from an istream Reads d = vdim() numbers from input stream I and writes them into v[0] . | |
| read () Reads numbers from cin |
Class for manipulating vector of real numbers
Alphabetic index HTML hierarchy of classes or Java