#include <vectorsMatrices.hh>
Public Member Functions | |
| UnitNd () | |
| Constructor. Initializes all elements to 0. | |
| UnitNd (const Point< Real, dim > &u) | |
| Constructor for a point. | |
| UnitNd (Real x, Real y, Real z) | |
| Constructor for at most 3D. | |
| Real | length () const |
| Length of the initially given vector. | |
| const Real & | operator[] (const uint i) const |
| Index operator. | |
| Real & | operator[] (const uint i) |
| Index operator. | |
| operator Real * () | |
| Returns a pointer to the data. | |
| operator const Real * () const | |
| Returns a pointer to the data. | |
| Point< Real, dim > & | operator+= (const Point< Real, dim > &p) |
| Addition operator. | |
| Point< Real, dim > | operator+ (const Point< Real, dim > &p) const |
| Addition operator. | |
| Point< Real, dim > & | operator-= (const Point< Real, dim > &p) |
| Subtraction operator. | |
| Point< Real, dim > | operator- (const Point< Real, dim > &p) const |
| Subtraction operator. | |
| Real | operator* (const Point< Real, dim > &b) const |
| Inner product. | |
| Real | operator* (const UnitNd< dim > &b) const |
| Point< Cmplx, dim > | operator* (const Cmplx n) const |
| Scaling operator with a complex number. | |
| Point< Real, dim > | operator* (const Real n) const |
| Scaling operator with a real number. | |
| Real | dot (const Point< Real, dim > &b) const |
| Inner product, i.e. for complex arguments: this * conjugate(b) | |
| Point< Real, dim > & | operator*= (const G n) |
| Scaling operator. | |
| Point< Real, dim > & | operator/= (const G n) |
| Unscaling operator. | |
| Point< Cmplx, dim > | operator/ (const Cmplx n) const |
| Unscaling operator with a complex number. | |
| Point< Real, dim > | operator/ (const Real n) const |
| Unscaling operator with a real number. | |
| Point< Real, dim > & | scale (const Point< Real, dim > &n) |
| Scaling. | |
| Point< Real, 3 > | operator^ (const Point< Real, 3 > &b) const |
| Outer product (for 3D) | |
| Real | operator^ (const Point< Real, 2 > &b) const |
| Outer product (for 2D) | |
| Real | l2 () const |
| Returns the Euclidian norm of the vector. | |
| Real | l2_2 () const |
| Returns the square of the Euclidian norm of the vector. | |
| Real | linfty () const |
| Returns the Maximum norm of the vector. | |
| void | lincomb (const Point< Real, dim > &a, const Point< Real, dim > &b, const Real ca=1.0, const Real cb=1.0) |
| Assign the vector the linear combination of a and b. | |
| void | max (const Point< Real, dim > &a, const Point< Real, dim > &b) |
| Sets the vector to the elementwise maximum of a and b. | |
| void | min (const Point< Real, dim > &a, const Point< Real, dim > &b) |
| Sets the vector to the elementwise minimum of a and b. | |
| Point< Real, dim > & | ortho (const Point< Real, dim > &a) |
| Point< Real, dim > & | ortho () |
| Rotates the vector by 90 degrees (clockwise) (only 2D) | |
| Point< Real, dim > | ortho () const |
| Returns a by 90 degrees (clockwise) rotated vector (only 2D) | |
| std::ostream & | info (std::ostream &os) const |
A vector of dimension dim and length 1.
Definition at line 276 of file vectorsMatrices.hh.
|
inline |
Constructor. Initializes all elements to 0.
Definition at line 281 of file vectorsMatrices.hh.
|
inline |
Constructor for a point.
Definition at line 292 of file vectorsMatrices.hh.
|
inline |
Constructor for at most 3D.
Definition at line 298 of file vectorsMatrices.hh.
|
inlineinherited |
Returns the Euclidian norm of the vector.
Definition at line 182 of file vectorsMatrices.hh.
|
inline |
Length of the initially given vector.
Definition at line 288 of file vectorsMatrices.hh.
|
inlineinherited |
Returns a pointer to the data.
Definition at line 101 of file vectorsMatrices.hh.
|
inlineinherited |
Returns a pointer to the data.
Definition at line 99 of file vectorsMatrices.hh.
|
inlineinherited |
Scaling operator with a complex number.
Definition at line 148 of file vectorsMatrices.hh.
|
inlineinherited |
Scaling operator with a real number.
Definition at line 153 of file vectorsMatrices.hh.
|
inlineinherited |
Scaling operator.
Definition at line 134 of file vectorsMatrices.hh.
|
inlineinherited |
Addition operator.
Definition at line 110 of file vectorsMatrices.hh.
|
inlineinherited |
Addition operator.
Definition at line 104 of file vectorsMatrices.hh.
|
inlineinherited |
Subtraction operator.
Definition at line 121 of file vectorsMatrices.hh.
|
inlineinherited |
Subtraction operator.
Definition at line 115 of file vectorsMatrices.hh.
|
inlineinherited |
Unscaling operator with a complex number.
Definition at line 159 of file vectorsMatrices.hh.
|
inlineinherited |
Unscaling operator with a real number.
Definition at line 164 of file vectorsMatrices.hh.
|
inlineinherited |
Unscaling operator.
Definition at line 142 of file vectorsMatrices.hh.
|
inlineinherited |
Index operator.
Definition at line 94 of file vectorsMatrices.hh.
|
inlineinherited |
Index operator.
Definition at line 90 of file vectorsMatrices.hh.
|
inherited |
Change vector to the by 90 degrees (clockwise) rotated vector a (only 2D)
|
inlineinherited |
Scaling.
Definition at line 170 of file vectorsMatrices.hh.