Namespace for helper functions for Vector<double> More...
Functions | |
void | check_lengths_match (const Vector< double > &a, const Vector< double > &b) |
Check the lengths if two Vectors are the same length. | |
double | dot (const Vector< double > &a, const Vector< double > &b) |
Probably not always best/fastest because not optimised for dimension but useful... | |
double | magnitude (const Vector< double > &a) |
Get the magnitude of a vector. | |
double | angle (const Vector< double > &a, const Vector< double > &b) |
Get the angle between two vector. | |
void | cross (const Vector< double > &A, const Vector< double > &B, Vector< double > &C) |
Cross product using "proper" output (move semantics means this is ok nowadays). | |
Vector< double > | cross (const Vector< double > &A, const Vector< double > &B) |
Cross product using "proper" output (move semantics means this is ok This calls the other cross(...) function. | |
Namespace for helper functions for Vector<double>
|
inlineprivate |
Get the angle between two vector.
Definition at line 309 of file Vector.h.
References dot().
Referenced by oomph::FaceElement::continuous_tangent_and_outer_unit_normal().
|
inlineprivate |
Check the lengths if two Vectors are the same length.
Definition at line 271 of file Vector.h.
References oomph::FiniteElement::size().
Referenced by dot().
|
inlineprivate |
Cross product using "proper" output (move semantics means this is ok nowadays).
Definition at line 319 of file Vector.h.
References oomph::FiniteElement::size().
Referenced by oomph::FaceElement::continuous_tangent_and_outer_unit_normal(), cross(), and oomph::FaceElement::outer_unit_normal().
|
inlineprivate |
Probably not always best/fastest because not optimised for dimension but useful...
Definition at line 291 of file Vector.h.
References check_lengths_match(), i, and oomph::FiniteElement::size().
Referenced by angle(), oomph::FaceElement::continuous_tangent_and_outer_unit_normal(), and magnitude().
Get the magnitude of a vector.
Definition at line 303 of file Vector.h.
References dot().
Referenced by oomph::FaceElement::continuous_tangent_and_outer_unit_normal(), and oomph::FaceElement::outer_unit_normal().