4-dimensional vector.
More...
#include </home/werner/origo/vish/ocean/eagle/STA.hpp>
List of all members.
Public Types
Public Member Functions
-
vector inv () const
- Compute the inverse vector .
-
vector operator() (const vector &v) const
- Compute nvn, which is the reflection of the vector v along the current vector n.
-
trivector operator* () const
- star operator: Compute dual tri-vector
-
vector operator+ (const vector &r) const
-
vector operator- () const
-
PhysicalSpace::vector spatial () const
-
const double & t () const
-
double & t ()
-
vector unit () const
- vector (const Base_t &V)
- Constructor from base class.
- vector ()
- Evil default constructor.
-
vector (const vector &v)
- Copy constructor.
-
vector (double t, double x, double y, double z)
- Component-wise construction.
-
vector (double t, const PhysicalSpace::vector &v)
- Construct from time and spatial vector.
-
vector (const point &l, const point &r)
- Construct vector as subtraction of two points.
-
vector (const bivector &B, const vector &v)
- Construct vector as inner product of bivector and vector.
-
template<OperatorID_t CompType> vector (const vector &l, const vector &r, const Operator< CompType > &C)
- Generic computational constructor of two vectors.
-
template<OperatorID_t CompType> vector (const vector &l, const Operator< CompType > &C, const double &scalar)
- Generic computational vector-scalar constructor.
-
template<OperatorID_t CompType> vector (const Operator< CompType > &C, const double &scalar, const vector &l)
-
vector (const vector &l, const Operator<'-'> &C)
-
const double & x () const
-
double & x ()
-
const double & y () const
-
double & y ()
-
const double & z () const
-
double & z ()
Friends
-
vector dot (const bivector &B, const vector &v)
-
double dot (const vector &a, const vector &b)
- Compute the Euclidean dot product (inner product) of two vectors.
-
double norm (const vector &v)
- Compute the Euclidan norm of a vector. Note that if just the square of the norm is required, then function norm2() is more efficient since the square root does not need to be taken.
-
double norm2 (const vector &v)
- Compute the squared norm of a vector v, i.e. v.v.
-
template<class T > vector operator* (const vector &v, T scalar)
-
template<class T > vector operator* (T scalar, const vector &v)
- Multiply scalar with a vector, yielding a vector.
-
vector operator- (const vector &l, const vector &r)
- Subtraction operator.
-
template<class T > vector operator/ (const vector &v, T scalar)
- Divide a vector by a scalar.
-
std::ostream & operator<< (std::ostream &os, const vector &v)
Detailed Description
Constructor & Destructor Documentation
Eagle::STA::CartesianChart4D::vector::vector |
( |
const Base_t & |
V | ) |
[inline] |
Constructor from base class.
Note that this constructor is implicit, whereas the base class constructor is explicit.
Eagle::STA::CartesianChart4D::vector::vector |
( |
| ) |
[inline] |
Evil default constructor.
Not sure if it should do anything or nothing. Primary purpose is for use within arrays. The user shouldn't expect uninitialized variables to contain anything useful.
Reimplemented from Eagle::Coordinates::vector.
The documentation for this class was generated from the following file: