|
| void | binRead (std::ifstream &is) |
| void | binWrite (std::ofstream &os) |
| bool | operator!= (const Vector &r) |
| | Inequality operator: Two vectors are inequal if at least one component is not equal.
|
| Vector & | operator*= (T r) |
| | Multiplication with scalar.
|
| Vector & | operator+= (const Vector &r) |
| | Addition operator.
|
| Vector | operator- () |
| Vector & | operator-= (const Vector &r) |
| | Subtraction operator.
|
| Vector & | operator/= (T r) |
| | Division by scalar.
|
| Vector & | operator= (const Vector &r) |
| | Assignment operator.
|
| Vector & | operator= (T r[3]) |
| | Assignment operator (with an ordinary threedimensional array.
|
| bool | operator== (const Vector &r) |
| | Comparison operators: two vectors are equal if their components are (exactly) the same.
|
| T & | operator[] (int i) |
| | Bracket operator, gives access to the i-th component of the vector (as for a usual array).
|
| const T & | operator[] (int i) const |
| | Bracket operator, gives access to the i-th component of the vector (as for a usual array).
|
| | Vector () |
| | Standard constructor (all components are initialized with 0)
|
| | Vector (const Vector &r) |
| | Vector (T x, T y, T z) |
| | Constructor with the three components as parameters.
|
|
| Vector | ediv (const Vector &r1, const Vector &r2) |
| | Component-wise division of two vectors.
|
| Vector | ediv (T s, const Vector &r) |
| | Component-wise division, scalar (s) by vector (r)
|
| Vector | emult (const Vector &r1, const Vector &r2) |
| | Component-wise multiplication of two vectors.
|
| Vector | exp (const Vector &r) |
| | exponential function of a vector (x,y,z), defined by exp((x,y,z)) \(\rightarrow (e^x,e^y,e^z)\)
|
| bool | operator!= (const Vector &A, const Vector &B) |
| Vector | operator% (const Vector &r1, const Vector &r2) |
| | cross product between two vectors.
|
| T | operator* (const Vector &a, const Vector &b) |
| Vector | operator* (const Vector &r, T x) |
| | Multiplication of a vector with a scalar.
|
| Vector | operator* (T x, const Vector &r) |
| | Multiplication of a scalar with a vector.
|
| Vector | operator+ (const Vector &r1, const Vector &r2) |
| | Addition of two vectors.
|
| Vector | operator- (const Vector &r1, const Vector &r2) |
| | Subtraction of two vectors.
|
| Vector | operator/ (const Vector &r, T x) |
| | Division of a vector by a scalar.
|
| bool | operator== (const Vector &A, const Vector &B) |
| Vector | sqrt (const Vector &r) |
| | calculates the square root of a vector: result: sqrt((x,y,z)) \( \rightarrow (\sqrt{x},\sqrt{y},\sqrt{z}) \)
|
template<class T>
class GOAT::maths::Vector< T >
Template class for threedimensional vectors.
This class provides standard operations and functions for threedimensional vectors. It is intended for use with int, double and complex<double> based vectors. Also, operators with mixed types are given (e.g. operators for double and complex vectors).
Definition at line 56 of file vector.h.