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. More... | |
double | dot (const Vector< double > &a, const Vector< double > &b) |
Probably not always best/fastest because not optimised for dimension but useful... More... | |
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) |
Cross product using "proper" output (move semantics means this is ok nowadays). More... | |
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. More... | |
Namespace for helper functions for Vector<double>
|
inline |
Get the angle between two vector.
Definition at line 309 of file Vector.h.
References dot().
Referenced by oomph::OcTree::construct_rotation_matrix(), and oomph::FaceElement::continuous_tangent_and_outer_unit_normal().
|
inline |
Cross product using "proper" output (move semantics means this is ok This calls the other cross(...) function.
Definition at line 344 of file Vector.h.
References oomph::OcTreeNames::B, cross(), and oomph::CommandLineArgs::output().
|
inline |
Cross product using "proper" output (move semantics means this is ok nowadays).
Definition at line 319 of file Vector.h.
References oomph::OcTreeNames::B.
Referenced by oomph::FaceElement::continuous_tangent_and_outer_unit_normal(), cross(), and oomph::FaceElement::outer_unit_normal().
Probably not always best/fastest because not optimised for dimension but useful...
Definition at line 291 of file Vector.h.
References check_lengths_match(), and i.
Referenced by angle(), oomph::FaceElement::continuous_tangent_and_outer_unit_normal(), oomph::LinearisedAxisymPoroelasticBJS_FSIElement< FLUID_BULK_ELEMENT, POROELASTICITY_BULK_ELEMENT >::contribution_to_enclosed_volume(), oomph::LineVolumeConstraintBoundingElement::contribution_to_enclosed_volume(), oomph::AxisymmetricVolumeConstraintBoundingElement::contribution_to_enclosed_volume(), oomph::AxisymmetricVolumeConstraintBoundingElement::contribution_to_volume_flux(), oomph::PointFluidInterfaceBoundingElement::fill_in_generic_residual_contribution_interface_boundary(), oomph::LineFluidInterfaceBoundingElement::fill_in_generic_residual_contribution_interface_boundary(), oomph::LineVolumeConstraintBoundingElement::fill_in_generic_residual_contribution_volume_constraint(), oomph::AxisymmetricVolumeConstraintBoundingElement::fill_in_generic_residual_contribution_volume_constraint(), oomph::SurfaceVolumeConstraintBoundingElement::fill_in_generic_residual_contribution_volume_constraint(), and magnitude().
|
inline |
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().