![]() |
|
Namespace for helper functions for Vector<double> More...
Functions | |
double | two_norm (const Vector< double > &a) |
Vector< double > | vector_diff (const Vector< double > &a, const Vector< double > &b) |
void | check_lengths_match (const Vector< double > &a, const Vector< double > &b) |
Check the lengths if two Vectors are the same length. More... | |
double | dot (const Vector< double > &a, const Vector< double > &b) |
double | magnitude (const Vector< double > &a) |
Get the magnitude of a vector. More... | |
double | angle (const Vector< double > &a, const Vector< double > &b) |
Get the angle between two vector. More... | |
void | cross (const Vector< double > &A, const Vector< double > &B, Vector< double > &C) |
Vector< double > | cross (const Vector< double > &A, const Vector< double > &B) |
Namespace for helper functions for Vector<double>
|
inline |
|
inline |
Check the lengths if two Vectors are the same length.
References a, b, OOMPH_CURRENT_FUNCTION, and OOMPH_EXCEPTION_LOCATION.
Referenced by dot(), and vector_diff().
|
inline |
Cross product using "proper" output (move semantics means this is ok This calls the other cross(...) function.
References cross(), and oomph::output().
|
inline |
Cross product using "proper" output (move semantics means this is ok nowadays).
References OOMPH_CURRENT_FUNCTION, and OOMPH_EXCEPTION_LOCATION.
Referenced by ChuteWithPeriodicInflow::computeInternalForces(), oomph::FaceElement::continuous_tangent_and_outer_unit_normal(), cross(), oomph::SCoupledElement< ELEMENT >::get_momentum_and_energy(), oomph::VolumeCoupledElement< ELEMENT >::get_momentum_and_energy(), SolidProblem< ELEMENT_TYPE >::getMassMomentumEnergy(), and oomph::FaceElement::outer_unit_normal().
Probably not always best/fastest because not optimised for dimension but useful...
References a, b, check_lengths_match(), and i.
Referenced by angle(), oomph::FaceElement::continuous_tangent_and_outer_unit_normal(), magnitude(), and two_norm().
Get the magnitude of a vector.
References a, dot(), and sqrt().
Referenced by Global_Parameters::body_force(), oomph::FaceElement::continuous_tangent_and_outer_unit_normal(), oomph::FaceElement::outer_unit_normal(), Global_Parameters::pressure_load(), oomph::HelmholtzPointSourceElement< ELEMENT >::setup(), oomph::PMLHelmholtzPointSourceElement< ELEMENT >::setup(), HelmholtzPointSourceProblem< ELEMENT >::setup_point_source(), and Global_Parameters::velocity_couette().