#include <Vector_n.h>
Collaboration diagram for Vector_n< T, N >:

Public Member Functions | |
| Vector_n () | |
| Standard constructor.   | |
| Vector_n (const T *v) | |
| Constructor that initializes the vector with the values in the passed array.   | |
| Vector_n (const Vector_n< T, N > &v) | |
| Copy constructor.   | |
| ~Vector_n () | |
| Destructor.   | |
| Vector_n< T, N > & | operator= (const Vector_n< T, N > &v) | 
| Copy operator.   | |
| Vector_n< T, N > & | operator= (const T *v) | 
| Copy operator.   | |
| void | copyTo (T *v) const | 
| Copies contents of vector to passed array.   | |
| const T & | operator[] (size_t i) const | 
| Constant element access operator.   | |
| T & | operator[] (size_t i) | 
| Element access operator.   | |
| Vector_n< T, N > & | operator+= (const Vector_n< T, N > &v) | 
| Operator +=.   | |
| Vector_n< T, N > & | operator-= (const Vector_n< T, N > &v) | 
| Operator -=.   | |
| Vector_n< T, N > & | operator *= (const T &s) | 
| Operator *=.   | |
| Vector_n< T, N > & | operator/= (const T &s) | 
| Operator /=.   | |
| T | length () | 
| Get length of vector.   | |
Private Attributes | |
| T | content [N] | 
| The array holding the contents of the vector.   | |
Vector_n represents a n-dimensional vector of type T. The class supplies standard arithmetic operations.
Definition at line 30 of file Vector_n.h.
      
  | 
  |||||||||
| 
 Standard constructor. Initializes the vector with values supplied by the standard constructor of T. Complexity: n Definition at line 42 of file Vector_n.h.  | 
  
      
  | 
  ||||||||||
| 
 Constructor that initializes the vector with the values in the passed array. 
 
 Definition at line 59 of file Vector_n.h.  | 
  
      
  | 
  ||||||||||
| 
 Copy constructor. 
 
 Definition at line 75 of file Vector_n.h.  | 
  
      
  | 
  |||||||||
| 
 Destructor. Complexity: n Definition at line 89 of file Vector_n.h.  | 
  
      
  | 
  ||||||||||
| 
 Copy operator. 
 
 Definition at line 102 of file Vector_n.h.  | 
  
      
  | 
  ||||||||||
| 
 Copy operator. 
 
 Definition at line 115 of file Vector_n.h.  | 
  
      
  | 
  ||||||||||
| 
 Copies contents of vector to passed array. 
 
 Definition at line 128 of file Vector_n.h. Referenced by Matrix_nxn< double, 2 >::copyTo().  | 
  
      
  | 
  ||||||||||
| 
 Constant element access operator. 
 
 
 Definition at line 142 of file Vector_n.h.  | 
  
      
  | 
  ||||||||||
| 
 Element access operator. 
 
 
 Definition at line 154 of file Vector_n.h.  | 
  
      
  | 
  ||||||||||
| 
 Operator +=. 
 
 Definition at line 165 of file Vector_n.h.  | 
  
      
  | 
  ||||||||||
| 
 Operator -=. 
 
 Definition at line 178 of file Vector_n.h.  | 
  
      
  | 
  ||||||||||
| 
 Operator *=. 
 
 Definition at line 191 of file Vector_n.h.  | 
  
      
  | 
  ||||||||||
| 
 Operator /=. 
 
 Definition at line 213 of file Vector_n.h.  | 
  
      
  | 
  |||||||||
| 
 Get length of vector. 
 
 Definition at line 243 of file Vector_n.h.  | 
  
      
  | 
  |||||
| 
 The array holding the contents of the vector. 
 Definition at line 257 of file Vector_n.h. Referenced by Vector_n< double, 2 >::operator+=(), Vector_n< double, 2 >::operator-=(), and Vector_n< double, 2 >::operator=().  | 
  
 
1.3.6