ug4
|
Classes | |
class | ug::MathVector< N, T > |
a mathematical Vector with N entries. More... | |
class | ug::MathVector< 0, T > |
class | ug::MathVector< 1, T > |
class | ug::MathVector< 2, T > |
class | ug::MathVector< 3, T > |
class | ug::MathVector< 4, T > |
Typedefs | |
typedef MathMatrix< 2, 2, number > | ug::matrix22 |
a 2x2 matrix More... | |
typedef MathMatrix< 3, 3, number > | ug::matrix33 |
a 3x3 matrix More... | |
typedef MathMatrix< 4, 4, number > | ug::matrix44 |
a 4x4 matrix More... | |
typedef MathVector< 1, number > | ug::vector1 |
a 1d vector More... | |
typedef MathVector< 2, number > | ug::vector2 |
a 2d vector More... | |
typedef MathVector< 3, number > | ug::vector3 |
a 3d vector More... | |
typedef MathVector< 4, number > | ug::vector4 |
a 4d vector More... | |
Functions | |
template<typename vector_t > | |
void | ug::CalculateTriangleNormal (vector_t &vOut, const vector_t &v1, const vector_t &v2, const vector_t &v3) |
Calculates a triangle-normal in 3d (output has length 1). More... | |
template<typename vector_t > | |
void | ug::CalculateTriangleNormalNoNormalize (vector_t &vOut, const vector_t &v1, const vector_t &v2, const vector_t &v3) |
Calculates a triangle-normal in 3d (no normalization is performed). More... | |
template<class TStream , std::size_t N, class T > | |
void | ug::Deserialize (TStream &out, MathVector< N, T > &valOut) |
template<size_t dim> | |
void | ug::GenVecCross (MathVector< dim > &result, const MathVector< dim > &v_1, const MathVector< dim > &v_2) |
calculates the usual cross product in 3d, and the (det, 0) vector as a cross product in 2d More... | |
template<std::size_t N, typename T > | |
bool | ug::operator!= (const MathVector< N, T > &v, const MathVector< N, T > &w) |
template<std::size_t N, typename T > | |
bool | ug::operator< (const MathVector< N, T > &v, const MathVector< N, T > &w) |
template<typename T > | |
std::ostream & | ug::operator<< (std::ostream &outStream, const ug::MathVector< 0, T > &v) |
std::ostream & | ug::operator<< (std::ostream &outStream, const ug::MathVector< 1 > &v) |
formatted output of MathVector objects: (...,...) More... | |
template<typename T > | |
std::ostream & | ug::operator<< (std::ostream &outStream, const ug::MathVector< 1, T > &v) |
std::ostream & | ug::operator<< (std::ostream &outStream, const ug::MathVector< 2 > &v) |
formatted output of MathVector objects: (...,...) More... | |
template<typename T > | |
std::ostream & | ug::operator<< (std::ostream &outStream, const ug::MathVector< 2, T > &v) |
std::ostream & | ug::operator<< (std::ostream &outStream, const ug::MathVector< 3 > &v) |
formatted output of MathVector objects: (...,...) More... | |
template<typename T > | |
std::ostream & | ug::operator<< (std::ostream &outStream, const ug::MathVector< 3, T > &v) |
std::ostream & | ug::operator<< (std::ostream &outStream, const ug::MathVector< 4 > &v) |
formatted output of MathVector objects: (...,...) More... | |
template<typename T > | |
std::ostream & | ug::operator<< (std::ostream &outStream, const ug::MathVector< 4, T > &v) |
template<std::size_t N, typename T > | |
std::ostream & | ug::operator<< (std::ostream &outStream, const ug::MathVector< N, T > &v) |
template<typename T > | |
bool | ug::operator== (const MathVector< 0, T > &v, const MathVector< 0, T > &w) |
template<std::size_t N, typename T > | |
bool | ug::operator== (const MathVector< N, T > &v, const MathVector< N, T > &w) |
std::istream & | ug::read_plain_txt (std::istream &inStream, ug::MathVector< 1 > &v) |
plain text input of MathVectors: read space-separated coordinates More... | |
std::istream & | ug::read_plain_txt (std::istream &inStream, ug::MathVector< 2 > &v) |
plain text input of MathVectors: read space-separated coordinates More... | |
std::istream & | ug::read_plain_txt (std::istream &inStream, ug::MathVector< 3 > &v) |
plain text input of MathVectors: read space-separated coordinates More... | |
std::istream & | ug::read_plain_txt (std::istream &inStream, ug::MathVector< 4 > &v) |
plain text input of MathVectors: read space-separated coordinates More... | |
template<class TStream , std::size_t N, class T > | |
void | ug::Serialize (TStream &out, const MathVector< N, T > &val) |
template<typename vector_t > | |
void | ug::VecAdd (vector_t &vOut, const vector_t &v, typename vector_t::value_type s) |
Add a scalar to a vector (componentwise) More... | |
template<typename vector_t > | |
void | ug::VecAdd (vector_t &vOut, const vector_t &v1, const vector_t &v2) |
adds two MathVector<N>s and stores the result in a third one More... | |
template<typename vector_t > | |
void | ug::VecAdd (vector_t &vOut, const vector_t &v1, const vector_t &v2, const vector_t &v3) |
adds three MathVector<N>s and stores the result in a fourth one More... | |
template<typename vector_t > | |
void | ug::VecAdd (vector_t &vOut, const vector_t &v1, const vector_t &v2, const vector_t &v3, const vector_t &v4) |
adds four MathVector<N>s and stores the result in a firth one More... | |
template<typename vector_t > | |
vector_t::value_type | ug::VecAngle (const vector_t &v1, const vector_t &v2) |
returns the angle between two vectors in radiants More... | |
template<typename vector_t > | |
vector_t::value_type | ug::VecAngleNorm (const vector_t &v1, const vector_t &v2) |
returns the angle between two vectors of length 1 in radiants More... | |
template<typename vector_t > | |
void | ug::VecAppend (vector_t &vOut, const vector_t &v1) |
adds a MathVector<N> to a second one More... | |
template<typename vector_t > | |
void | ug::VecAppend (vector_t &vOut, const vector_t &v1, const vector_t &v2) |
adds two MathVector<N>s and adds the result to a third one More... | |
template<typename vector_t > | |
void | ug::VecAppend (vector_t &vOut, const vector_t &v1, const vector_t &v2, const vector_t &v3) |
adds two MathVector<N>s and adds the result to a fourth one More... | |
template<typename vector_t > | |
void | ug::VecAppend (vector_t &vOut, const vector_t &v1, const vector_t &v2, const vector_t &v3, const vector_t &v4) |
adds two MathVector<N>s and adds the result to a fifth one More... | |
template<typename vector_target_t , typename vector_source_t > | |
void | ug::VecCopy (vector_target_t &target, const vector_source_t &source, typename vector_target_t::value_type fill) |
Copy contents between vectors of possibly different types. More... | |
template<typename vector_t > | |
void | ug::VecCross (vector_t &vOut, const vector_t &v1, const vector_t &v2) |
calculates the cross product of two Vectors of dimension 3. It makes no sense to use VecCross for vector_ts that have not dimension 3. More... | |
template<typename vector_t > | |
vector_t::value_type | ug::VecDistance (const vector_t &v1, const vector_t &v2) |
returns the distance of two vector_ts. More... | |
template<typename vector_t > | |
vector_t::value_type | ug::VecDistanceSq (const vector_t &v1, const vector_t &v2) |
returns the squared distance of two vector_ts. More... | |
template<typename vector_t > | |
vector_t::value_type | ug::VecDot (const vector_t &v1, const vector_t &v2) |
returns the dot-product of two vector_ts More... | |
template<typename vector_t > | |
vector_t::value_type | ug::VecInftyNorm (const vector_t &v) |
template<typename vector_t > | |
void | ug::VecInterpolateLinear (vector_t &vOut, const vector_t &v1, const vector_t &v2, typename vector_t::value_type interpAmount) |
template<typename vector_t > | |
vector_t::value_type | ug::VecLength (const vector_t &v) |
returns the length of v. Slower than VecLengthSq. More... | |
template<typename vector_t > | |
vector_t::value_type | ug::VecLengthSq (const vector_t &v) |
returns the squared length of v. Faster than VecLength. More... | |
template<typename vector_t > | |
vector_t::value_type | ug::VecMaxNorm (const vector_t &v) |
template<typename vector_t > | |
void | ug::VecNormalize (vector_t &vOut, const vector_t &v) |
scales a vector_t to unit length More... | |
template<typename vector_t > | |
vector_t::value_type | ug::VecOneNorm (const vector_t &v) |
template<typename vector_t > | |
vector_t::value_type | ug::VecPNorm (const vector_t &v, unsigned int p) |
template<typename vector_t > | |
void | ug::VecPow (vector_t &vOut, const vector_t &v1, typename vector_t::value_type s) |
component-wise exponentiation of a vector More... | |
template<typename vector_t > | |
void | ug::VecScale (vector_t &vOut, const vector_t &v, typename vector_t::value_type s) |
scales a MathVector<N> More... | |
template<typename vector_t > | |
void | ug::VecScaleAdd (vector_t &vOut, typename vector_t::value_type s1, const vector_t &v1, typename vector_t::value_type s2, const vector_t &v2) |
Scales two Vectors, adds them and returns the sum in a third vector. More... | |
template<typename vector_t > | |
void | ug::VecScaleAdd (vector_t &vOut, typename vector_t::value_type s1, const vector_t &v1, typename vector_t::value_type s2, const vector_t &v2, typename vector_t::value_type s3, const vector_t &v3) |
Scales three Vectors, adds them and returns the sum in a fourth vector. More... | |
template<typename vector_t > | |
void | ug::VecScaleAdd (vector_t &vOut, typename vector_t::value_type s1, const vector_t &v1, typename vector_t::value_type s2, const vector_t &v2, typename vector_t::value_type s3, const vector_t &v3, typename vector_t::value_type s4, const vector_t &v4) |
Scales four Vectors, adds them and returns the sum in a fifth vector. More... | |
template<typename vector_t > | |
void | ug::VecScaleAppend (vector_t &vOut, typename vector_t::value_type s1, const vector_t &v1) |
Scales a Vector and adds it to a second vector. More... | |
template<typename vector_t > | |
void | ug::VecScaleAppend (vector_t &vOut, typename vector_t::value_type s1, const vector_t &v1, typename vector_t::value_type s2, const vector_t &v2) |
Scales two Vectors, adds them and adds the sum to a third vector. More... | |
template<typename vector_t > | |
void | ug::VecScaleAppend (vector_t &vOut, typename vector_t::value_type s1, const vector_t &v1, typename vector_t::value_type s2, const vector_t &v2, typename vector_t::value_type s3, const vector_t &v3) |
Scales three Vectors, adds them and adds the sum to a fourth vector. More... | |
template<typename vector_t > | |
void | ug::VecScaleAppend (vector_t &vOut, typename vector_t::value_type s1, const vector_t &v1, typename vector_t::value_type s2, const vector_t &v2, typename vector_t::value_type s3, const vector_t &v3, typename vector_t::value_type s4, const vector_t &v4) |
Scales four Vectors, adds them and adds the sum to a fifth vector. More... | |
template<typename vector_t > | |
void | ug::VecSet (vector_t &vInOut, typename vector_t::value_type s) |
Set each vector component to scalar (componentwise) More... | |
template<typename vector_t > | |
void | ug::VecSubtract (vector_t &vOut, const vector_t &v, typename vector_t::value_type s) |
Subtract a scalar from a vector (componentwise) More... | |
template<typename vector_t > | |
void | ug::VecSubtract (vector_t &vOut, const vector_t &v1, const vector_t &v2) |
subtracts v2 from v1 and stores the result in a vOut More... | |
template<typename vector_t > | |
vector_t::value_type | ug::VecTwoNorm (const vector_t &v) |
template<typename vector_t > | |
vector_t::value_type | ug::VecTwoNormSq (const vector_t &v) |
std::ostream & | ug::write_plain_txt (std::ostream &outStream, const ug::MathVector< 1 > &v) |
plain text output of MathVector objects: space-separated coordinates More... | |
std::ostream & | ug::write_plain_txt (std::ostream &outStream, const ug::MathVector< 2 > &v) |
plain text output of MathVector objects: space-separated coordinates More... | |
std::ostream & | ug::write_plain_txt (std::ostream &outStream, const ug::MathVector< 3 > &v) |
plain text output of MathVector objects: space-separated coordinates More... | |
std::ostream & | ug::write_plain_txt (std::ostream &outStream, const ug::MathVector< 4 > &v) |
plain text output of MathVector objects: space-separated coordinates More... | |
template<std::size_t fromN, std::size_t toN, typename T > | |
MathVector< toN, T > | ug::MathVectorFrom (const MathVector< fromN, T > &v) |
helper method which creates a vector from another vector of different dimensionality More... | |
template<std::size_t N, typename T > | |
MathVector< N, T > | ug::MathVectorFrom (const MathVector< N, T > &v) |
helper method which creates a vector from another vector of different dimensionality More... | |
Abbreviations of small vectors
typedef MathMatrix<2,2, number> ug::matrix22 |
a 2x2 matrix
typedef MathMatrix<3,3, number> ug::matrix33 |
a 3x3 matrix
typedef MathMatrix<4,4, number> ug::matrix44 |
a 4x4 matrix
typedef MathVector<1, number> ug::vector1 |
a 1d vector
typedef MathVector<2, number> ug::vector2 |
a 2d vector
typedef MathVector<3, number> ug::vector3 |
a 3d vector
typedef MathVector<4, number> ug::vector4 |
a 4d vector
|
inline |
Calculates a triangle-normal in 3d (output has length 1).
Calculates a triangle-normal in 3d.
References ug::CalculateTriangleNormalNoNormalize(), and ug::VecNormalize().
Referenced by ug::CalculateNormal(), ug::CalculateNormalDot(), and ug::IntersectCoplanarTriangles().
|
inline |
Calculates a triangle-normal in 3d (no normalization is performed).
Calculates a triangle-normal in 3d.
References ug::VecCross(), and ug::VecSubtract().
Referenced by ug::CalculateNormal(), ug::CalculateNormalNoNormalize(), ug::CalculateTriangleNormal(), ug::node_tree::Traverser_ProjectPoint::handle_collision_triangles(), ug::ProjectPointToSurface(), ug::QuadDiagonalIsValid(), ug::Valence3VertexIsObsolete(), and ug::Valence4VertexIsObsolete().
void ug::Deserialize | ( | TStream & | out, |
MathVector< N, T > & | valOut | ||
) |
References ug::MathVector< N, T >::m_data.
|
inline |
calculates the usual cross product in 3d, and the (det, 0) vector as a cross product in 2d
computes the "generalized vector product" of two vectors
In 3d, this is a usual cross-product. In 2d, the first component of the result is the determinant of the 2x2-matrix build of the operands, and the second component is always 0.
dim | dimensionality of the vectors |
result | = v_1 X v_2 |
References UG_THROW.
Referenced by ug::TriangleArea().
MathVector<toN, T> ug::MathVectorFrom | ( | const MathVector< fromN, T > & | v | ) |
helper method which creates a vector from another vector of different dimensionality
Typically, the method isn't invoked directly but serves as an implementation helper for MathVector<toN, T>::from(v).
MathVector<N, T> ug::MathVectorFrom | ( | const MathVector< N, T > & | v | ) |
helper method which creates a vector from another vector of different dimensionality
Typically, the method isn't invoked directly but serves as an implementation helper for MathVector<toN, T>::from(v).
bool ug::operator!= | ( | const MathVector< N, T > & | v, |
const MathVector< N, T > & | w | ||
) |
bool ug::operator< | ( | const MathVector< N, T > & | v, |
const MathVector< N, T > & | w | ||
) |
References ug::SMALL.
std::ostream& ug::operator<< | ( | std::ostream & | outStream, |
const ug::MathVector< 0, T > & | v | ||
) |
UG_API std::ostream & ug::operator<< | ( | std::ostream & | outStream, |
const ug::MathVector< 1 > & | v | ||
) |
formatted output of MathVector objects: (...,...)
References ug::MathVector< N, T >::coord().
std::ostream& ug::operator<< | ( | std::ostream & | outStream, |
const ug::MathVector< 1, T > & | v | ||
) |
UG_API std::ostream & ug::operator<< | ( | std::ostream & | outStream, |
const ug::MathVector< 2 > & | v | ||
) |
formatted output of MathVector objects: (...,...)
References ug::MathVector< N, T >::coord().
std::ostream& ug::operator<< | ( | std::ostream & | outStream, |
const ug::MathVector< 2, T > & | v | ||
) |
UG_API std::ostream & ug::operator<< | ( | std::ostream & | outStream, |
const ug::MathVector< 3 > & | v | ||
) |
formatted output of MathVector objects: (...,...)
References ug::MathVector< N, T >::coord().
std::ostream& ug::operator<< | ( | std::ostream & | outStream, |
const ug::MathVector< 3, T > & | v | ||
) |
UG_API std::ostream & ug::operator<< | ( | std::ostream & | outStream, |
const ug::MathVector< 4 > & | v | ||
) |
formatted output of MathVector objects: (...,...)
References ug::MathVector< N, T >::coord().
std::ostream& ug::operator<< | ( | std::ostream & | outStream, |
const ug::MathVector< 4, T > & | v | ||
) |
std::ostream& ug::operator<< | ( | std::ostream & | outStream, |
const ug::MathVector< N, T > & | v | ||
) |
References ug::MathVector< N, T >::coord().
bool ug::operator== | ( | const MathVector< 0, T > & | v, |
const MathVector< 0, T > & | w | ||
) |
bool ug::operator== | ( | const MathVector< N, T > & | v, |
const MathVector< N, T > & | w | ||
) |
Referenced by ug::DenseMatrix< TStorage >::operator!=().
UG_API std::istream & ug::read_plain_txt | ( | std::istream & | inStream, |
ug::MathVector< 1 > & | v | ||
) |
plain text input of MathVectors: read space-separated coordinates
References ug::MathVector< N, T >::coord().
Referenced by ug::IDWUserData< WDim, TData >::load_data_from().
UG_API std::istream & ug::read_plain_txt | ( | std::istream & | inStream, |
ug::MathVector< 2 > & | v | ||
) |
plain text input of MathVectors: read space-separated coordinates
References ug::MathVector< N, T >::coord().
UG_API std::istream & ug::read_plain_txt | ( | std::istream & | inStream, |
ug::MathVector< 3 > & | v | ||
) |
plain text input of MathVectors: read space-separated coordinates
References ug::MathVector< N, T >::coord().
UG_API std::istream & ug::read_plain_txt | ( | std::istream & | inStream, |
ug::MathVector< 4 > & | v | ||
) |
plain text input of MathVectors: read space-separated coordinates
References ug::MathVector< N, T >::coord().
void ug::Serialize | ( | TStream & | out, |
const MathVector< N, T > & | val | ||
) |
References ug::MathVector< N, T >::m_data.
|
inline |
Add a scalar to a vector (componentwise)
References s.
|
inline |
adds two MathVector<N>s and stores the result in a third one
Referenced by ug::ArteExpandFracs3D::establishNewVertices< false, ArteExpandFracs3D::VrtxFracProptsStatus::oneFracSuDoAtt >(), ug::NeuriteProjector::average_params(), ug::lg_ntree_traits_base< tree_dim, world_dim, elem_t_, common_data_t_ >::calculate_center(), ug::ntree< tree_dim, world_dim, TElem, TCommonData >::calculate_center_of_mass(), ug::CalculateBarycenter(), ug::CalculateBoundaryVertexNormal3D(), ug::CalculateCenter(), ug::CalculateConstrainedSmoothVolumePosInTopLevel(), ug::CalculateCreaseNormal(), ug::CalculateMinCurvature(), ug::CalculateNormal(), ug::CalculateNormalNoNormalize(), ug::CalculateSmoothCreaseManifoldPosInParentLevelLoopScheme(), ug::CalculateSmoothManifoldPosInParentLevelButterflyScheme(), ug::CalculateSmoothManifoldPosInParentLevelLoopScheme(), ug::CalculateSmoothManifoldPosInTopLevelAveragingScheme(), ug::CalculateSmoothVolumePosInTopLevel(), ug::CalculateVertexNormal(), ug::CalculateVertexNormals(), ug::AABox< vector_t >::center(), ug::CollapseEdge(), ug::HFV1Geometry< TElem, TWorldDim >::compute_side_midpoints(), ug::DimHFV1Geometry< TDim, TWorldDim >::compute_side_midpoints(), ug::HFV1ManifoldGeometry< TElem, TWorldDim >::compute_side_midpoints(), ug::computeDiamondPointXCrossType(), ug::CreatePrism(), ug::node_tree::CreateSubOctrees(), ug::DropAPerpendicular(), ug::Duplicate(), ug::ExpandFractures2d(), ug::ExpandFractures2dArte(), ug::ExpandFractures3d(), ug::expandSingleFractureAtGivenSide(), ug::expandSingleFractureAtGivenSide< VecVertexOfFaceInfo >(), ug::Extrude(), ug::lg_ntree_traits_base< tree_dim, world_dim, elem_t_, common_data_t_ >::grow_box(), ug::node_tree::GrowBox(), ug::LaplacianSmooth(), ug::fv1_traits_ReferenceFace3d::NormalOnSCVF_Face(), ug::ObtainSimpleGrid_CollapseEdge(), ug::AABox< ug::MathVector< dim > >::overlaps_line(), ug::pos_on_surface_tip(), ug::SomaProjector::project_to_soma_surface(), ug::ProjectPointToRay(), ug::QualityGridGeneration(), ug::RayPlaneIntersection(), ug::RayRayIntersection3d(), ug::tet_rules::Refine(), ug::SubdivisionProjector::refinement_begins(), ug::EllipticCylinderProjector::scale_point_to_radius(), ug::SnapMarkerPointToGridVertex(), ug::TangentialSmooth(), ug::TangentialSmoothSimple(), ug::TranslateDomain(), ug::TranslateSelection(), ug::TriangleFill(), ug::TrySplit(), ug::Valence4VertexIsObsolete(), ug::IVector_AlgebraDownCastTo< TVec >::vec_add(), ug::WeightedEdgeSmooth(), and ug::WeightedFaceSmooth().
|
inline |
adds three MathVector<N>s and stores the result in a fourth one
adds three Vectors and stores the result in a fourth one
|
inline |
adds four MathVector<N>s and stores the result in a firth one
adds four Vectors and stores the result in a fifth one
|
inline |
returns the angle between two vectors in radiants
References ug::PI, ug::VecDot(), and ug::VecLengthSq().
Referenced by ug::CheckDirection(), ug::DelaunayInfo< TAAPos >::init_marks(), ug::DelaunayInfo< TAAPos >::is_classifiable(), ug::OrderDownwindForDofDist(), ug::QualityGridGeneration(), ug::SelectKinkVertices(), and ug::SimplifyPolylines().
|
inline |
returns the angle between two vectors of length 1 in radiants
This method assumes that v1 and v2 are normalized vectors (both have length 1). No checks are performed!
References ug::PI, and ug::VecDot().
|
inline |
adds a MathVector<N> to a second one
adds a MathVector<N>s to a second one
Referenced by ug::ComputeElementExtensionsSq(), ug::ElementSize< ReferenceHexahedron, 3 >(), and ug::ElementSize< ReferencePrism, 3 >().
|
inline |
adds two MathVector<N>s and adds the result to a third one
|
inline |
adds two MathVector<N>s and adds the result to a fourth one
adds three Vectors and adds the result to a fourth one
|
inline |
adds two MathVector<N>s and adds the result to a fifth one
adds four Vectors and adds the result to a fifth one
void ug::VecCopy | ( | vector_target_t & | target, |
const vector_source_t & | source, | ||
typename vector_target_t::value_type | fill | ||
) |
Copy contents between vectors of possibly different types.
If the target vector is bigger than the source vector, additional entries will be set to the scalar given in the fill argument. If it is smaller, then the additional entries in the source vector are ignored.
References fill(), boost::source(), and boost::target().
Referenced by ug::ComputeDifferenceOnDelta(), ug::BalanceWeightsLuaCallback< TDomain >::get_weight_impl(), ug::GetElementByCoordinate(), ug::IntersectCoplanarTriangles(), ug::MarkForAdaption_ElementsContainingPoint(), ug::MarkForCoarsen_ElementsByLuaCallback(), ug::MarkForRefinement_CloseToSurface(), ug::MarkForRefinement_ElementsByLuaCallback(), ug::PartitionElements_RegularGrid(), ug::ScaleDomain(), ug::ScaleDomainSqrtWeighting(), ug::ScaleDomainSquaredWeighting(), ug::ScaleDomainWeighting(), and ug::TranslateDomain().
|
inline |
calculates the cross product of two Vectors of dimension 3. It makes no sense to use VecCross for vector_ts that have not dimension 3.
calculates the cross product of two MathVector<N>s of dimension 3. It makes no sense to use VecCross for MathVector<N>s that have not dimension 3. todo: Create compile-time check for dimensionality in case of MathVector type.
Referenced by ug::CalculateAngles(), ug::CalculateMaxDihedral(), ug::CalculateMinDihedral(), ug::CalculateOctahedronVolume(), ug::CalculatePyramidVolume(), ug::CalculateTetrahedronVolume(), ug::CalculateTriangleNormalNoNormalize(), ug::compute_ONB(), ug::ConstructOrthonormalSystem(), ug::DelaunayLineLineIntersection(), ug::ElementNormal< ReferenceEdge, 3 >(), ug::ElementNormal< ReferenceQuadrilateral, 3 >(), ug::ElementNormal< ReferenceTriangle, 3 >(), ug::ElementSize< ReferenceHexahedron, 3 >(), ug::ElementSize< ReferenceOctahedron, 3 >(), ug::ElementSize< ReferencePrism, 3 >(), ug::ElementSize< ReferencePyramid, 3 >(), ug::ElementSize< ReferenceQuadrilateral, 3 >(), ug::ElementSize< ReferenceTetrahedron, 3 >(), ug::ElementSize< ReferenceTriangle, 3 >(), ug::EllipticCylinderProjector::EllipticCylinderProjector(), ug::GenVecCross< 3 >(), ug::PointIsInsideTetrahedron(), ug::EllipticCylinderProjector::serialize(), ug::EllipticCylinderProjector::set_ellipse_axis1(), ug::EllipticCylinderProjector::set_ellipse_axis2(), and ug::SlopeSmooth().
|
inline |
returns the distance of two vector_ts.
returns the distance of two MathVector<N>s.
References ug::VecDistanceSq().
Referenced by ug::NeuriteProjector::axial_range_around_branching_region(), ug::NeuriteProjector::axial_range_around_soma_region(), ug::CalculateHexahedronAspectRatio(), ug::CalculatePyramidAspectRatio(), ug::CheckDoFElem(), ug::collectStretchedElementIndices(), ug::IDWInterpolation< WDim, TPntIterator, TData >::compute(), ug::DistancePointToLine(), ug::DistancePointToPlane(), ug::DistancePointToRay(), ug::DistancePointToTriangle(), ug::EdgeLength(), ug::ElementSize< ReferenceEdge, 1 >(), ug::ElementSize< ReferenceEdge, 2 >(), ug::ElementSize< ReferenceEdge, 3 >(), ug::FindVertexByCoordinate(), ug::MarkForAdaption_GradientAverage(), ug::fv1_traits_ReferenceFace3d::NormalOnSCVF_Face(), ug::DimLocalDoFSet< TDim >::operator==(), ug::SphereProjector::perform_projection(), ug::ProjectVerticesToSphere(), ug::QuadrilateralAspectRatio(), ug::QualityGridGeneration(), ug::RayCylinderIntersection(), ug::RaySphereIntersection(), ug::ScaleDomainSqrtWeighting(), ug::ScaleDomainSquaredWeighting(), ug::ScaleDomainWeighting(), ug::TriangleAspectRatio(), ug::UpdateChainInfo(), and ug::VertexDistance().
|
inline |
returns the squared distance of two vector_ts.
returns the squared distance of two MathVector<N>s.
References ug::VecLengthSq(), and ug::VecSubtract().
Referenced by ug::AdaptSurfaceGridToCylinder(), ug::bp_newton_start_pos(), ug::CalculateBoundingSphere(), ug::DelaunayInfo< TAAPos >::classify_face(), ug::bridge::Evaluate::CloseVertexExists(), ug::Sphere< vector_t >::contains_point(), ug::DelaunayLineLineIntersection(), ug::StdLagrangeElemTransfer< TDomain >::do_restrict(), ug::EdgeLengthSq(), ug::ElementDiameterSq(), ug::H1SemiDistIntegrand< TGridFunction >::evaluate(), ug::H1EnergyDistIntegrand< TGridFunction >::evaluate(), ug::H1DistIntegrand< TGridFunction >::evaluate(), ug::H1ErrorIntegrand< TGridFunction >::evaluate(), ug::bridge::Evaluate::EvaluateAtVertex(), ug::ExpandFractures2d(), ug::ExpandFractures3d(), ug::FindClosestByCoordinate(), ug::FindClosestVertexInArray(), ug::FindCloseVertexInArray(), ug::FindVertexByCoordiante(), ug::FindVertexByCoordinate(), ug::GetMaxEdgeLength(), ug::GetNodeNextToCut(), ug::UserDataDistIntegrandSq< TData, TGridFunction >::inner_dist2(), ug::IntersectCoplanarTriangles(), ug::Sphere< vector_t >::intersects(), ug::DelaunayInfo< TAAPos >::is_classifiable(), ug::IsDegenerated(), ug::IsSliver(), ug::MakeDelaunay(), ug::MarkForAdaption_VerticesInSphereMaxLvl(), ug::MarkForRefinement_ElementsInSphere(), ug::PerformCollapses(), ug::PerformSplits(), ug::ProjectVerticesToCloseEdges(), ug::ProjectVerticesToCloseFaces(), ug::QualityGridGeneration(), ug::tet_rules::Refine(), ug::RemoveDoubles(), ug::ResolveEdgeEdgeIntersection(), ug::ResolveVertexEdgeIntersection(), ug::ResolveVertexFaceIntersection(), ug::ScaleDomainSqrtWeighting(), ug::ScaleDomainSquaredWeighting(), ug::ScaleDomainWeighting(), ug::SeparateFaceSubsetsByNormal(), ug::SlopeSmooth(), ug::SnapMarkerPointToGridVertex(), ug::SplitOctahedronToTetrahedrons(), ug::TriangleCircumcenter(), ug::TriangleQuality_Area(), ug::UpdateChainInfo(), ug::Valence3VertexIsObsolete(), ug::Valence4VertexIsObsolete(), ug::VecDistance(), and ug::VertexDistanceSq().
|
inline |
returns the dot-product of two vector_ts
calculates the dot-product of two MathVector<N>s
Referenced by ug::ActiveSet< TDomain, TAlgebra >::active_index_elem(), ug::FV1IBGeometry< TElem, TWorldDim >::adapt(), ug::DimFV1IBGeometry< TDim, TWorldDim >::adapt(), ug::NeumannBoundaryFE< TDomain >::add_rhs_elem(), ug::NeumannBoundaryFV< TDomain >::add_rhs_elem(), ug::NeumannBoundaryFV1< TDomain >::add_rhs_elem(), ug::ArteExpandFracs3D::establishNewVertices< false, ArteExpandFracs3D::VrtxFracProptsStatus::oneFracSuDoAtt >(), ug::bp_defect_and_gradient(), ug::bp_newton_start_pos(), ug::CalculateAngles(), ug::CalculateHexahedronAspectRatio(), ug::CalculateMaxAngle(), ug::CalculateMaxDihedral(), ug::CalculateMinAngle(), ug::CalculateMinCurvature(), ug::CalculateMinDihedral(), ug::CalculateNormalDot(), ug::CalculateOctahedronVolume(), ug::CalculatePolychainEdgeNormals(), ug::CalculatePyramidAspectRatio(), ug::CalculateRightBendVal(), ug::CalculateTetrahedronVolume(), ug::ActiveSet< TDomain, TAlgebra >::check_conv_elem(), ug::CheckOrientation(), ug::DelaunayInfo< TAAPos >::classify_face(), ug::NeumannBoundaryFV1< TDomain >::compute_err_est_rhs_elem(), ug::ContainsPoint(), ug::FVPointSourceOrSink< dim, TData >::corresponds_to(), ug::FVLineSourceOrSink< dim, TData >::corresponds_to(), ug::DropAPerpendicular(), ug::ElementSize< ReferenceHexahedron, 3 >(), ug::ElementSize< ReferenceOctahedron, 3 >(), ug::ElementSize< ReferencePrism, 3 >(), ug::ElementSize< ReferencePyramid, 3 >(), ug::ElementSize< ReferenceTetrahedron, 3 >(), ug::LognormalRandomField< TData, dim, TRet >::eval_K(), ug::H1SemiIntegrand< TGridFunction >::evaluate(), ug::H1NormIntegrand< TGridFunction >::evaluate(), ug::EvaluateGradientJump_SideIntegral(), ug::ExpandFractures2d(), ug::ExpandFractures2dArte(), ug::ExpandFractures3d(), ug::expandSingleFractureAtGivenSide(), ug::FaceQuality(), ug::FindNormal(), ug::GeometricApproximationDegree(), ug::node_tree::Traverser_ProjectPoint::handle_collision_triangles(), ug::UserDataIntegrandSq< TData, TGridFunction >::inner_prod(), ug::UserDataDistIntegrandSq< TData, TGridFunction >::inner_prod(), ug::IntegralNormalComponentOnManifoldGeneral(), ug::IntegralNormalComponentOnManifoldUsingFV1Geom(), ug::IntegrateNormalComponentOnManifold(), ug::IntegrateNormalGradientOnManifold(), ug::IntersectCoplanarTriangles(), ug::MarkCorners(), ug::MarkCreaseEdges(), ug::MarkForRefinement_AnisotropicDirection(), ug::MarkForRefinementByDirection(), ug::MatHouseholder(), ug::MinimizeEdgeLength_SwapsOnly(), ug::linker_traits< MathVector< dim >, MathVector< dim >, number >::mult_add(), ug::PointFaceTest(), ug::PointIsInsideQuadrilateral(), ug::PointIsInsideTetrahedron(), ug::PointIsInsideTriangle(), ug::ClusterElementStacks< elem_t, vector_t >::post_process(), ug::ProjectPointToPlane(), ug::ProjectPointToRay(), ug::ProjectPointToSurface(), ug::QuadDiagonalIsValid(), ug::EllipticCylinderProjector::radial_ellipse_coord(), ug::RayCylinderIntersection(), ug::RayPlaneIntersection(), ug::RayRayProjection(), ug::ReflectVectorAtPlane(), ug::ResolveTriangleIntersections(), ug::EllipticCylinderProjector::scale_point_to_radius(), ug::SelectCreaseEdges(), ug::SelectEdgesByDirection(), ug::SelectLinkedFlatAndDegeneratedFaces(), ug::SelectLinkedFlatFaces(), ug::SelectSmoothEdgePath(), ug::SelectSubsetEdgesByDirection(), ug::SlopeSmooth(), ug::TangentialSmooth(), ug::TriangleCircumcenter(), ug::TriangleFill(), ug::TriangleFill_SweepLine(), ug::TriangleQuality(), ug::Triangulate(), ug::TrySwap(), ug::ConvectionShapesNoUpwind< TDim >::update(), ug::ConvectionShapesFullUpwind< TDim >::update(), ug::ConvectionShapesWeightedUpwind< TDim >::update(), ug::ConvectionShapesPartialUpwind< TDim >::update(), ug::ConvectionShapesSkewedUpwind< TDim >::update(), ug::ConvectionShapesLinearProfileSkewedUpwind< TDim >::update(), ug::HFV1Geometry< TElem, TWorldDim >::update(), ug::DimHFV1Geometry< TDim, TWorldDim >::update(), ug::UpdateChainInfo(), ug::VecAngle(), ug::VecAngleNorm(), ug::VecDistanceSq(), and ug::WeightedNormalSmooth().
|
inline |
References ug::VecMaxNorm().
|
inline |
|
inline |
returns the length of v. Slower than VecLengthSq.
References ug::VecLengthSq().
Referenced by ug::ActiveSet< TDomain, TAlgebra >::active_index_elem(), ug::CalculatePyramidVolume(), ug::ActiveSet< TDomain, TAlgebra >::check_conv_elem(), ug::computeDiamondPointXCrossType(), ug::DistanceLineToLine(), ug::EdgeOrientation< TDomain >::elem_evaluate(), ug::ExpandFractures2dArte(), ug::expandSingleFractureAtGivenSide(), ug::FaceQuality(), ug::IntersectCoplanarTriangles(), ug::CylinderProjector::perform_projection(), ug::SomaProjector::perform_projection(), ug::SphereProjector::perform_projection(), ug::SomaProjector::project_to_soma_surface(), ug::RayCylinderIntersection(), ug::RaySphereIntersection(), ug::EllipticCylinderProjector::serialize(), ug::EllipticCylinderProjector::set_ellipse_axis1(), ug::EllipticCylinderProjector::set_ellipse_axis2(), ug::ObstacleInNormalDir< TDomain, TAlgebra >::transform_eulerian_coord_sys(), ug::TriangleArea(), ug::FV1Geometry_gen< TElem, TWorldDim, TCondensed >::update(), ug::VecNormalize(), ug::VecTwoNorm(), and ug::Traverser_RayElementIntersection< tree_t >::visit_up().
|
inline |
returns the squared length of v. Faster than VecLength.
Referenced by ug::DelaunayLineLineIntersection(), ug::ExpandFractures2d(), ug::ExpandFractures3d(), ug::IntersectCoplanarTriangles(), ug::ParallelShiftIdentifier< TPosAA >::match_impl(), ug::OrderDownwindForDofDist(), ug::ClusterElementStacks< elem_t, vector_t >::post_process(), ug::QualityGridGeneration(), ug::SideAndElemErrEstData< TDomain >::summarize_err_est_data(), ug::VecAngle(), ug::VecDistanceSq(), ug::VecLength(), ug::VecTwoNormSq(), and ug::WeightedEdgeSmooth().
|
inline |
Referenced by ug::VecInftyNorm().
|
inline |
scales a vector_t to unit length
scales a MathVector<N> to unit length
References ug::VecLength(), and ug::VecScale().
Referenced by ug::AdaptSurfaceGridToCylinder(), ug::CalculateAngles(), ug::CalculateBoundaryVertexNormal2D(), ug::CalculateBoundaryVertexNormal3D(), ug::CalculateCreaseNormal(), ug::CalculateMaxAngle(), ug::CalculateMaxDihedral(), ug::CalculateMinAngle(), ug::CalculateMinCurvature(), ug::CalculateMinDihedral(), ug::CalculateNormal(), ug::CalculateNormalNoNormalize(), ug::CalculateOuterNormal(), ug::CalculatePolychainEdgeNormals(), ug::CalculateRightBendVal(), ug::CalculateTriangleNormal(), ug::CalculateVertexNormal(), ug::CalculateVertexNormals(), ug::DelaunayInfo< TAAPos >::classify_face(), ug::CollapseEdge(), ug::compute_angle(), ug::NeumannBoundaryFV1< TDomain >::compute_err_est_rhs_elem(), ug::compute_ONB(), ug::ConstructOrthonormalSystem(), ug::DelaunayLineLineIntersection(), ug::ElementNormal< ReferenceEdge, 3 >(), ug::ElementNormal< ReferenceVertex, 2 >(), ug::ElementNormal< ReferenceVertex, 3 >(), ug::ExpandFractures2d(), ug::ExpandFractures2dArte(), ug::ExpandFractures3d(), ug::expandSingleFractureAtGivenSide(), ug::expandSingleFractureAtGivenSide< VecVertexOfFaceInfo >(), ug::FindClosestPlane(), ug::FindNormal(), ug::GetColorFromDefaultPalette(), ug::GetEdgeOnTheLeft(), ug::MarkAnisotropicOnlyX(), ug::MarkCorners(), ug::MarkForRefinement_AnisotropicDirection(), ug::MarkForRefinementByDirection(), ug::fv1_traits< ReferenceEdge, 1 >::NormalOnSCVF(), ug::fv1_traits< ReferenceEdge, 2 >::NormalOnSCVF(), ug::fv1_traits< ReferenceEdge, 3 >::NormalOnSCVF(), ug::fv1_traits_ReferenceFace3d::NormalOnSCVF_Face(), ug::ObtainSimpleGrid_CollapseEdge(), ug::ClusterElementStacks< elem_t, vector_t >::post_process(), ug::ProjectPointToPlane(), ug::QualityGridGeneration(), ug::RayCylinderIntersection(), ug::SelectEdgesByDirection(), ug::SelectSmoothEdgePath(), ug::SelectSubsetEdgesByDirection(), ug::SlopeSmooth(), ug::TangentialSmooth(), ug::TriangleFill(), ug::TriangleFill_SweepLine(), ug::TriangleQuality(), ug::TrySplit(), ug::TrySwap(), ug::FVGeometry< TOrder, TElem, TWorldDim, TQuadOrder >::update(), ug::DimFVGeometry< TWorldDim, TDim >::update(), and ug::WeightedNormalSmooth().
|
inline |
|
inline |
References p.
|
inline |
component-wise exponentiation of a vector
References s.
Referenced by ug::NeuriteProjector::IsElementInsideSphere().
|
inline |
scales a MathVector<N>
References s.
Referenced by ug::ApplySmoothManifoldPosToTopLevelAveragingScheme(), ug::ApplySmoothVolumePosToTopLevel(), ug::ArteExpandFracs3D::establishNewVertices< false, ArteExpandFracs3D::VrtxFracProptsStatus::oneFracSuDoAtt >(), ug::NeuriteProjector::average_params(), ug::bp_defect_and_gradient(), ug::lg_ntree_traits_base< tree_dim, world_dim, elem_t_, common_data_t_ >::calculate_center(), ug::ntree< tree_dim, world_dim, TElem, TCommonData >::calculate_center_of_mass(), ug::CalculateBarycenter(), ug::CalculateCenter(), ug::CalculateNormalNoNormalize(), ug::CalculateRightBendVal(), ug::AABox< vector_t >::center(), ug::CollapseEdge(), ug::computeDiamondPointXCrossType(), ug::ComputeElementExtensionsSq(), ug::FileReaderSWC::create_grid(), ug::CreatePrism(), ug::node_tree::CreateSubOctrees(), ug::DropAPerpendicular(), ug::ElementNormal< ReferenceEdge, 3 >(), ug::ElementNormal< ReferenceQuadrilateral, 3 >(), ug::ElementNormal< ReferenceTriangle, 3 >(), ug::DarcyVelocityLinker< dim >::eval_and_deriv(), ug::DarcyVelocityLinker< dim >::evaluate(), ug::ExplicitGridFunctionGradient< TGridFunction >::evaluate(), ug::ExpandFractures2d(), ug::ExpandFractures2dArte(), ug::ExpandFractures3d(), ug::expandSingleFractureAtGivenSide(), ug::expandSingleFractureAtGivenSide< VecVertexOfFaceInfo >(), ug::ExtrudeCylinder(), ug::FaceQuality(), ug::FindNormal(), ug::GetEdgeOnTheLeft(), ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::global_to_local(), ug::node_tree::GrowBox(), ug::IntersectCoplanarTriangles(), ug::LaplacianSmooth(), ug::fv1_traits_ReferenceFace3d::NormalOnSCVF_Face(), ug::CylinderProjector::perform_projection(), ug::EllipticCylinderProjector::perform_projection(), ug::SomaProjector::perform_projection(), ug::SphereProjector::perform_projection(), ug::pos_on_surface_tip(), ug::SomaProjector::project_to_soma_surface(), ug::ProjectPointToPlane(), ug::ProjectPointToRay(), ug::ProjectToLimitPLoop(), ug::QualityGridGeneration(), ug::RayCylinderIntersection(), ug::RayPlaneIntersection(), ug::tet_rules::Refine(), ug::ParallelShiftIdentifier< TPosAA >::set_shift(), ug::SnapMarkerPointToGridVertex(), ug::TangentialSmooth(), ug::TangentialSmoothSimple(), ug::ObstacleInNormalDir< TDomain, TAlgebra >::transform_eulerian_coord_sys(), ug::TriangleFill(), ug::TriangleQuality(), ug::ConvectionShapesNoUpwind< TDim >::update(), ug::ConvectionShapesFullUpwind< TDim >::update(), ug::ConvectionShapesWeightedUpwind< TDim >::update(), ug::ConvectionShapesPartialUpwind< TDim >::update(), ug::ConvectionShapesSkewedUpwind< TDim >::update(), ug::ConvectionShapesLinearProfileSkewedUpwind< TDim >::update(), ug::VecNormalize(), and ug::Traverser_RayElementIntersection< tree_t >::visit_up().
|
inline |
Scales two Vectors, adds them and returns the sum in a third vector.
Referenced by ug::AdaptSurfaceGridToCylinder(), ug::ElementSideRayIntersectionWrapper< TRefElem, 2, 2 >::apply(), ug::ElementSideRayIntersectionWrapper< TRefElem, 3, 3 >::apply(), ug::SCVFofSCVRayIntersectionWrapper< 2, 2 >::apply(), ug::BiCGStab< TVector >::apply_return_defect(), ug::CG< TVector >::apply_return_defect(), ug::ApplySmoothManifoldPosToTopLevelAveragingScheme(), ug::ApplySmoothVolumePosToTopLevel(), ug::bridge::AlgebraCommon::VecScaleAddClass< TAlgebra >::assign(), ug::AssignSubsetColorsBlueToGreen(), ug::AssignSubsetColorsRedToGreen(), ug::NeuriteProjector::average_params(), ug::bp_defect_and_gradient(), ug::bp_newton_start_pos(), ug::Partitioner_DynamicBisection< TElem, dim >::calculate_global_dimensions(), ug::PowerMethod< TAlgebra >::calculate_max_eigenvalue(), ug::PowerMethod< TAlgebra >::calculate_min_eigenvalue(), ug::CalculateCenter(), ug::compute_angle(), ug::compute_ONB(), ComputeMidPoints(), ug::ComputeMidPoints(), ug::FVLineSourceOrSink< dim, TData >::corresponds_to(), ug::GenerateIcosahedron(), ug::node_tree::Traverser_ProjectPoint::handle_collision_edges(), ug::IntegrateNormalComponentOnManifold(), ug::IntegrateNormalGradientOnManifold(), ug::InterpolateValues(), ug::LaplacianSmooth(), ug::ReferenceMapping< ReferenceEdge, TWorldDim >::local_to_global(), ug::ReferenceMapping< ReferenceTriangle, TWorldDim >::local_to_global(), ug::ReferenceMapping< ReferenceQuadrilateral, TWorldDim >::local_to_global(), ug::ReferenceMapping< ReferenceTetrahedron, TWorldDim >::local_to_global(), ug::MatMultAdd(), ug::mat_operations_class< vector_t, matrix_t, MATRIX_USE_ROW_FUNCTIONS >::MatMultAdd(), ug::MatMultAddDirect(), ug::CylinderCutProjector::new_vertex(), ug::SubdivisionProjector::new_vertex(), ug::newton_for_bp_projection(), ug::pos_in_bp(), ug::pos_in_neurite(), ug::ProjectToLimitPLoop(), ug::ProjectToLimitSubdivBoundary(), ug::ProjectVerticesToSphere(), ug::ProlongateP1(), ug::QualityGridGeneration(), ug::SubdivisionProjector::refinement_begins(), ug::ReflectVectorAtPlane(), ug::ResolveEdgeEdgeIntersection(), ug::EllipticCylinderProjector::scale_point_to_radius(), ug::StandardLineSearch< TVector >::search(), ug::SetLagrangeEdgeMultiIndex(), ug::SlopeSmooth(), ug::TangentialSmooth(), ug::TangentialSmoothSimple(), ug::ObstacleInNormalDir< TDomain, TAlgebra >::transform_eulerian_coord_sys(), ug::TriangleBarycenter(), ug::TriangleCircumcenter(), ug::NewtonUpdaterGeneric< TVector >::updateSolution(), ug::FetiLayouts< TAlgebra >::vec_scale_add_on_dual(), ug::FetiLayouts< TAlgebra >::vec_scale_add_on_primal(), ug::FetiLayouts< TAlgebra >::vec_scale_append_on_dual(), ug::FetiLayouts< TAlgebra >::vec_scale_append_on_primal(), ug::VecScaleAdd(), ug::bridge::AlgebraCommon::VecScaleAdd2(), ug::bridge::AlgebraCommon::VecScaleAdd3(), ug::GMRES< TVector >::VecScaleAppend(), ug::VectorAssign(), and ug::WeightedFaceSmooth().
|
inline |
Scales three Vectors, adds them and returns the sum in a fourth vector.
|
inline |
Scales four Vectors, adds them and returns the sum in a fifth vector.
|
inline |
Scales a Vector and adds it to a second vector.
Referenced by ug::bp_defect_and_gradient(), ug::CalculateCenter(), ug::CalculateConstrainedSmoothVolumePosInTopLevel(), ug::CalculateSmoothCreaseManifoldPosInParentLevelLoopScheme(), ug::CalculateSmoothManifoldPosInParentLevelButterflyScheme(), ug::CalculateSmoothManifoldPosInParentLevelLoopScheme(), ug::CalculateSmoothManifoldPosInTopLevelAveragingScheme(), ug::CalculateSmoothVolumePosInTopLevel(), ug::DarcyVelocityLinker< dim >::eval_and_deriv(), ug::GridFunctionGradientData< TGridFunction >::eval_and_deriv(), ug::GradientDataExport< dim >::eval_and_deriv(), ug::GridFunctionGradientComponentData< TGridFunction >::eval_and_deriv(), ug::GlobalGridFunctionGradientData< TGridFunction >::evaluate(), ug::ExplicitGridFunctionGradient< TGridFunction >::evaluate(), ug::H1SemiDistIntegrand< TGridFunction >::evaluate(), ug::H1EnergyDistIntegrand< TGridFunction >::evaluate(), ug::H1DistIntegrand< TGridFunction >::evaluate(), ug::H1ErrorIntegrand< TGridFunction >::evaluate(), ug::H1SemiIntegrand< TGridFunction >::evaluate(), ug::H1EnergyIntegrand< TGridFunction >::evaluate(), ug::H1NormIntegrand< TGridFunction >::evaluate(), ug::linker_traits< MathVector< dim >, number >::mult_add(), ug::RayRayIntersection2d(), ug::SetLagrangeFaceMultiIndex(), ug::ConvectionShapesWeightedUpwind< TDim >::update(), ug::DimFVGeometry< TWorldDim, TDim >::update_local(), and ug::FVGeometry< TOrder, TElem, TWorldDim, TQuadOrder >::update_local_data().
|
inline |
Scales two Vectors, adds them and adds the sum to a third vector.
Scales two Vectors, adds the sum to a third vector.
|
inline |
Scales three Vectors, adds them and adds the sum to a fourth vector.
Scales three Vectors, adds the sum to a fourth vector.
|
inline |
Scales four Vectors, adds them and adds the sum to a fifth vector.
Scales four Vectors, adds the sum to a fifth vector.
|
inline |
Set each vector component to scalar (componentwise)
Set each vector component to scalar.
References s.
Referenced by ug::AABox< vector_t >::AABox(), ug::ntree< tree_dim, world_dim, TElem, TCommonData >::calculate_center_of_mass(), ug::Partitioner_DynamicBisection< TElem, dim >::calculate_global_dimensions(), ug::CalculateBarycenter(), ug::CalculateBoundaryVertexNormal2D(), ug::CalculateBoundaryVertexNormal3D(), ug::CalculateBoundingBox(), ug::CalculateCenter(), ug::CalculateConstrainedSmoothVolumePosInTopLevel(), ug::CalculateCreaseNormal(), ug::CalculateOuterNormal(), ug::CalculateSmoothCreaseManifoldPosInParentLevelLoopScheme(), ug::CalculateSmoothManifoldPosInParentLevelButterflyScheme(), ug::CalculateSmoothManifoldPosInParentLevelLoopScheme(), ug::CalculateSmoothManifoldPosInTopLevelAveragingScheme(), ug::CalculateSmoothVolumePosInTopLevel(), ug::ClusterElementStacks< elem_t, vector_t >::ClusterElementStacks(), ug::StdLinConsistentGravity< refDim >::compute(), ug::StdLinConsistentGravityX< refDim >::compute(), ug::ComputeGradientCrouzeixRaviart(), ug::ComputeGradientLagrange1(), ug::GridFunctionGradientData< TGridFunction >::eval_and_deriv(), ug::GradientDataExport< dim >::eval_and_deriv(), ug::GridFunctionGradientComponentData< TGridFunction >::eval_and_deriv(), ug::GradientEvaluator_LagrangeP1< TFunction >::evaluate(), ug::GlobalGridFunctionGradientData< TGridFunction >::evaluate(), ug::ExplicitGridFunctionGradient< TGridFunction >::evaluate(), ug::GlobalGridFunctionNumberData< TGridFunction, elemDim >::evaluate(), ug::L2DistIntegrand< TGridFunction >::evaluate(), ug::H1SemiDistIntegrand< TGridFunction >::evaluate(), ug::H1EnergyDistIntegrand< TGridFunction >::evaluate(), ug::H1DistIntegrand< TGridFunction >::evaluate(), ug::H1ErrorIntegrand< TGridFunction >::evaluate(), ug::H1NormIntegrand< TGridFunction >::evaluate(), ug::UserDataDistIntegrandSq< TData, TGridFunction >::evaluate(), ug::bridge::Evaluate::NumberValuedUserDataEvaluator< TDomain, TAlgebra >::evaluateOnThisProcess(), ug::bridge::Evaluate::VectorValuedUserDataEvaluator< TDomain, TAlgebra >::evaluateOnThisProcess(), ug::PiecewiseConstantLSFS< TRefElem >::grad(), ug::IntegrateNormalComponentOnManifold(), ug::IntegrateNormalGradientOnManifold(), ug::LaplacianSmooth(), ug::MarkForAdaption_GradientAverage(), ug::StdLinConsistentGravity< refDim >::prepare_edge(), ug::StdLinConsistentGravity< refDim >::prepare_quadrilateral(), ug::StdLinConsistentGravity< refDim >::prepare_triangle(), ug::ProjectVerticesToCloseEdges(), ug::ProjectVerticesToCloseFaces(), ug::ProlongateElemwise(), ug::SubdivisionProjector::refinement_begins(), ug::RestrictElemwise(), ug::ConvectionShapesNoUpwind< TDim >::update(), ug::ConvectionShapesFullUpwind< TDim >::update(), ug::ConvectionShapesWeightedUpwind< TDim >::update(), ug::ConvectionShapesPartialUpwind< TDim >::update(), ug::ConvectionShapesSkewedUpwind< TDim >::update(), ug::ConvectionShapesLinearProfileSkewedUpwind< TDim >::update(), ug::FetiLayouts< TAlgebra >::vec_set_on_dual(), ug::FetiLayouts< TAlgebra >::vec_set_on_primal(), ug::Traverser_RayElementIntersection< tree_t >::visit_up(), ug::WeightedEdgeSmooth(), ug::WeightedFaceSmooth(), and ug::WeightedNormalSmooth().
|
inline |
Subtract a scalar from a vector (componentwise)
References s.
|
inline |
subtracts v2 from v1 and stores the result in a vOut
Referenced by ug::FV1IBGeometry< TElem, TWorldDim >::adapt(), ug::DimFV1IBGeometry< TDim, TWorldDim >::adapt(), ug::AdaptSurfaceGridToCylinder(), ug::NeuriteProjector::average_params(), ug::lg_ntree_traits_base< tree_dim, world_dim, elem_t_, common_data_t_ >::box_diagonal(), ug::bp_defect_and_gradient(), ug::bp_newton_start_pos(), ug::CalculateAngles(), ug::CalculateCreaseNormal(), ug::CalculateHexahedronAspectRatio(), ug::CalculateMaxAngle(), ug::CalculateMaxDihedral(), ug::CalculateMinAngle(), ug::CalculateMinDihedral(), ug::CalculateMinTriangleHeight(), ug::CalculateNormal(), ug::CalculateNormalNoNormalize(), ug::CalculateOctahedronVolume(), ug::CalculateOuterNormal(), ug::CalculatePolychainEdgeNormals(), ug::CalculatePyramidVolume(), ug::CalculateTetrahedronVolume(), ug::CalculateTriangleNormalNoNormalize(), ug::CheckOrientation(), ug::DelaunayInfo< TAAPos >::classify_face(), ug::computeDiamondPointXCrossType(), ug::ComputeElementExtensionsSq(), ug::ContainsPoint(), ug::FVPointSourceOrSink< dim, TData >::corresponds_to(), ug::FVLineSourceOrSink< dim, TData >::corresponds_to(), ug::CutEdgesWithPlane(), ug::DelaunayLineLineIntersection(), ug::DistancePointToTriangle(), ug::DropAPerpendicular(), ug::EdgeOrientation< TDomain >::elem_evaluate(), ug::ElementNormal< ReferenceEdge, 3 >(), ug::ElementNormal< ReferenceQuadrilateral, 3 >(), ug::ElementNormal< ReferenceTriangle, 3 >(), ug::ElementSize< ReferenceHexahedron, 3 >(), ug::ElementSize< ReferenceOctahedron, 3 >(), ug::ElementSize< ReferencePrism, 3 >(), ug::ElementSize< ReferencePyramid, 3 >(), ug::ElementSize< ReferenceQuadrilateral, 3 >(), ug::ElementSize< ReferenceTetrahedron, 3 >(), ug::ElementSize< ReferenceTriangle, 3 >(), ug::DarcyVelocityLinker< dim >::eval_and_deriv(), ug::DarcyVelocityLinker< dim >::evaluate(), ug::ExpandFractures2dArte(), ug::expandSingleFractureAtGivenSide(), ug::AABox< vector_t >::extension(), ug::ExtrudeLayers(), ug::FaceQuality(), ug::FindNormal(), ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::global_to_local(), ug::lg_ntree_traits_base< tree_dim, world_dim, elem_t_, common_data_t_ >::grow_box(), ug::node_tree::GrowBox(), ug::IdentifySubsets(), ug::DelaunayInfo< TAAPos >::init_marks(), ug::IntersectCoplanarTriangles(), ug::IntersectPlaneWithTetrahedron(), ug::DelaunayInfo< TAAPos >::is_classifiable(), ug::NeuriteProjector::IsElementInsideSphere(), ug::LaplacianSmooth(), ug::LineBoxIntersection(), ug::LineLineIntersection2d(), ug::LineLineProjection(), ug::LineSphereIntersection(), ug::MarkAnisotropicOnlyX(), ug::MarkCorners(), ug::MarkForRefinement_AnisotropicDirection(), ug::MarkForRefinementByDirection(), ug::ParallelShiftIdentifier< TPosAA >::match_impl(), ug::MultiEdgeSplit(), ug::CylinderCutProjector::new_vertex(), ug::PlaneCutProjector::new_vertex(), ug::fv1_traits< ReferenceEdge, 2 >::NormalOnSCVF(), ug::fv1_traits< ReferenceEdge, 3 >::NormalOnSCVF(), ug::OrderDownwindForDofDist(), ug::AABox< ug::MathVector< dim > >::overlaps_line(), ug::CylinderProjector::perform_projection(), ug::SomaProjector::perform_projection(), ug::SphereProjector::perform_projection(), ug::PointFaceTest(), ug::PointIsInsideQuadrilateral(), ug::PointIsInsideTetrahedron(), ug::PointIsInsideTriangle(), ug::pos_in_bp(), ug::pos_on_surface_tip(), ug::StdLinConsistentGravityX< refDim >::prepare_simplex(), ug::SomaProjector::project_to_soma_surface(), ug::ProjectPointToLine(), ug::ProjectPointToPlane(), ug::ProjectPointToRay(), ug::ProjectVerticesToSphere(), ug::QualityGridGeneration(), ug::RayCylinderIntersection(), ug::RayLineIntersection2d(), ug::RayPlaneIntersection(), ug::RayRayIntersection2d(), ug::RayRayProjection(), ug::ResolveEdgeFaceIntersection(), ug::EllipticCylinderProjector::scale_point_to_radius(), ug::SelectEdgesByDirection(), ug::SelectKinkVertices(), ug::SelectSmoothEdgePath(), ug::SelectSubsetEdgesByDirection(), ug::SetLagrangeFaceMultiIndex(), ug::SimplifyPolylines(), ug::SideAndElemErrEstData< TDomain >::summarize_err_est_data(), ug::TangentialSmooth(), ug::TransformPointSetTo2D(), ug::TriangleArea(), ug::TriangleBoxIntersection(), ug::TriangleCircumcenter(), ug::TriangleFill(), ug::TriangleFill_SweepLine(), ug::TriangleQuality(), ug::TrySwap(), ug::ReferenceMapping< ReferenceEdge, TWorldDim >::update(), ug::ReferenceMapping< ReferenceTriangle, TWorldDim >::update(), ug::ReferenceMapping< ReferenceTetrahedron, TWorldDim >::update(), ug::HFV1Geometry< TElem, TWorldDim >::update(), ug::DimHFV1Geometry< TDim, TWorldDim >::update(), ug::UpdateChainInfo(), ug::VecDistanceSq(), ug::WeightedEdgeSmooth(), and ug::WeightedFaceSmooth().
|
inline |
References ug::VecLength().
Referenced by ug::NeuriteProjector::average_params(), ug::ComputeGradientCrouzeixRaviart(), ug::ComputeGradientLagrange1(), ug::ComputeGradientPiecewiseConstant(), ug::ElementNormal< ReferenceEdge, 3 >(), ug::ElementSideRayIntersection(), ug::ElementSize< ReferenceQuadrilateral, 3 >(), ug::ElementSize< ReferenceTriangle, 3 >(), ug::EvaluateGradientJump_Norm(), ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::global_to_local(), ug::SCVFofSCVRayIntersection(), ug::ConvectionShapesSkewedUpwind< TDim >::update(), ug::ConvectionShapesLinearProfileSkewedUpwind< TDim >::update(), ug::DimFV1Geometry< TDim, TWorldDim >::update_boundary_faces(), ug::FV1IBGeometry< TElem, TWorldDim >::update_boundary_faces(), ug::DimFV1IBGeometry< TDim, TWorldDim >::update_boundary_faces(), ug::DimCRFVGeometry< TDim, TWorldDim >::update_boundary_faces(), ug::CRFVGeometry< TElem, TWorldDim >::update_boundary_faces(), ug::FVGeometry< TOrder, TElem, TWorldDim, TQuadOrder >::update_boundary_faces(), ug::DimFVGeometry< TWorldDim, TDim >::update_boundary_faces(), and ug::DimFEGeometry< TWorldDim, TRefDim >::update_boundary_faces().
|
inline |
UG_API std::ostream & ug::write_plain_txt | ( | std::ostream & | outStream, |
const ug::MathVector< 1 > & | v | ||
) |
plain text output of MathVector objects: space-separated coordinates
References ug::MathVector< N, T >::coord().
UG_API std::ostream & ug::write_plain_txt | ( | std::ostream & | outStream, |
const ug::MathVector< 2 > & | v | ||
) |
plain text output of MathVector objects: space-separated coordinates
References ug::MathVector< N, T >::coord().
UG_API std::ostream & ug::write_plain_txt | ( | std::ostream & | outStream, |
const ug::MathVector< 3 > & | v | ||
) |
plain text output of MathVector objects: space-separated coordinates
References ug::MathVector< N, T >::coord().
UG_API std::ostream & ug::write_plain_txt | ( | std::ostream & | outStream, |
const ug::MathVector< 4 > & | v | ||
) |
plain text output of MathVector objects: space-separated coordinates
References ug::MathVector< N, T >::coord().