|
wuzp
Wrong Unit? Zero Points! Compile-time checks for units, coordinate systems and points vs. vectors.
|
Concepts | |
| concept | AbsoluteOrRelative |
| Absolute or Relative: whether a tensor is a point or a vector. | |
| concept | AnyCoordinateSystem |
| Any coordinate system: a specialization of CoordinateSystem, including the intermediate ones of transformations. | |
| concept | AnyIndices |
| Any indices of a tensor: a specialization of Indices, e.g. Indices<Up, Down>. | |
| concept | AnyMatrixSize |
| Any size of a matrix: a MatrixSize with rows and columns. | |
| concept | AnyQuantities |
| Any quantity matrix: a specialization of Quantities, including Quantity. | |
| concept | AnyRotation |
| A rotation, i.e. an ActiveSpatialRotation or a PassiveSpatialRotation, whose matrix is orthogonal with determinant 1, so that its inverse is its transpose: e.g. the rotation of a proper rigid transformation. | |
| concept | AnySpatialVector |
| A spatial vector of wuzp, i.e. a type that derives from SpatialVector: SpatialVelocity, SpatialAcceleration or SpatialForce. | |
| concept | AnyTensor |
| Any tensor: a specialization of Tensor, including points, vectors and their aliases. | |
| concept | AnyTransformation |
| A transformation of wuzp, i.e. a type that derives from Transformation, also through a class that derives from a transformation. | |
| concept | AnyUnit |
| Any unit of any units backend: a specialization of Unit. | |
| concept | AnyUnitMatrix |
| Any unit matrix: a TypeMatrix of units. | |
| concept | AnyValueMatrix |
| The alias template ValueMatrix<ValueT_, RowsV_, ColsV_> of any value matrix backend, e.g. wuzp_eigen::ValueMatrix, rather than e.g. the matrices of its linear algebra library. | |
| concept | AnyValuesWrapper |
| Any value matrix: a specialization of ValuesWrapper. | |
| concept | ArithmeticValue |
| An arithmetic type, e.g. int, float or double: the type of the elements of value matrices. | |
| concept | CopiesOrMoves |
| Whether constructing a Class from the arguments copies or moves it, i.e. whether they are a single Class. | |
| concept | EuclideanCoordinateSystem |
| A coordinate system with the Euclidean metric, the default, e.g. CoordinateSystem<World>: the coordinate system of rotations and proper rigid transformations, whose orthogonality is defined by this metric (see Metric). | |
| concept | EuclideanOrMinkowski |
| The metric of a coordinate system: Euclidean or Minkowski. | |
| concept | InvertibleValueMatrixBackend |
| A value matrix backend that also provides the matrix inverse (Inverse) of floating point matrices, and the determinant (Determinant) of floating point and integer matrices: the core rejects the inverse of an integer matrix, which is not an integer matrix in general, but not its determinant (see "Inverses and determinants" in DESIGN.md). | |
| concept | MinkowskiCoordinateSystem |
| A coordinate system with the Minkowski metric, e.g. CoordinateSystem<Spacetime, Minkowski>: an inertial frame of special relativity, in which spacetime vectors are expressed and between which Lorentz transformations transform (see Metric). | |
| concept | Specializable |
| Whether the template can be specialized with the arguments, e.g. whether their number fits and they satisfy its constraints. | |
| concept | UnitSystem |
| The units of a units backend, e.g. AccessUnits<AccessImplementation<double>>: the base and derived units that the core and its aliases use, e.g. Length and Force, which are consistent with the arithmetic traits of the backend, Product, Division, Power (with rational exponents), Inverse and Identity, e.g. Velocity is Length divided by Time, and also AngularVelocity times Length, for the transport formulas of rigid body kinematics, e.g. w x r. | |
| concept | UpOrDown |
| Up or Down: whether an index of a tensor is upper (contravariant) or lower (covariant). | |
| concept | ValueMatrixBackend |
| A value matrix backend, given as its alias template ValueMatrix<ValueT_, RowsV_, ColsV_>, e.g. wuzp_eigen::ValueMatrix: its value matrices are ValuesWrappers of the given value type and size, and it specializes the traits the core needs for their implementation types. | |
Typedefs | |
| using | Absolute = internal::AbsoluteImpl<true> |
| using | Relative = internal::AbsoluteImpl<false> |
| template<int Size, typename T> | |
| using | HomogeneousTuple = decltype(std::tuple_cat(std::declval<std::array<T, std::size_t{Size}>>())) |
| template<int Start, int End, int Increment, typename Tuple> | |
| using | GetSubset = GetSubsetImpl<Start, End, Increment, Tuple, std::make_index_sequence<std::tuple_size<Tuple>::value>> |
| template<int ValueV_> | |
| using | Integer = Rational<ValueV_, 1> |
| template<typename ValueT_, typename UnitT_> | |
| using | Quantity = Quantities<ValueT_, TypeMatrixImpl<MatrixSize<1, 1>, std::tuple<UnitT_>>> |
| Container to store a single quantity. | |
| template<int DividendV_, int DivisorV_> | |
| using | Rational = typename internal::ReduceRational<DividendV_, DivisorV_>::type |
| template<typename QuantityVectorT_, typename CoordinateSystemT_> | |
| using | Vector = Tensor<Indices<Up>, QuantityVectorT_, CoordinateSystemT_, Relative> |
| template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename UnitT_, typename CoordinateSystemT_> | |
| using | HomogeneousVector = Vector<Quantities<ValuesT_<ValueT_, DimensionV_, 1>, TypeMatrix<DimensionV_, 1, UnitT_>>, CoordinateSystemT_> |
| template<typename QuantityVectorT_, typename CoordinateSystemT_> | |
| using | Covector = Tensor<Indices<Down>, QuantityVectorT_, CoordinateSystemT_, Relative> |
| template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename UnitT_, typename CoordinateSystemT_> | |
| using | HomogeneousCovector = Covector<Quantities<ValuesT_<ValueT_, 1, DimensionV_>, TypeMatrix<1, DimensionV_, UnitT_>>, CoordinateSystemT_> |
| template<typename QuantityVectorT_, typename CoordinateSystemT_> | |
| using | Point = Tensor<Indices<Up>, QuantityVectorT_, CoordinateSystemT_, Absolute> |
| A point, or a batch of points, one per column, e.g. a point cloud. | |
| template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename UnitT_, typename CoordinateSystemT_> | |
| using | HomogeneousPoint = Point<Quantities<ValuesT_<ValueT_, DimensionV_, 1>, TypeMatrix<DimensionV_, 1, UnitT_>>, CoordinateSystemT_> |
| template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | DirectionVector |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | DirectionVector2 = DirectionVector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | DirectionVector3 = DirectionVector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | RotationVector3 |
| A rotation vector, the angle of a rotation times its unit axis, e.g. the logarithm of a rotation, an increment of boxPlus() or the angular velocity times a time step (see ActiveSpatialRotation::fromRotationVector()). | |
| template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | PositionPoint |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | PositionPoint2 = PositionPoint<2, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | PositionPoint3 = PositionPoint<3, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | PositionVector |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | PositionVector2 = PositionVector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | PositionVector3 = PositionVector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | VelocityVector |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | VelocityVector2 = VelocityVector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | VelocityVector3 = VelocityVector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | AccelerationVector |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | AccelerationVector2 = AccelerationVector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | AccelerationVector3 = AccelerationVector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | AngularVelocityVector |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | AngularVelocityVector2 = AngularVelocityVector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | AngularVelocityVector3 = AngularVelocityVector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | AngularAccelerationVector |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | AngularAccelerationVector2 = AngularAccelerationVector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | AngularAccelerationVector3 = AngularAccelerationVector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | ForceVector |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | ForceVector2 = ForceVector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | ForceVector3 = ForceVector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | ForceCovector |
| A force as a covector, the dual of a velocity: their pairing innerProduct(force, velocity) is the power, which needs no metric, and a Jacobian pulls it back, e.g. into the joint torques tau = J^T F (see Jacobian::pullback()), like the spatial force vectors of Featherstone, whose space is the dual of the space of motion vectors, with the power v . | |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | ForceCovector2 = ForceCovector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | ForceCovector3 = ForceCovector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | TorqueVector |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | TorqueVector2 = TorqueVector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | TorqueVector3 = TorqueVector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | TimePoint = HomogeneousPoint<1, ValuesT_, ValueT_, typename AccessUnits<AccessImplementation<ValueT_>>::Time, CoordinateSystemT_> |
| A point in time, a one-dimensional point in a coordinate system whose origin is an epoch, e.g. CoordinateSystem<Epoch>. | |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | Duration = HomogeneousVector<1, ValuesT_, ValueT_, typename AccessUnits<AccessImplementation<ValueT_>>::Time, CoordinateSystemT_> |
| template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | SpacetimePoint = PositionPoint<DimensionV_, ValuesT_, ValueT_, CoordinateSystemT_> |
| An event, a point in spacetime, with the time component first, in length units (x^0 = c t), expressed in an inertial frame of special relativity, i.e. a coordinate system with the Minkowski metric, e.g. CoordinateSystem<Spacetime, Minkowski> (see Minkowski). | |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | SpacetimePoint2 = SpacetimePoint<2, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | SpacetimePoint3 = SpacetimePoint<3, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | SpacetimePoint4 = SpacetimePoint<4, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | SpacetimeVector = PositionVector<DimensionV_, ValuesT_, ValueT_, CoordinateSystemT_> |
| A displacement in spacetime, with the time component first, in length units (x^0 = c t), expressed in a coordinate system with the Minkowski metric (see SpacetimePoint). | |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | SpacetimeVector2 = SpacetimeVector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | SpacetimeVector3 = SpacetimeVector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | SpacetimeVector4 = SpacetimeVector<4, ValuesT_, ValueT_, CoordinateSystemT_> |
| using | FromSimilar = Tag<FromSimilarLabel> |
| using | FromImplementation = Tag<FromImplementationLabel> |
| using | FromImplementationArgs = Tag<FromImplementationArgsLabel> |
| template<typename TypeT_> | |
| using | Type = TypeMatrix<1, 1, TypeT_> |
| template<size_t ColsV_, typename... Ts> | |
| using | ToRows = ToRowsImpl<ColsV_, std::tuple<Ts...>, std::make_index_sequence<sizeof...(Ts) / ColsV_>> |
| template<size_t ColsV_, typename... Ts> | |
| using | ToCols = ToColsImpl<ColsV_, std::tuple<Ts...>, std::make_index_sequence<ColsV_>> |
| template<int SizeV_, typename ZeroType, typename OneType> | |
| using | DiagonalTypeMatrix |
| template<int RowsV_, int ColsV_, typename... Types> | |
| using | TypeMatrix = typename CreateTypeMatrix<RowsV_, ColsV_, Types...>::type |
| A matrix storing types at compile-time. | |
| template<int RowsV_, typename... Types> | |
| using | TypeVector = typename CreateTypeMatrix<RowsV_, 1, Types...>::type |
| A vector storing types at compile-time. | |
| template<typename TypeT_> | |
| using | TypeScalar = typename CreateTypeMatrix<1, 1, TypeT_>::type |
| A scalar storing a type at compile-time. | |
| template<typename ValuesT_, typename ValueT_> | |
| using | ScalarValues = typename Rebind<ValuesT_, ValueT_, 1, 1>::type |
| Evaluated 1x1 values of the value matrix backend of ValuesT_, with the value type ValueT_: e.g. a scalar that an operation combines with values of the type ValuesT_, which is converted into values of the same backend. | |
| template<template< typename, int, int > typename ValuesT_, int DimensionV_, typename CoordinateSystemT_, typename ValueT_> | |
| using | ActiveProperRigidTransformation |
| The active proper rigid transformation of a rotation and a spatial translation, which first rotates, then translates: x -> R x + t (see ActiveProperRigidTransformationTemplate). | |
| template<template< typename, int, int > typename ValuesT_, typename CoordinateSystemT_, typename ValueT_> | |
| using | ActiveProperRigidTransformation2 = ActiveProperRigidTransformation<ValuesT_, 2, CoordinateSystemT_, ValueT_> |
| template<template< typename, int, int > typename ValuesT_, typename CoordinateSystemT_, typename ValueT_> | |
| using | ActiveProperRigidTransformation3 = ActiveProperRigidTransformation<ValuesT_, 3, CoordinateSystemT_, ValueT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | ActiveSpatialRotation2 = ActiveSpatialRotation<ValuesT_, ValueT_, CoordinateSystemT_, 2> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | ActiveSpatialRotation3 = ActiveSpatialRotation<ValuesT_, ValueT_, CoordinateSystemT_, 3> |
| template<template< typename, int, int > typename ValuesT_, int DimensionV_, typename ValueT_, typename CoordinateSystemT_> | |
| using | ActiveSpatialTranslation |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | ActiveSpatialTranslation2 = ActiveSpatialTranslation<ValuesT_, 2, ValueT_, CoordinateSystemT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_> | |
| using | ActiveSpatialTranslation3 = ActiveSpatialTranslation<ValuesT_, 3, ValueT_, CoordinateSystemT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename FromT_, typename ToT_> | |
| using | LorentzTransformation2 = LorentzTransformation<ValuesT_, ValueT_, FromT_, ToT_, 2> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename FromT_, typename ToT_> | |
| using | LorentzTransformation3 = LorentzTransformation<ValuesT_, ValueT_, FromT_, ToT_, 3> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename FromT_, typename ToT_> | |
| using | LorentzTransformation4 = LorentzTransformation<ValuesT_, ValueT_, FromT_, ToT_, 4> |
| template<template< typename, int, int > typename ValuesT_, int DimensionV_, typename FromT_, typename ToT_, typename ValueT_> | |
| using | PassiveProperRigidTransformation |
| The passive proper rigid transformation of a rotation and a spatial translation from From to To, which first rotates, then translates: p -> R p + t (see PassiveProperRigidTransformationTemplate). | |
| template<template< typename, int, int > typename ValuesT_, typename FromT_, typename ToT_, typename ValueT_> | |
| using | PassiveProperRigidTransformation2 = PassiveProperRigidTransformation<ValuesT_, 2, FromT_, ToT_, ValueT_> |
| template<template< typename, int, int > typename ValuesT_, typename FromT_, typename ToT_, typename ValueT_> | |
| using | PassiveProperRigidTransformation3 = PassiveProperRigidTransformation<ValuesT_, 3, FromT_, ToT_, ValueT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename FromT_, typename ToT_> | |
| using | PassiveSpatialRotation2 = PassiveSpatialRotation<ValuesT_, ValueT_, FromT_, ToT_, 2> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename FromT_, typename ToT_> | |
| using | PassiveSpatialRotation3 = PassiveSpatialRotation<ValuesT_, ValueT_, FromT_, ToT_, 3> |
| template<template< typename, int, int > typename ValuesT_, int DimensionV_, typename ValueT_, typename FromT_, typename ToT_> | |
| using | PassiveSpatialTranslation |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename FromT_, typename ToT_> | |
| using | PassiveSpatialTranslation2 = PassiveSpatialTranslation<ValuesT_, 2, ValueT_, FromT_, ToT_> |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename FromT_, typename ToT_> | |
| using | PassiveSpatialTranslation3 = PassiveSpatialTranslation<ValuesT_, 3, ValueT_, FromT_, ToT_> |
Functions | |
| template<typename First, typename... Rest> | |
| void | applyCommas (First &&first, Rest &&... rest) |
| Applies the comma operator from left to right: applyCommas(a, b, c) evaluates ((a, b), c). | |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename ValuesRhsT_, typename UnitsRhsT_> | |
| auto | sum (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs) |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename ValuesRhsT_, typename UnitsRhsT_> | |
| auto | operator+ (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs) |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename ValuesRhsT_, typename UnitsRhsT_> | |
| auto | difference (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs) |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename ValuesRhsT_, typename UnitsRhsT_> | |
| auto | operator- (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs) |
| template<typename ValuesT_, typename UnitsT_> | |
| auto | negation (const Quantities< ValuesT_, UnitsT_ > &rhs) |
| template<typename ValuesT_, typename UnitsT_> | |
| auto | operator- (const Quantities< ValuesT_, UnitsT_ > &rhs) |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename ValueRhsT_> | |
| auto | product (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const ValueRhsT_ rhs) |
| template<typename ValueLhsT_, typename ValuesRhsT_, typename UnitsRhsT_> | |
| auto | product (const ValueLhsT_ lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs) |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | product (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename ValuesRhsT_, typename UnitsRhsT_> | |
| auto | product (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs) |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename ValuesRhsT_, typename UnitsRhsT_> | |
| auto | product (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs) |
| The elementwise product of quantities of the same size, or with a quantity. | |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename ValueRhsT_> | |
| auto | operator* (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const ValueRhsT_ rhs) |
| template<typename ValueLhsT_, typename ValuesRhsT_, typename UnitsRhsT_> | |
| auto | operator* (const ValueLhsT_ lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs) |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | operator* (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename ValuesRhsT_, typename UnitsRhsT_> | |
| auto | operator* (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs) |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename ValuesRhsT_, typename UnitsRhsT_> | |
| auto | operator* (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs) |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename ValuesRhsT_, typename UnitsRhsT_> | |
| auto | innerProduct (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs) |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename ValuesRhsT_, typename UnitsRhsT_> | |
| auto | outerProduct (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs) |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename ValueRhsT_> | |
| auto | division (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const ValueRhsT_ rhs) |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | division (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename ValueRhsT_, typename UnitRhsT_> | |
| auto | division (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantity< ValueRhsT_, UnitRhsT_ > &rhs) |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename ValuesRhsT_, typename UnitsRhsT_> | |
| auto | division (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs) |
| The elementwise quotient of quantities of the same size. | |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename ValueRhsT_> | |
| auto | operator/ (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const ValueRhsT_ rhs) |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | operator/ (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename ValueRhsT_, typename UnitRhsT_> | |
| auto | operator/ (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantity< ValueRhsT_, UnitRhsT_ > &rhs) |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename ValuesRhsT_, typename UnitsRhsT_> | |
| bool | operator== (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs) |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename ValuesRhsT_, typename UnitsRhsT_> | |
| bool | operator!= (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs) |
| template<typename ValuesT_, typename UnitsT_> | |
| std::ostream & | operator<< (std::ostream &lhs, const Quantities< ValuesT_, UnitsT_ > &rhs) |
| template<typename ExponentT_, typename ValuesT_, typename UnitsT_> | |
| auto | pow (const Quantities< ValuesT_, UnitsT_ > &quantities) |
| The quantities raised to a rational power P/Q, elementwise, e.g. pow<Rational<1, 2>>(area) is a length, and pow<2>() of a length and a time is an area and a squared time. | |
| template<int ExponentV_, typename ValuesT_, typename UnitsT_> | |
| auto | pow (const Quantities< ValuesT_, UnitsT_ > &quantities) |
| template<int ExponentDividendV_, int ExponentDivisorV_, typename ValuesT_, typename UnitsT_> | |
| auto | pow (const Quantities< ValuesT_, UnitsT_ > &quantities) |
| template<typename ValuesT_, typename UnitsT_> | |
| auto | sqrt (const Quantities< ValuesT_, UnitsT_ > &quantities) |
| The square root, elementwise: pow<1, 2>(), computed with std::sqrt (https://en.cppreference.com/w/cpp/numeric/math/sqrt), e.g. the square root of an area is a length. | |
| template<typename ValuesT_, typename UnitsT_> | |
| auto | cbrt (const Quantities< ValuesT_, UnitsT_ > &quantities) |
| The cube root, elementwise: pow<1, 3>(), computed with std::cbrt (https://en.cppreference.com/w/cpp/numeric/math/cbrt), e.g. the cube root of a volume is a length. | |
| template<typename ValuesT_, typename UnitsT_> | |
| auto | abs (const Quantities< ValuesT_, UnitsT_ > &quantities) |
| The absolute value, elementwise, of the same unit, like std::abs (https://en.cppreference.com/w/cpp/numeric/math/fabs), and the values themselves for unsigned values, for which std::abs is ambiguous. | |
| template<typename ValuesT_, typename UnitsT_> | |
| auto | sin (const Quantities< ValuesT_, UnitsT_ > &angles) |
| The sine of angles in radians, elementwise, like std::sin (https://en.cppreference.com/w/cpp/numeric/math/sin): dimensionless quantities. | |
| template<typename ValuesT_, typename UnitsT_> | |
| auto | cos (const Quantities< ValuesT_, UnitsT_ > &angles) |
| The cosine of angles in radians, elementwise, like std::cos (https://en.cppreference.com/w/cpp/numeric/math/cos), see sin(). | |
| template<typename ValuesT_, typename UnitsT_> | |
| auto | tan (const Quantities< ValuesT_, UnitsT_ > &angles) |
| The tangent of angles in radians, elementwise, like std::tan (https://en.cppreference.com/w/cpp/numeric/math/tan), see sin(). | |
| template<typename ValuesT_, typename UnitsT_> | |
| auto | asin (const Quantities< ValuesT_, UnitsT_ > &quantities) |
| The arc sine of dimensionless quantities, elementwise, like std::asin (https://en.cppreference.com/w/cpp/numeric/math/asin): the angles in [-pi/2, pi/2] in radians, which are dimensionless (see "Angles are dimensionless" in DESIGN.md). | |
| template<typename ValuesT_, typename UnitsT_> | |
| auto | acos (const Quantities< ValuesT_, UnitsT_ > &quantities) |
| The arc cosine of dimensionless quantities, elementwise, like std::acos (https://en.cppreference.com/w/cpp/numeric/math/acos): the angles in [0, pi] in radians, see asin(). | |
| template<typename ValuesT_, typename UnitsT_> | |
| auto | atan (const Quantities< ValuesT_, UnitsT_ > &quantities) |
| The arc tangent of dimensionless quantities, elementwise, like std::atan (https://en.cppreference.com/w/cpp/numeric/math/atan): the angles in [-pi/2, pi/2] in radians, see asin(). | |
| template<typename ValuesT_, typename UnitsT_> | |
| auto | exp (const Quantities< ValuesT_, UnitsT_ > &quantities) |
| The exponential function e^x of dimensionless quantities, elementwise, like std::exp (https://en.cppreference.com/w/cpp/numeric/math/exp): not the matrix exponential of a matrix. | |
| template<typename ValuesT_, typename UnitsT_> | |
| auto | log (const Quantities< ValuesT_, UnitsT_ > &quantities) |
| The natural logarithm of dimensionless quantities, elementwise, like std::log (https://en.cppreference.com/w/cpp/numeric/math/log): NaN for negative values, and -infinity for zero. | |
| template<typename ValuesYT_, typename UnitYT_, typename ValuesXT_, typename UnitXT_> | |
| auto | atan2 (const Quantity< ValuesYT_, UnitYT_ > &y, const Quantity< ValuesXT_, UnitXT_ > &x) |
| The angle of the point (x, y) from the positive x axis, in [-pi, pi] in radians, of two quantities with the same unit, e.g. lengths, like std::atan2 (https://en.cppreference.com/w/cpp/numeric/math/atan2): y comes first, the angle is counterclockwise from the x axis to the y axis, and its branch cut is the negative x axis, where it is pi for y = +0 and -pi for y = -0. | |
| template<typename ValuesXT_, typename UnitXT_, typename ValuesYT_, typename UnitYT_> | |
| auto | hypot (const Quantity< ValuesXT_, UnitXT_ > &x, const Quantity< ValuesYT_, UnitYT_ > &y) |
| The length sqrt(x^2 + y^2) of two quantities with the same unit, e.g. the components of a vector, without overflow or underflow in the intermediate steps, like std::hypot (https://en.cppreference.com/w/cpp/numeric/math/hypot). | |
| template<typename ValuesLhsT_, typename UnitLhsT_, typename ValuesRhsT_, typename UnitRhsT_> | |
| auto | min (const Quantity< ValuesLhsT_, UnitLhsT_ > &lhs, const Quantity< ValuesRhsT_, UnitRhsT_ > &rhs) |
| The smaller of two quantities with the same unit, like std::min (https://en.cppreference.com/w/cpp/algorithm/min), which returns lhs if neither is smaller, e.g. if one is NaN. | |
| template<typename ValuesT_, typename UnitT_> | |
| auto | min (const Quantity< ValuesT_, UnitT_ > &lhs, const Quantity< ValuesT_, UnitT_ > &rhs) |
| min() of two quantities of the same type. | |
| template<typename ValuesLhsT_, typename UnitLhsT_, typename ValuesRhsT_, typename UnitRhsT_> | |
| auto | max (const Quantity< ValuesLhsT_, UnitLhsT_ > &lhs, const Quantity< ValuesRhsT_, UnitRhsT_ > &rhs) |
| The larger of two quantities with the same unit, like std::max (https://en.cppreference.com/w/cpp/algorithm/max), which returns lhs if neither is larger, e.g. if one is NaN. | |
| template<typename ValuesT_, typename UnitT_> | |
| auto | max (const Quantity< ValuesT_, UnitT_ > &lhs, const Quantity< ValuesT_, UnitT_ > &rhs) |
| max() of two quantities of the same type, see min(). | |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| auto | sum (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| auto | operator+ (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| auto | difference (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| auto | operator- (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| template<typename IndicesT_, typename QuantitiesT_, typename CoordinateSystemT_, typename AbsoluteT_> | |
| auto | negation (const Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > &rhs) |
| template<typename IndicesT_, typename QuantitiesT_, typename CoordinateSystemT_, typename AbsoluteT_> | |
| auto | operator- (const Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > &rhs) |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, ArithmeticValue ValueRhsT_> | |
| auto | product (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const ValueRhsT_ rhs) |
| The product with an arithmetic scalar, which is converted into the value type of the tensor if their common type is the value type, e.g. 2 * vector for a vector of doubles (see internal::toDimensionlessQuantity). | |
| template<ArithmeticValue ValueLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| auto | product (const ValueLhsT_ lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | product (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| The product with dimensionless values, which must be a scalar, 1x1 values. | |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| auto | product (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename ValuesRhsT_, typename UnitsRhsT_> | |
| auto | product (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs) |
| The product with a quantity, 1x1 quantities (see Product<Tensor<...>, Quantities<...>>). | |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| auto | product (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| auto | product (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| The product of two tensors, one of which has rank 0 (see Product<Tensor<...>, Tensor<...>>). | |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, ArithmeticValue ValueRhsT_> | |
| auto | operator* (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const ValueRhsT_ rhs) |
| template<ArithmeticValue ValueLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| auto | operator* (const ValueLhsT_ lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | operator* (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| auto | operator* (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename ValuesRhsT_, typename UnitsRhsT_> | |
| auto | operator* (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs) |
| template<typename ValuesLhsT_, typename UnitsLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| auto | operator* (const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| auto | operator* (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| auto | innerProduct (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| The inner product, which contracts the last index of the left-hand side with the first index of the right-hand side, e.g. w_i v^i of a covector and a vector, T^i_j v^j of a linear map and a vector, or M_ij v^j of a mass matrix and a vector, a covector. | |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| auto | outerProduct (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| The outer (tensor) product of two vectors or covectors, e.g. v^i w_j, a tensor of rank 2 whose indices are those of the left-hand side, followed by those of the right-hand side (see OuterProduct<Indices<...>, Indices<...>>). | |
| template<typename IndicesT_, typename QuantitiesT_, typename CoordinateSystemT_, typename AbsoluteT_> | |
| auto | skewSymmetricMatrix (const Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > &vector) |
| The skew-symmetric matrix [v]x of a three-dimensional vector v, the linear map of the cross product with v: innerProduct(skewSymmetricMatrix(v), w) is v.crossProduct(w), e.g. for the velocity w x r of a point of a rotating body or the derivative dR/dt = [w]x R of a rotation. | |
| template<typename IndicesT_, typename QuantitiesT_, typename CoordinateSystemT_, typename AbsoluteT_> | |
| auto | vectorOfSkewSymmetricMatrix (const Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > &matrix) |
| The vector v of the skew-symmetric matrix [v]x, the inverse of skewSymmetricMatrix(): for a three-dimensional linear map M, the vector of its skew-symmetric part (M - M^T) / 2, v = (M_21 - M_12, M_02 - M_20, M_10 - M_01) / 2, which averages out rounding errors of a matrix that is skew-symmetric only approximately, e.g. dR/dt R^T. | |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| auto | cwiseProduct (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| The elementwise (Hadamard) product of the components of two tensors in the same coordinate system. | |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| auto | cwiseQuotient (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| The elementwise quotient of the components of two tensors in the same coordinate system, as quantities (see cwiseProduct()). | |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, ArithmeticValue ValueRhsT_> | |
| auto | division (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const ValueRhsT_ rhs) |
| The quotient by an arithmetic scalar, which is converted into the value type of the tensor (see product()). | |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | division (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename ValuesRhsT_, typename UnitsRhsT_> | |
| auto | division (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs) |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| auto | division (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, ArithmeticValue ValueRhsT_> | |
| auto | operator/ (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const ValueRhsT_ rhs) |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | operator/ (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename ValuesRhsT_, typename UnitsRhsT_> | |
| auto | operator/ (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs) |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| auto | operator/ (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| bool | operator== (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_> | |
| bool | operator!= (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > &rhs) |
| template<typename IndicesT_, typename QuantitiesT_, typename CoordinateSystemT_, typename AbsoluteT_> | |
| std::ostream & | operator<< (std::ostream &lhs, const Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > &rhs) |
| template<typename Lhs, typename Rhs> | |
| auto | sum (const Lhs &lhs, const Rhs &rhs) |
| template<typename Lhs, typename Rhs> | |
| auto | difference (const Lhs &lhs, const Rhs &rhs) |
| template<typename Rhs> | |
| auto | negation (const Rhs &rhs) |
| template<typename Lhs, typename Rhs> | |
| auto | product (const Lhs &lhs, const Rhs &rhs) |
| template<typename Lhs, typename Rhs> | |
| auto | innerProduct (const Lhs &lhs, const Rhs &rhs) |
| template<typename Lhs, typename Rhs> | |
| auto | outerProduct (const Lhs &lhs, const Rhs &rhs) |
| template<typename Lhs, typename Rhs> | |
| auto | dotProduct (const Lhs &lhs, const Rhs &rhs) |
| template<typename Lhs, typename Rhs> | |
| auto | crossProduct (const Lhs &lhs, const Rhs &rhs) |
| template<typename Lhs, typename Rhs> | |
| auto | division (const Lhs &lhs, const Rhs &rhs) |
| template<typename T> | |
| auto | makeRelative (T t) |
| The vector from the origin of the coordinate system to a point, p - o: the same components, as a relative object. | |
| template<typename T> | |
| auto | makeAbsolute (T t) |
| The point at a vector from the origin of the coordinate system, o + v: the same components, as an absolute object. | |
| template<typename To, typename T> | |
| auto | castCoordinateSystem (T t) |
| template<typename MatrixSizeT_, typename ValueT_, typename ImplementationT_, typename... Args> | |
| void | initialize (ValuesWrapper< MatrixSizeT_, ValueT_, ImplementationT_ > &values, Args &&... args) |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | sum (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | operator+ (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | difference (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | operator- (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename MatrixSizeT_, typename ValueT_, typename ImplementationT_> | |
| auto | negation (const ValuesWrapper< MatrixSizeT_, ValueT_, ImplementationT_ > &rhs) |
| template<typename MatrixSizeT_, typename ValueT_, typename ImplementationT_> | |
| auto | operator- (const ValuesWrapper< MatrixSizeT_, ValueT_, ImplementationT_ > &rhs) |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename ValueRhsT_> | |
| auto | product (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const ValueRhsT_ rhs) |
| template<typename ValueLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | product (const ValueLhsT_ lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | product (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename ValueRhsT_> | |
| auto | operator* (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const ValueRhsT_ rhs) |
| template<typename ValueLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | operator* (const ValueLhsT_ lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | operator* (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | innerProduct (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | outerProduct (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename ValueRhsT_> | |
| auto | division (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const ValueRhsT_ rhs) |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | division (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename ValueRhsT_> | |
| auto | operator/ (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const ValueRhsT_ rhs) |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| auto | operator/ (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| bool | operator== (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_> | |
| bool | operator!= (const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > &lhs, const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > &rhs) |
| template<typename MatrixSizeT_, typename ValueT_, typename ImplementationT_> | |
| std::ostream & | operator<< (std::ostream &lhs, const ValuesWrapper< MatrixSizeT_, ValueT_, ImplementationT_ > &rhs) |
| template<template< typename, int, int > typename ValuesLhsT_, typename ValueLhsT_, typename CoordinateSystemLhsT_, int DimensionFromLhsV_, int DimensionToLhsV_, typename... UnitsLhsT_, template< typename, int, int > typename ValuesRhsT_, typename ValueRhsT_, typename CoordinateSystemRhsT_, int DimensionFromRhsV_, int DimensionToRhsV_, typename... UnitsRhsT_> | |
| bool | operator== (const ActiveLinearTransformation< ValuesLhsT_, ValueLhsT_, CoordinateSystemLhsT_, DimensionFromLhsV_, DimensionToLhsV_, UnitsLhsT_... > &lhs, const ActiveLinearTransformation< ValuesRhsT_, ValueRhsT_, CoordinateSystemRhsT_, DimensionFromRhsV_, DimensionToRhsV_, UnitsRhsT_... > &rhs) |
| template<template< typename, int, int > typename ValuesLhsT_, typename ValueLhsT_, typename CoordinateSystemLhsT_, int DimensionFromLhsV_, int DimensionToLhsV_, typename... UnitsLhsT_, template< typename, int, int > typename ValuesRhsT_, typename ValueRhsT_, typename CoordinateSystemRhsT_, int DimensionFromRhsV_, int DimensionToRhsV_, typename... UnitsRhsT_> | |
| bool | operator!= (const ActiveLinearTransformation< ValuesLhsT_, ValueLhsT_, CoordinateSystemLhsT_, DimensionFromLhsV_, DimensionToLhsV_, UnitsLhsT_... > &lhs, const ActiveLinearTransformation< ValuesRhsT_, ValueRhsT_, CoordinateSystemRhsT_, DimensionFromRhsV_, DimensionToRhsV_, UnitsRhsT_... > &rhs) |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_, int DimensionFromV_, int DimensionToV_, typename... UnitsT_> | |
| std::ostream & | operator<< (std::ostream &lhs, const ActiveLinearTransformation< ValuesT_, ValueT_, CoordinateSystemT_, DimensionFromV_, DimensionToV_, UnitsT_... > &rhs) |
| template<template< typename, int, int > typename ValuesLhsT_, typename ValueLhsT_, typename CoordinateSystemLhsT_, int DimensionLhsV_, template< typename, int, int > typename ValuesRhsT_, typename ValueRhsT_, typename CoordinateSystemRhsT_, int DimensionRhsV_> | |
| bool | operator== (const ActiveSpatialRotation< ValuesLhsT_, ValueLhsT_, CoordinateSystemLhsT_, DimensionLhsV_ > &lhs, const ActiveSpatialRotation< ValuesRhsT_, ValueRhsT_, CoordinateSystemRhsT_, DimensionRhsV_ > &rhs) |
| template<template< typename, int, int > typename ValuesLhsT_, typename ValueLhsT_, typename CoordinateSystemLhsT_, int DimensionLhsV_, template< typename, int, int > typename ValuesRhsT_, typename ValueRhsT_, typename CoordinateSystemRhsT_, int DimensionRhsV_> | |
| bool | operator!= (const ActiveSpatialRotation< ValuesLhsT_, ValueLhsT_, CoordinateSystemLhsT_, DimensionLhsV_ > &lhs, const ActiveSpatialRotation< ValuesRhsT_, ValueRhsT_, CoordinateSystemRhsT_, DimensionRhsV_ > &rhs) |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_, int DimensionV_> | |
| std::ostream & | operator<< (std::ostream &lhs, const ActiveSpatialRotation< ValuesT_, ValueT_, CoordinateSystemT_, DimensionV_ > &rhs) |
| template<typename LhsT_, typename RhsT_> | |
| auto | operator* (const ActiveTransformation< LhsT_ > &lhs, const ActiveTransformation< RhsT_ > &rhs) |
| The composition of two active transformations in the same coordinate system, which applies rhs first, then lhs: (lhs * rhs).transform(x) is lhs.transform(rhs.transform(x)), like the product of their matrices (see CompositionTraits). | |
| template<template< typename, int, int > typename ValuesLhsT_, int DimensionLhsV_, typename ValueLhsT_, typename CoordinateSystemLhsT_, typename... UnitsLhsT_, template< typename, int, int > typename ValuesRhsT_, int DimensionRhsV_, typename ValueRhsT_, typename CoordinateSystemRhsT_, typename... UnitsRhsT_> | |
| bool | operator== (const ActiveTranslation< ValuesLhsT_, DimensionLhsV_, ValueLhsT_, CoordinateSystemLhsT_, UnitsLhsT_... > &lhs, const ActiveTranslation< ValuesRhsT_, DimensionRhsV_, ValueRhsT_, CoordinateSystemRhsT_, UnitsRhsT_... > &rhs) |
| template<template< typename, int, int > typename ValuesLhsT_, int DimensionLhsV_, typename ValueLhsT_, typename CoordinateSystemLhsT_, typename... UnitsLhsT_, template< typename, int, int > typename ValuesRhsT_, int DimensionRhsV_, typename ValueRhsT_, typename CoordinateSystemRhsT_, typename... UnitsRhsT_> | |
| bool | operator!= (const ActiveTranslation< ValuesLhsT_, DimensionLhsV_, ValueLhsT_, CoordinateSystemLhsT_, UnitsLhsT_... > &lhs, const ActiveTranslation< ValuesRhsT_, DimensionRhsV_, ValueRhsT_, CoordinateSystemRhsT_, UnitsRhsT_... > &rhs) |
| template<template< typename, int, int > typename ValuesT_, int DimensionV_, typename ValueT_, typename CoordinateSystemT_, typename... UnitsT_> | |
| std::ostream & | operator<< (std::ostream &lhs, const ActiveTranslation< ValuesT_, DimensionV_, ValueT_, CoordinateSystemT_, UnitsT_... > &rhs) |
| template<template< typename, int, int > typename ValuesLhsT_, typename ValueLhsT_, typename FromLhsT_, typename ToLhsT_, int DimensionFromLhsV_, int DimensionToLhsV_, typename... UnitsLhsT_, template< typename, int, int > typename ValuesRhsT_, typename ValueRhsT_, typename FromRhsT_, typename ToRhsT_, int DimensionFromRhsV_, int DimensionToRhsV_, typename... UnitsRhsT_> | |
| bool | operator== (const Jacobian< ValuesLhsT_, ValueLhsT_, FromLhsT_, ToLhsT_, DimensionFromLhsV_, DimensionToLhsV_, UnitsLhsT_... > &lhs, const Jacobian< ValuesRhsT_, ValueRhsT_, FromRhsT_, ToRhsT_, DimensionFromRhsV_, DimensionToRhsV_, UnitsRhsT_... > &rhs) |
| template<template< typename, int, int > typename ValuesLhsT_, typename ValueLhsT_, typename FromLhsT_, typename ToLhsT_, int DimensionFromLhsV_, int DimensionToLhsV_, typename... UnitsLhsT_, template< typename, int, int > typename ValuesRhsT_, typename ValueRhsT_, typename FromRhsT_, typename ToRhsT_, int DimensionFromRhsV_, int DimensionToRhsV_, typename... UnitsRhsT_> | |
| bool | operator!= (const Jacobian< ValuesLhsT_, ValueLhsT_, FromLhsT_, ToLhsT_, DimensionFromLhsV_, DimensionToLhsV_, UnitsLhsT_... > &lhs, const Jacobian< ValuesRhsT_, ValueRhsT_, FromRhsT_, ToRhsT_, DimensionFromRhsV_, DimensionToRhsV_, UnitsRhsT_... > &rhs) |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename FromT_, typename ToT_, int DimensionFromV_, int DimensionToV_, typename... UnitsT_> | |
| std::ostream & | operator<< (std::ostream &lhs, const Jacobian< ValuesT_, ValueT_, FromT_, ToT_, DimensionFromV_, DimensionToV_, UnitsT_... > &rhs) |
| template<AnyTensor VelocityT_, AnyTensor AngularVelocityT_, AnyTensor OffsetT_> | |
| auto | velocityOfBodyFixedPoint (const VelocityT_ &velocity, const AngularVelocityT_ &angularVelocity, const OffsetT_ &offset) |
| The velocity v_Q = v_P + w x p_PQ of a point Q fixed to a rigid body, from the velocity v_P of a point P fixed to the body, the angular velocity w of the body and the position vector p_PQ from P to Q. | |
| template<AnyTensor AccelerationT_, AnyTensor AngularAccelerationT_, AnyTensor AngularVelocityT_, AnyTensor OffsetT_> | |
| auto | accelerationOfBodyFixedPoint (const AccelerationT_ &acceleration, const AngularAccelerationT_ &angularAcceleration, const AngularVelocityT_ &angularVelocity, const OffsetT_ &offset) |
| The acceleration a_Q = a_P + alpha x p_PQ + w x (w x p_PQ) of a point Q fixed to a rigid body, from the acceleration a_P of a point P fixed to the body, the angular acceleration alpha and the angular velocity w of the body and the position vector p_PQ from P to Q, with the tangential acceleration alpha x p_PQ and the centripetal acceleration w x (w x p_PQ). | |
| template<template< typename, int, int > typename ValuesLhsT_, typename ValueLhsT_, typename FromLhsT_, typename ToLhsT_, int DimensionLhsV_, template< typename, int, int > typename ValuesRhsT_, typename ValueRhsT_, typename FromRhsT_, typename ToRhsT_, int DimensionRhsV_> | |
| bool | operator== (const LorentzTransformation< ValuesLhsT_, ValueLhsT_, FromLhsT_, ToLhsT_, DimensionLhsV_ > &lhs, const LorentzTransformation< ValuesRhsT_, ValueRhsT_, FromRhsT_, ToRhsT_, DimensionRhsV_ > &rhs) |
| template<template< typename, int, int > typename ValuesLhsT_, typename ValueLhsT_, typename FromLhsT_, typename ToLhsT_, int DimensionLhsV_, template< typename, int, int > typename ValuesRhsT_, typename ValueRhsT_, typename FromRhsT_, typename ToRhsT_, int DimensionRhsV_> | |
| bool | operator!= (const LorentzTransformation< ValuesLhsT_, ValueLhsT_, FromLhsT_, ToLhsT_, DimensionLhsV_ > &lhs, const LorentzTransformation< ValuesRhsT_, ValueRhsT_, FromRhsT_, ToRhsT_, DimensionRhsV_ > &rhs) |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename FromT_, typename ToT_, int DimensionV_> | |
| std::ostream & | operator<< (std::ostream &lhs, const LorentzTransformation< ValuesT_, ValueT_, FromT_, ToT_, DimensionV_ > &rhs) |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_> | |
| auto | getSpeedOfLight () |
| The speed of light, as a quantity of the value matrix backend ValuesT_, e.g. getSpeedOfLight<wuzp_eigen::ValueMatrix, double>(). | |
| template<typename QuantitiesT_, typename CoordinateSystemT_> | |
| auto | getInvariant (const Vector< QuantitiesT_, CoordinateSystemT_ > &vector) |
| The Minkowski interval eta_ij v^i v^j = v_0^2 - v_1^2 - ... - v_n^2 of a vector whose first component is the time component, e.g. of a spacetime vector (c t, x, y, z) or of a four-velocity, which Lorentz transformations preserve (Carroll, Lecture Notes on General Relativity, https://arxiv.org/abs/gr-qc/9712019, chapter 1). | |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename FromT_, typename ToT_, int DimensionV_> | |
| LorentzTransformation< ValuesT_, ValueT_, FromT_, ToT_, DimensionV_ > | createBoostMatrix (const VelocityVector< DimensionV_ - 1, ValuesT_, ValueT_, FromT_ > &velocity) |
| The passive Lorentz boost from From to To, in the standard form with the time component first and in length units (x^0 = c t), and the signature (+, -, ..., -): x'^0 = gamma (x^0 - beta . | |
| template<template< typename, int, int > typename ValuesLhsT_, typename ValueLhsT_, typename FromLhsT_, typename ToLhsT_, int DimensionLhsV_, typename... UnitsLhsT_, template< typename, int, int > typename ValuesRhsT_, typename ValueRhsT_, typename FromRhsT_, typename ToRhsT_, int DimensionRhsV_, typename... UnitsRhsT_> | |
| bool | operator== (const PassiveLinearTransformation< ValuesLhsT_, ValueLhsT_, FromLhsT_, ToLhsT_, DimensionLhsV_, UnitsLhsT_... > &lhs, const PassiveLinearTransformation< ValuesRhsT_, ValueRhsT_, FromRhsT_, ToRhsT_, DimensionRhsV_, UnitsRhsT_... > &rhs) |
| template<template< typename, int, int > typename ValuesLhsT_, typename ValueLhsT_, typename FromLhsT_, typename ToLhsT_, int DimensionLhsV_, typename... UnitsLhsT_, template< typename, int, int > typename ValuesRhsT_, typename ValueRhsT_, typename FromRhsT_, typename ToRhsT_, int DimensionRhsV_, typename... UnitsRhsT_> | |
| bool | operator!= (const PassiveLinearTransformation< ValuesLhsT_, ValueLhsT_, FromLhsT_, ToLhsT_, DimensionLhsV_, UnitsLhsT_... > &lhs, const PassiveLinearTransformation< ValuesRhsT_, ValueRhsT_, FromRhsT_, ToRhsT_, DimensionRhsV_, UnitsRhsT_... > &rhs) |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename FromT_, typename ToT_, int DimensionV_, typename... UnitsT_> | |
| std::ostream & | operator<< (std::ostream &lhs, const PassiveLinearTransformation< ValuesT_, ValueT_, FromT_, ToT_, DimensionV_, UnitsT_... > &rhs) |
| template<template< typename, int, int > typename ValuesLhsT_, typename ValueLhsT_, typename FromLhsT_, typename ToLhsT_, int DimensionLhsV_, template< typename, int, int > typename ValuesRhsT_, typename ValueRhsT_, typename FromRhsT_, typename ToRhsT_, int DimensionRhsV_> | |
| bool | operator== (const PassiveSpatialRotation< ValuesLhsT_, ValueLhsT_, FromLhsT_, ToLhsT_, DimensionLhsV_ > &lhs, const PassiveSpatialRotation< ValuesRhsT_, ValueRhsT_, FromRhsT_, ToRhsT_, DimensionRhsV_ > &rhs) |
| template<template< typename, int, int > typename ValuesLhsT_, typename ValueLhsT_, typename FromLhsT_, typename ToLhsT_, int DimensionLhsV_, template< typename, int, int > typename ValuesRhsT_, typename ValueRhsT_, typename FromRhsT_, typename ToRhsT_, int DimensionRhsV_> | |
| bool | operator!= (const PassiveSpatialRotation< ValuesLhsT_, ValueLhsT_, FromLhsT_, ToLhsT_, DimensionLhsV_ > &lhs, const PassiveSpatialRotation< ValuesRhsT_, ValueRhsT_, FromRhsT_, ToRhsT_, DimensionRhsV_ > &rhs) |
| template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename FromT_, typename ToT_, int DimensionV_> | |
| std::ostream & | operator<< (std::ostream &lhs, const PassiveSpatialRotation< ValuesT_, ValueT_, FromT_, ToT_, DimensionV_ > &rhs) |
| template<typename LhsT_, typename FromLhsT_, typename ToLhsT_, typename RhsT_, typename FromRhsT_, typename ToRhsT_> | |
| auto | operator* (const PassiveTransformation< LhsT_, FromLhsT_, ToLhsT_ > &lhs, const PassiveTransformation< RhsT_, FromRhsT_, ToRhsT_ > &rhs) |
| The composition of two passive transformations, in the order of the monogram notation of Drake (https://drake.mit.edu/doxygen_cxx/group__multibody__notation.html): X_AB * X_BC = X_AC, i.e. the transformation from C to B, followed by the one from B to A, like ^A_C T = ^A_B T ^B_C T in the notation of Craig. | |
| template<typename LhsT_, typename RhsT_, typename FromRhsT_, typename ToRhsT_> | |
| auto | operator* (const ActiveTransformation< LhsT_ > &lhs, const PassiveTransformation< RhsT_, FromRhsT_, ToRhsT_ > &rhs) |
| template<typename LhsT_, typename FromLhsT_, typename ToLhsT_, typename RhsT_> | |
| auto | operator* (const PassiveTransformation< LhsT_, FromLhsT_, ToLhsT_ > &lhs, const ActiveTransformation< RhsT_ > &rhs) |
| template<template< typename, int, int > typename ValuesLhsT_, int DimensionLhsV_, typename ValueLhsT_, typename FromLhsT_, typename ToLhsT_, typename... UnitsLhsT_, template< typename, int, int > typename ValuesRhsT_, int DimensionRhsV_, typename ValueRhsT_, typename FromRhsT_, typename ToRhsT_, typename... UnitsRhsT_> | |
| bool | operator== (const PassiveTranslation< ValuesLhsT_, DimensionLhsV_, ValueLhsT_, FromLhsT_, ToLhsT_, UnitsLhsT_... > &lhs, const PassiveTranslation< ValuesRhsT_, DimensionRhsV_, ValueRhsT_, FromRhsT_, ToRhsT_, UnitsRhsT_... > &rhs) |
| template<template< typename, int, int > typename ValuesLhsT_, int DimensionLhsV_, typename ValueLhsT_, typename FromLhsT_, typename ToLhsT_, typename... UnitsLhsT_, template< typename, int, int > typename ValuesRhsT_, int DimensionRhsV_, typename ValueRhsT_, typename FromRhsT_, typename ToRhsT_, typename... UnitsRhsT_> | |
| bool | operator!= (const PassiveTranslation< ValuesLhsT_, DimensionLhsV_, ValueLhsT_, FromLhsT_, ToLhsT_, UnitsLhsT_... > &lhs, const PassiveTranslation< ValuesRhsT_, DimensionRhsV_, ValueRhsT_, FromRhsT_, ToRhsT_, UnitsRhsT_... > &rhs) |
| template<template< typename, int, int > typename ValuesT_, int DimensionV_, typename ValueT_, typename FromT_, typename ToT_, typename... UnitsT_> | |
| std::ostream & | operator<< (std::ostream &lhs, const PassiveTranslation< ValuesT_, DimensionV_, ValueT_, FromT_, ToT_, UnitsT_... > &rhs) |
| template<typename FromT_, typename ToT_, typename RotationT_, typename TranslationT_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename MeasuredInT_, typename FrameT_, typename PointT_, typename ExpressedInT_> | |
| auto | adjoint (const PassiveProperRigidTransformationTemplate< FromT_, ToT_, RotationT_, TranslationT_ > &, const SpatialAcceleration< ValuesT_, ValueT_, MeasuredInT_, FrameT_, PointT_, ExpressedInT_ > &) |
| Rejected with a message: the adjoint map of a rigid transformation maps spatial velocities and spatial forces, but a spatial acceleration of Drake shifts with the angular velocity of its frame (see SpatialAcceleration::shift()). | |
| template<typename FromT_, typename ToT_, typename RotationT_, typename TranslationT_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename FrameT_, typename PointT_, typename ExpressedInT_> | |
| auto | adjoint (const PassiveProperRigidTransformationTemplate< FromT_, ToT_, RotationT_, TranslationT_ > &transformation, const SpatialForce< ValuesT_, ValueT_, FrameT_, PointT_, ExpressedInT_ > &force) |
| The adjoint map of the passive proper rigid transformation X_AB = (R_AB, p_AoBo_A) from B to A applied to the spatial force F_Cbo_B on a frame C about the origin of B, expressed in B: the spatial force F_Cao_A about the origin of A, expressed in A, f' = R_AB f and tau' = R_AB tau + p_AoBo_A x (R_AB f), i.e. re-expressed in A and shifted to the origin of A. | |
| template<typename LhsT_, typename RotationalLhsT_, typename TranslationalLhsT_, typename RhsT_, typename RotationalRhsT_, typename TranslationalRhsT_> | |
| bool | operator== (const SpatialVector< LhsT_, RotationalLhsT_, TranslationalLhsT_ > &lhs, const SpatialVector< RhsT_, RotationalRhsT_, TranslationalRhsT_ > &rhs) |
| Whether two spatial vectors with the same tags are equal: both their parts are equal. | |
| template<typename LhsT_, typename RotationalLhsT_, typename TranslationalLhsT_, typename RhsT_, typename RotationalRhsT_, typename TranslationalRhsT_> | |
| bool | operator!= (const SpatialVector< LhsT_, RotationalLhsT_, TranslationalLhsT_ > &lhs, const SpatialVector< RhsT_, RotationalRhsT_, TranslationalRhsT_ > &rhs) |
| Whether two spatial vectors with the same tags differ: one of their parts differs. | |
| template<typename LhsT_, typename RotationalLhsT_, typename TranslationalLhsT_, typename RhsT_, typename RotationalRhsT_, typename TranslationalRhsT_> | |
| LhsT_ | operator+ (const SpatialVector< LhsT_, RotationalLhsT_, TranslationalLhsT_ > &lhs, const SpatialVector< RhsT_, RotationalRhsT_, TranslationalRhsT_ > &rhs) |
| The sum of two spatial vectors with the same tags, part by part, e.g. of two spatial forces on the same body about the same point. | |
| template<typename LhsT_, typename RotationalLhsT_, typename TranslationalLhsT_, typename RhsT_, typename RotationalRhsT_, typename TranslationalRhsT_> | |
| LhsT_ | operator- (const SpatialVector< LhsT_, RotationalLhsT_, TranslationalLhsT_ > &lhs, const SpatialVector< RhsT_, RotationalRhsT_, TranslationalRhsT_ > &rhs) |
| The difference of two spatial vectors with the same tags, part by part. | |
| template<typename DerivedT_, typename RotationalT_, typename TranslationalT_> | |
| std::ostream & | operator<< (std::ostream &lhs, const SpatialVector< DerivedT_, RotationalT_, TranslationalT_ > &rhs) |
| Prints the rotational part, then the translational part. | |
| template<typename FromT_, typename ToT_, typename RotationT_, typename TranslationT_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename MeasuredInT_, typename FrameT_, typename PointT_, typename ExpressedInT_> | |
| auto | adjoint (const PassiveProperRigidTransformationTemplate< FromT_, ToT_, RotationT_, TranslationT_ > &transformation, const SpatialVelocity< ValuesT_, ValueT_, MeasuredInT_, FrameT_, PointT_, ExpressedInT_ > &velocity) |
| The adjoint map [Ad_X] of the passive proper rigid transformation X_AB = (R_AB, p_AoBo_A) from B to A applied to the spatial velocity V_MCbo_B of a frame C, measured in M, about the origin of B, expressed in B: the spatial velocity V_MCao_A about the origin of A, expressed in A, w' = R_AB w and v' = R_AB v + p_AoBo_A x (R_AB w), i.e. re-expressed in A and shifted to the origin of A. | |
Variables | |
| template<typename T, typename... Ts> | |
| constexpr bool | areSame = std::conjunction_v<std::is_same<T, Ts>...> |
| template<typename ScalarT_, typename ValueT_> | |
| constexpr bool | isConvertedToValueType = std::is_same_v<std::common_type_t<ScalarT_, ValueT_>, ValueT_> |
| Whether an arithmetic scalar of the type ScalarT_ is converted into the value type ValueT_: if their common type (the type of their sum in C++) is the value type, e.g. an int scalar with double values, but not a double scalar with int or float values, nor an unsigned scalar with int values, whose sum would be unsigned. | |
| using wuzp::Absolute = internal::AbsoluteImpl<true> |
Definition at line 17 of file Absolute.hpp.
| using wuzp::AccelerationVector |
Definition at line 1008 of file Tensor.hpp.
| using wuzp::AccelerationVector2 = AccelerationVector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1011 of file Tensor.hpp.
| using wuzp::AccelerationVector3 = AccelerationVector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1013 of file Tensor.hpp.
| using wuzp::ActiveProperRigidTransformation |
The active proper rigid transformation of a rotation and a spatial translation, which first rotates, then translates: x -> R x + t (see ActiveProperRigidTransformationTemplate).
Definition at line 12 of file ActiveProperRigidTransformation.hpp.
| using wuzp::ActiveProperRigidTransformation2 = ActiveProperRigidTransformation<ValuesT_, 2, CoordinateSystemT_, ValueT_> |
Definition at line 16 of file ActiveProperRigidTransformation.hpp.
| using wuzp::ActiveProperRigidTransformation3 = ActiveProperRigidTransformation<ValuesT_, 3, CoordinateSystemT_, ValueT_> |
Definition at line 18 of file ActiveProperRigidTransformation.hpp.
| using wuzp::ActiveSpatialRotation2 = ActiveSpatialRotation<ValuesT_, ValueT_, CoordinateSystemT_, 2> |
Definition at line 371 of file ActiveSpatialRotation.hpp.
| using wuzp::ActiveSpatialRotation3 = ActiveSpatialRotation<ValuesT_, ValueT_, CoordinateSystemT_, 3> |
Definition at line 373 of file ActiveSpatialRotation.hpp.
| using wuzp::ActiveSpatialTranslation |
Definition at line 139 of file ActiveTranslation.hpp.
| using wuzp::ActiveSpatialTranslation2 = ActiveSpatialTranslation<ValuesT_, 2, ValueT_, CoordinateSystemT_> |
Definition at line 142 of file ActiveTranslation.hpp.
| using wuzp::ActiveSpatialTranslation3 = ActiveSpatialTranslation<ValuesT_, 3, ValueT_, CoordinateSystemT_> |
Definition at line 144 of file ActiveTranslation.hpp.
| using wuzp::AngularAccelerationVector |
Definition at line 1024 of file Tensor.hpp.
| using wuzp::AngularAccelerationVector2 = AngularAccelerationVector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1028 of file Tensor.hpp.
| using wuzp::AngularAccelerationVector3 = AngularAccelerationVector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1030 of file Tensor.hpp.
| using wuzp::AngularVelocityVector |
Definition at line 1016 of file Tensor.hpp.
| using wuzp::AngularVelocityVector2 = AngularVelocityVector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1019 of file Tensor.hpp.
| using wuzp::AngularVelocityVector3 = AngularVelocityVector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1021 of file Tensor.hpp.
| using wuzp::Covector = Tensor<Indices<Down>, QuantityVectorT_, CoordinateSystemT_, Relative> |
Definition at line 948 of file Tensor.hpp.
| using wuzp::DiagonalTypeMatrix |
Definition at line 368 of file TypeMatrix.hpp.
| using wuzp::DirectionVector |
Definition at line 966 of file Tensor.hpp.
| using wuzp::DirectionVector2 = DirectionVector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 969 of file Tensor.hpp.
| using wuzp::DirectionVector3 = DirectionVector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 971 of file Tensor.hpp.
| using wuzp::Duration = HomogeneousVector<1, ValuesT_, ValueT_, typename AccessUnits<AccessImplementation<ValueT_>>::Time, CoordinateSystemT_> |
Definition at line 1070 of file Tensor.hpp.
| using wuzp::ForceCovector |
A force as a covector, the dual of a velocity: their pairing innerProduct(force, velocity) is the power, which needs no metric, and a Jacobian pulls it back, e.g. into the joint torques tau = J^T F (see Jacobian::pullback()), like the spatial force vectors of Featherstone, whose space is the dual of the space of motion vectors, with the power v .
f as their scalar product (A Short Course on Spatial Vector Algebra, http://royfeatherstone.org/teaching/2008/slides.pdf, slides 3 and 31). In a Euclidean coordinate system, the components of a force vector and its covector are equal, and transpose() turns one into the other (see Metric).
Definition at line 1049 of file Tensor.hpp.
| using wuzp::ForceCovector2 = ForceCovector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1052 of file Tensor.hpp.
| using wuzp::ForceCovector3 = ForceCovector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1054 of file Tensor.hpp.
| using wuzp::ForceVector |
Definition at line 1033 of file Tensor.hpp.
| using wuzp::ForceVector2 = ForceVector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1036 of file Tensor.hpp.
| using wuzp::ForceVector3 = ForceVector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1038 of file Tensor.hpp.
Definition at line 39 of file traits.hpp.
Definition at line 41 of file traits.hpp.
| using wuzp::FromSimilar = Tag<FromSimilarLabel> |
Definition at line 37 of file traits.hpp.
| using wuzp::GetSubset = GetSubsetImpl<Start, End, Increment, Tuple, std::make_index_sequence<std::tuple_size<Tuple>::value>> |
Definition at line 87 of file helpers.hpp.
| using wuzp::HomogeneousCovector = Covector<Quantities<ValuesT_<ValueT_, 1, DimensionV_>, TypeMatrix<1, DimensionV_, UnitT_>>, CoordinateSystemT_> |
Definition at line 951 of file Tensor.hpp.
| using wuzp::HomogeneousPoint = Point<Quantities<ValuesT_<ValueT_, DimensionV_, 1>, TypeMatrix<DimensionV_, 1, UnitT_>>, CoordinateSystemT_> |
Definition at line 963 of file Tensor.hpp.
| using wuzp::HomogeneousTuple = decltype(std::tuple_cat(std::declval<std::array<T, std::size_t{Size}>>())) |
Definition at line 24 of file helpers.hpp.
| using wuzp::HomogeneousVector = Vector<Quantities<ValuesT_<ValueT_, DimensionV_, 1>, TypeMatrix<DimensionV_, 1, UnitT_>>, CoordinateSystemT_> |
Definition at line 945 of file Tensor.hpp.
| using wuzp::Integer = Rational<ValueV_, 1> |
Definition at line 9 of file Integer.hpp.
| using wuzp::LorentzTransformation2 = LorentzTransformation<ValuesT_, ValueT_, FromT_, ToT_, 2> |
Definition at line 130 of file LorentzTransformation.hpp.
| using wuzp::LorentzTransformation3 = LorentzTransformation<ValuesT_, ValueT_, FromT_, ToT_, 3> |
Definition at line 132 of file LorentzTransformation.hpp.
| using wuzp::LorentzTransformation4 = LorentzTransformation<ValuesT_, ValueT_, FromT_, ToT_, 4> |
Definition at line 134 of file LorentzTransformation.hpp.
| using wuzp::PassiveProperRigidTransformation |
The passive proper rigid transformation of a rotation and a spatial translation from From to To, which first rotates, then translates: p -> R p + t (see PassiveProperRigidTransformationTemplate).
Definition at line 13 of file PassiveProperRigidTransformation.hpp.
| using wuzp::PassiveProperRigidTransformation2 = PassiveProperRigidTransformation<ValuesT_, 2, FromT_, ToT_, ValueT_> |
Definition at line 17 of file PassiveProperRigidTransformation.hpp.
| using wuzp::PassiveProperRigidTransformation3 = PassiveProperRigidTransformation<ValuesT_, 3, FromT_, ToT_, ValueT_> |
Definition at line 19 of file PassiveProperRigidTransformation.hpp.
| using wuzp::PassiveSpatialRotation2 = PassiveSpatialRotation<ValuesT_, ValueT_, FromT_, ToT_, 2> |
Definition at line 414 of file PassiveSpatialRotation.hpp.
| using wuzp::PassiveSpatialRotation3 = PassiveSpatialRotation<ValuesT_, ValueT_, FromT_, ToT_, 3> |
Definition at line 416 of file PassiveSpatialRotation.hpp.
| using wuzp::PassiveSpatialTranslation |
Definition at line 138 of file PassiveTranslation.hpp.
| using wuzp::PassiveSpatialTranslation2 = PassiveSpatialTranslation<ValuesT_, 2, ValueT_, FromT_, ToT_> |
Definition at line 141 of file PassiveTranslation.hpp.
| using wuzp::PassiveSpatialTranslation3 = PassiveSpatialTranslation<ValuesT_, 3, ValueT_, FromT_, ToT_> |
Definition at line 143 of file PassiveTranslation.hpp.
| using wuzp::Point = Tensor<Indices<Up>, QuantityVectorT_, CoordinateSystemT_, Absolute> |
A point, or a batch of points, one per column, e.g. a point cloud.
Its components are those of the vector from the origin of the coordinate system to it. Points follow the rules of affine spaces (see Absolute.hpp): p - q is a vector, p + v, v + p and p - v are points, and everything else that depends on the origin is rejected, e.g. p * 2.0, -p or the norm of p. Affine combinations are written p + (q - p) * t, e.g. the midpoint p + (q - p) * 0.5.
Definition at line 960 of file Tensor.hpp.
| using wuzp::PositionPoint |
Definition at line 984 of file Tensor.hpp.
| using wuzp::PositionPoint2 = PositionPoint<2, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 987 of file Tensor.hpp.
| using wuzp::PositionPoint3 = PositionPoint<3, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 989 of file Tensor.hpp.
| using wuzp::PositionVector |
Definition at line 992 of file Tensor.hpp.
| using wuzp::PositionVector2 = PositionVector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 995 of file Tensor.hpp.
| using wuzp::PositionVector3 = PositionVector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 997 of file Tensor.hpp.
| using wuzp::Quantity = Quantities<ValueT_, TypeMatrixImpl<MatrixSize<1, 1>, std::tuple<UnitT_>>> |
Container to store a single quantity.
A quantity consists of a value and a unit. The value is evaluated at run-time, the unit at compile-time. Defining a scalar to be equivalent to a 1x1 matrix is not 100% clean, but the implicit conversions allow us to reuse code from the matrix implementation. Also, the user can avoid explicit conversions, e.g. when calculating the inner product of a vector x^T * x. https://math.stackexchange.com/q/65002
| ValueT_ | Container type to store the value. |
| UnitT_ | Container storing the unit. |
Definition at line 29 of file Quantity.hpp.
| using wuzp::Rational = typename internal::ReduceRational<DividendV_, DivisorV_>::type |
Definition at line 9 of file Rational.hpp.
| using wuzp::Relative = internal::AbsoluteImpl<false> |
Definition at line 18 of file Absolute.hpp.
| using wuzp::RotationVector3 |
A rotation vector, the angle of a rotation times its unit axis, e.g. the logarithm of a rotation, an increment of boxPlus() or the angular velocity times a time step (see ActiveSpatialRotation::fromRotationVector()).
Rotation vectors are three-dimensional. Angles are dimensionless (see "Angles are dimensionless" in DESIGN.md), so it is the type of a DirectionVector3.
Definition at line 980 of file Tensor.hpp.
| using wuzp::ScalarValues = typename Rebind<ValuesT_, ValueT_, 1, 1>::type |
Evaluated 1x1 values of the value matrix backend of ValuesT_, with the value type ValueT_: e.g. a scalar that an operation combines with values of the type ValuesT_, which is converted into values of the same backend.
Definition at line 351 of file ValuesWrapper.hpp.
| using wuzp::SpacetimePoint = PositionPoint<DimensionV_, ValuesT_, ValueT_, CoordinateSystemT_> |
An event, a point in spacetime, with the time component first, in length units (x^0 = c t), expressed in an inertial frame of special relativity, i.e. a coordinate system with the Minkowski metric, e.g. CoordinateSystem<Spacetime, Minkowski> (see Minkowski).
Definition at line 1079 of file Tensor.hpp.
| using wuzp::SpacetimePoint2 = SpacetimePoint<2, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1081 of file Tensor.hpp.
| using wuzp::SpacetimePoint3 = SpacetimePoint<3, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1083 of file Tensor.hpp.
| using wuzp::SpacetimePoint4 = SpacetimePoint<4, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1085 of file Tensor.hpp.
| using wuzp::SpacetimeVector = PositionVector<DimensionV_, ValuesT_, ValueT_, CoordinateSystemT_> |
A displacement in spacetime, with the time component first, in length units (x^0 = c t), expressed in a coordinate system with the Minkowski metric (see SpacetimePoint).
The Euclidean dotProduct and norm are rejected for it; getInvariant() computes its interval eta_ij v^i v^j, which Lorentz transformations preserve.
Definition at line 1093 of file Tensor.hpp.
| using wuzp::SpacetimeVector2 = SpacetimeVector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1095 of file Tensor.hpp.
| using wuzp::SpacetimeVector3 = SpacetimeVector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1097 of file Tensor.hpp.
| using wuzp::SpacetimeVector4 = SpacetimeVector<4, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1099 of file Tensor.hpp.
| using wuzp::TimePoint = HomogeneousPoint<1, ValuesT_, ValueT_, typename AccessUnits<AccessImplementation<ValueT_>>::Time, CoordinateSystemT_> |
A point in time, a one-dimensional point in a coordinate system whose origin is an epoch, e.g. CoordinateSystem<Epoch>.
The difference of two time points is a Duration; a change of the epoch is a translation.
Definition at line 1067 of file Tensor.hpp.
| using wuzp::ToCols = ToColsImpl<ColsV_, std::tuple<Ts...>, std::make_index_sequence<ColsV_>> |
Definition at line 33 of file TypeMatrix.hpp.
| using wuzp::ToRows = ToRowsImpl<ColsV_, std::tuple<Ts...>, std::make_index_sequence<sizeof...(Ts) / ColsV_>> |
Definition at line 23 of file TypeMatrix.hpp.
| using wuzp::TorqueVector |
Definition at line 1057 of file Tensor.hpp.
| using wuzp::TorqueVector2 = TorqueVector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1060 of file Tensor.hpp.
| using wuzp::TorqueVector3 = TorqueVector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1062 of file Tensor.hpp.
| using wuzp::Type = TypeMatrix<1, 1, TypeT_> |
| using wuzp::TypeMatrix = typename CreateTypeMatrix<RowsV_, ColsV_, Types...>::type |
A matrix storing types at compile-time.
| RowsV_ | Number of rows. |
| ColsV_ | Number of columns. |
| Types | Types stored in the matrix, row-major order. The number of types must match the number of elements the matrix can store. |
Definition at line 378 of file TypeMatrix.hpp.
| using wuzp::TypeScalar = typename CreateTypeMatrix<1, 1, TypeT_>::type |
A scalar storing a type at compile-time.
| TypeT_ | Type stored in the scalar. |
Definition at line 393 of file TypeMatrix.hpp.
| using wuzp::TypeVector = typename CreateTypeMatrix<RowsV_, 1, Types...>::type |
A vector storing types at compile-time.
| RowsV_ | Number of rows. |
| Types | Types stored in the vector. The number of types must match the number of elements the vector can store. |
Definition at line 386 of file TypeMatrix.hpp.
| using wuzp::Vector = Tensor<Indices<Up>, QuantityVectorT_, CoordinateSystemT_, Relative> |
Definition at line 942 of file Tensor.hpp.
| using wuzp::VelocityVector |
Definition at line 1000 of file Tensor.hpp.
| using wuzp::VelocityVector2 = VelocityVector<2, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1003 of file Tensor.hpp.
| using wuzp::VelocityVector3 = VelocityVector<3, ValuesT_, ValueT_, CoordinateSystemT_> |
Definition at line 1005 of file Tensor.hpp.
| auto wuzp::abs | ( | const Quantities< ValuesT_, UnitsT_ > & | quantities | ) |
The absolute value, elementwise, of the same unit, like std::abs (https://en.cppreference.com/w/cpp/numeric/math/fabs), and the values themselves for unsigned values, for which std::abs is ambiguous.
Like with std::abs, the absolute value of the minimum of a signed integer type, e.g. INT_MIN, is undefined behavior: the type cannot represent it.
Definition at line 743 of file Quantities.hpp.
| auto wuzp::accelerationOfBodyFixedPoint | ( | const AccelerationT_ & | acceleration, |
| const AngularAccelerationT_ & | angularAcceleration, | ||
| const AngularVelocityT_ & | angularVelocity, | ||
| const OffsetT_ & | offset ) |
The acceleration a_Q = a_P + alpha x p_PQ + w x (w x p_PQ) of a point Q fixed to a rigid body, from the acceleration a_P of a point P fixed to the body, the angular acceleration alpha and the angular velocity w of the body and the position vector p_PQ from P to Q, with the tangential acceleration alpha x p_PQ and the centripetal acceleration w x (w x p_PQ).
The accelerations and the angular velocity are measured in the same frame, and all vectors are expressed in the coordinate system of a_P, which must be Euclidean. Like Drake's SpatialAcceleration::Shift(), a_MBq = a_MBp + alpha_MB x p_BpBq + w_MB x (w_MB x p_BpBq) (https://drake.mit.edu/doxygen_cxx/classdrake_1_1multibody_1_1_spatial_acceleration.html). The arguments are converted like those of velocityOfBodyFixedPoint().
Definition at line 63 of file kinematics.hpp.
| auto wuzp::acos | ( | const Quantities< ValuesT_, UnitsT_ > & | quantities | ) |
The arc cosine of dimensionless quantities, elementwise, like std::acos (https://en.cppreference.com/w/cpp/numeric/math/acos): the angles in [0, pi] in radians, see asin().
Definition at line 784 of file Quantities.hpp.
| auto wuzp::adjoint | ( | const PassiveProperRigidTransformationTemplate< FromT_, ToT_, RotationT_, TranslationT_ > & | , |
| const SpatialAcceleration< ValuesT_, ValueT_, MeasuredInT_, FrameT_, PointT_, ExpressedInT_ > & | ) |
Rejected with a message: the adjoint map of a rigid transformation maps spatial velocities and spatial forces, but a spatial acceleration of Drake shifts with the angular velocity of its frame (see SpatialAcceleration::shift()).
Re-express it with the rigid transformation, X_AB.transform(acceleration), and shift() it. The return type is deduced, so that the message is the first error (see FailOnInstantiation).
Definition at line 123 of file SpatialAcceleration.hpp.
| auto wuzp::adjoint | ( | const PassiveProperRigidTransformationTemplate< FromT_, ToT_, RotationT_, TranslationT_ > & | transformation, |
| const SpatialForce< ValuesT_, ValueT_, FrameT_, PointT_, ExpressedInT_ > & | force ) |
The adjoint map of the passive proper rigid transformation X_AB = (R_AB, p_AoBo_A) from B to A applied to the spatial force F_Cbo_B on a frame C about the origin of B, expressed in B: the spatial force F_Cao_A about the origin of A, expressed in A, f' = R_AB f and tau' = R_AB tau + p_AoBo_A x (R_AB f), i.e. re-expressed in A and shifted to the origin of A.
It is the map of the wrenches of Modern Robotics (Lynch and Park, Cambridge University Press, 2017, section 3.4), F_s = [Ad_T_bs]^T F_b, the transpose of the adjoint map of the inverse X_BA, which preserves the power with the spatial velocities that adjoint() maps by X_AB. The point the spatial force is about must be the origin of B: shift() it there first otherwise. Its 6x6 matrix is not computed.
Definition at line 77 of file SpatialForce.hpp.
| auto wuzp::adjoint | ( | const PassiveProperRigidTransformationTemplate< FromT_, ToT_, RotationT_, TranslationT_ > & | transformation, |
| const SpatialVelocity< ValuesT_, ValueT_, MeasuredInT_, FrameT_, PointT_, ExpressedInT_ > & | velocity ) |
The adjoint map [Ad_X] of the passive proper rigid transformation X_AB = (R_AB, p_AoBo_A) from B to A applied to the spatial velocity V_MCbo_B of a frame C, measured in M, about the origin of B, expressed in B: the spatial velocity V_MCao_A about the origin of A, expressed in A, w' = R_AB w and v' = R_AB v + p_AoBo_A x (R_AB w), i.e. re-expressed in A and shifted to the origin of A.
It is the adjoint representation of Modern Robotics (Lynch and Park, Cambridge University Press, 2017, section 3.3.2), V_s = [Ad_T_sb] V_b, which maps the body twist V_b of the frame B to the spatial twist V_s in the frame S: here adjoint(X_AB, V_ABbo_B) = V_ABao_A. Unlike X_AB.transform(), which re-expresses the spatial velocity about the same point, it also moves the point, which must be the origin of B: shift() it there first otherwise. It is X_AB.transform(velocity).shift(-p_AoBo_A), and its 6x6 matrix is not computed.
Definition at line 105 of file SpatialVelocity.hpp.
| void wuzp::applyCommas | ( | First && | first, |
| Rest &&... | rest ) |
Applies the comma operator from left to right: applyCommas(a, b, c) evaluates ((a, b), c).
The backends use it for the comma initializers of their libraries, e.g. (matrix << 1), 2, 3 with Eigen. All temporaries live until the end of the expression.
Definition at line 134 of file helpers.hpp.
| auto wuzp::asin | ( | const Quantities< ValuesT_, UnitsT_ > & | quantities | ) |
The arc sine of dimensionless quantities, elementwise, like std::asin (https://en.cppreference.com/w/cpp/numeric/math/asin): the angles in [-pi/2, pi/2] in radians, which are dimensionless (see "Angles are dimensionless" in DESIGN.md).
Values outside [-1, 1] give NaN.
Definition at line 777 of file Quantities.hpp.
| auto wuzp::atan | ( | const Quantities< ValuesT_, UnitsT_ > & | quantities | ) |
The arc tangent of dimensionless quantities, elementwise, like std::atan (https://en.cppreference.com/w/cpp/numeric/math/atan): the angles in [-pi/2, pi/2] in radians, see asin().
atan2() takes the quadrant into account.
Definition at line 791 of file Quantities.hpp.
| auto wuzp::atan2 | ( | const Quantity< ValuesYT_, UnitYT_ > & | y, |
| const Quantity< ValuesXT_, UnitXT_ > & | x ) |
The angle of the point (x, y) from the positive x axis, in [-pi, pi] in radians, of two quantities with the same unit, e.g. lengths, like std::atan2 (https://en.cppreference.com/w/cpp/numeric/math/atan2): y comes first, the angle is counterclockwise from the x axis to the y axis, and its branch cut is the negative x axis, where it is pi for y = +0 and -pi for y = -0.
The angle is dimensionless (see "Angles are dimensionless" in DESIGN.md). The values must be floating point values.
Definition at line 816 of file Quantities.hpp.
| auto wuzp::castCoordinateSystem | ( | T | t | ) |
Definition at line 303 of file traits.hpp.
| auto wuzp::cbrt | ( | const Quantities< ValuesT_, UnitsT_ > & | quantities | ) |
The cube root, elementwise: pow<1, 3>(), computed with std::cbrt (https://en.cppreference.com/w/cpp/numeric/math/cbrt), e.g. the cube root of a volume is a length.
The cube root of a negative value is negative, like std::cbrt; that of an integer value is truncated (see pow()).
Definition at line 735 of file Quantities.hpp.
| auto wuzp::cos | ( | const Quantities< ValuesT_, UnitsT_ > & | angles | ) |
The cosine of angles in radians, elementwise, like std::cos (https://en.cppreference.com/w/cpp/numeric/math/cos), see sin().
Definition at line 763 of file Quantities.hpp.
| LorentzTransformation< ValuesT_, ValueT_, FromT_, ToT_, DimensionV_ > wuzp::createBoostMatrix | ( | const VelocityVector< DimensionV_ - 1, ValuesT_, ValueT_, FromT_ > & | velocity | ) |
The passive Lorentz boost from From to To, in the standard form with the time component first and in length units (x^0 = c t), and the signature (+, -, ..., -): x'^0 = gamma (x^0 - beta .
x), with beta = v / c and the Lorentz factor gamma = 1 / sqrt(1 - beta^2) (see the boost matrix B(v) in https://en.wikipedia.org/wiki/Lorentz_transformation#Proper_transformations). The composition of two boosts along the same direction is the boost with the relativistic sum of their velocities, e.g. 0.5 c and 0.5 c give 0.8 c; the composition of boosts along different directions also rotates (Wigner rotation). From and To are Minkowski coordinate systems, like those of every LorentzTransformation. The velocity follows the convention of physics, the motion of To relative to From, unlike the parameters of the passive rotations, which describe their matrices, the orientation of From relative to To, in the convention of robotics (see PassiveSpatialRotation).
| velocity | The velocity of To relative to From, i.e. of the origin of To measured in From, expressed in From: its components are those of the spatial axes of From. Its magnitude, velocity.getQuantities().norm(), must be smaller than the speed of light. velocity.norm() is rejected, since the velocity is expressed in From, which is a Minkowski coordinate system, whose spatial part has the metric -I, so the magnitude is the norm of the components. |
| std::invalid_argument | If the magnitude of the velocity is not smaller than the speed of light, for which there is no Lorentz boost (the Lorentz factor is infinite or not real). |
Definition at line 238 of file LorentzTransformation.hpp.
| auto wuzp::crossProduct | ( | const Lhs & | lhs, |
| const Rhs & | rhs ) |
| auto wuzp::cwiseProduct | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
The elementwise (Hadamard) product of the components of two tensors in the same coordinate system.
It depends on the basis, so it is not a tensor: it returns quantities, without indices or a coordinate system, like the products of Eigen's arrays (https://eigen.tuxfamily.org/dox/group__TutorialArrayClass.html). Points are rejected, since their components depend on the origin. The product of the quantities, lhs.getQuantities() * rhs.getQuantities(), has none of these checks.
Definition at line 840 of file Tensor.hpp.
| auto wuzp::cwiseQuotient | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
The elementwise quotient of the components of two tensors in the same coordinate system, as quantities (see cwiseProduct()).
The quotient of the quantities, division(lhs.getQuantities(), rhs.getQuantities()), has none of these checks.
Definition at line 851 of file Tensor.hpp.
| auto wuzp::difference | ( | const Lhs & | lhs, |
| const Rhs & | rhs ) |
| auto wuzp::difference | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const Quantities< ValuesRhsT_, UnitsRhsT_ > & | rhs ) |
Definition at line 457 of file Quantities.hpp.
| auto wuzp::difference | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
Definition at line 638 of file Tensor.hpp.
| auto wuzp::difference | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 549 of file ValuesWrapper.hpp.
| auto wuzp::division | ( | const Lhs & | lhs, |
| const Rhs & | rhs ) |
| auto wuzp::division | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const Quantities< ValuesRhsT_, UnitsRhsT_ > & | rhs ) |
The elementwise quotient of quantities of the same size.
Quantities have no coordinate system and no indices, so this is the unrestricted counterpart of cwiseQuotient() of tensors, e.g. for the components of points.
Definition at line 584 of file Quantities.hpp.
| auto wuzp::division | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const Quantity< ValueRhsT_, UnitRhsT_ > & | rhs ) |
Definition at line 577 of file Quantities.hpp.
| auto wuzp::division | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const ValueRhsT_ | rhs ) |
Definition at line 567 of file Quantities.hpp.
| auto wuzp::division | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 572 of file Quantities.hpp.
| auto wuzp::division | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const Quantities< ValuesRhsT_, UnitsRhsT_ > & | rhs ) |
Definition at line 878 of file Tensor.hpp.
| auto wuzp::division | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
Definition at line 885 of file Tensor.hpp.
| auto wuzp::division | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const ValueRhsT_ | rhs ) |
The quotient by an arithmetic scalar, which is converted into the value type of the tensor (see product()).
Definition at line 864 of file Tensor.hpp.
| auto wuzp::division | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 870 of file Tensor.hpp.
| auto wuzp::division | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const ValueRhsT_ | rhs ) |
Definition at line 659 of file ValuesWrapper.hpp.
| auto wuzp::division | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 666 of file ValuesWrapper.hpp.
| auto wuzp::dotProduct | ( | const Lhs & | lhs, |
| const Rhs & | rhs ) |
| auto wuzp::exp | ( | const Quantities< ValuesT_, UnitsT_ > & | quantities | ) |
The exponential function e^x of dimensionless quantities, elementwise, like std::exp (https://en.cppreference.com/w/cpp/numeric/math/exp): not the matrix exponential of a matrix.
Definition at line 798 of file Quantities.hpp.
| auto wuzp::getInvariant | ( | const Vector< QuantitiesT_, CoordinateSystemT_ > & | vector | ) |
The Minkowski interval eta_ij v^i v^j = v_0^2 - v_1^2 - ... - v_n^2 of a vector whose first component is the time component, e.g. of a spacetime vector (c t, x, y, z) or of a four-velocity, which Lorentz transformations preserve (Carroll, Lecture Notes on General Relativity, https://arxiv.org/abs/gr-qc/9712019, chapter 1).
It is the product with the Minkowski metric eta, so the vector must be expressed in a Minkowski coordinate system (see Minkowski), in which the Euclidean dotProduct and squaredNorm are rejected. All components need the same unit. It takes any vector rather than SpacetimeVector, whose alias template parameters could not be deduced.
Definition at line 210 of file LorentzTransformation.hpp.
| auto wuzp::getSpeedOfLight | ( | ) |
The speed of light, as a quantity of the value matrix backend ValuesT_, e.g. getSpeedOfLight<wuzp_eigen::ValueMatrix, double>().
Definition at line 197 of file LorentzTransformation.hpp.
| auto wuzp::hypot | ( | const Quantity< ValuesXT_, UnitXT_ > & | x, |
| const Quantity< ValuesYT_, UnitYT_ > & | y ) |
The length sqrt(x^2 + y^2) of two quantities with the same unit, e.g. the components of a vector, without overflow or underflow in the intermediate steps, like std::hypot (https://en.cppreference.com/w/cpp/numeric/math/hypot).
For integer values, it is truncated exactly, like the powers (see internal::realHypot and "Integer values" in DESIGN.md).
| std::range_error | For integer values whose length does not fit into the value type. |
Definition at line 828 of file Quantities.hpp.
| void wuzp::initialize | ( | ValuesWrapper< MatrixSizeT_, ValueT_, ImplementationT_ > & | values, |
| Args &&... | args ) |
| auto wuzp::innerProduct | ( | const Lhs & | lhs, |
| const Rhs & | rhs ) |
| auto wuzp::innerProduct | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const Quantities< ValuesRhsT_, UnitsRhsT_ > & | rhs ) |
Definition at line 524 of file Quantities.hpp.
| auto wuzp::innerProduct | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
The inner product, which contracts the last index of the left-hand side with the first index of the right-hand side, e.g. w_i v^i of a covector and a vector, T^i_j v^j of a linear map and a vector, or M_ij v^j of a mass matrix and a vector, a covector.
The indices must be an upper and a lower one (see InnerProduct<Indices<...>, Indices<...>>).
Definition at line 764 of file Tensor.hpp.
| auto wuzp::innerProduct | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 646 of file ValuesWrapper.hpp.
| auto wuzp::log | ( | const Quantities< ValuesT_, UnitsT_ > & | quantities | ) |
The natural logarithm of dimensionless quantities, elementwise, like std::log (https://en.cppreference.com/w/cpp/numeric/math/log): NaN for negative values, and -infinity for zero.
Definition at line 805 of file Quantities.hpp.
| auto wuzp::makeAbsolute | ( | T | t | ) |
The point at a vector from the origin of the coordinate system, o + v: the same components, as an absolute object.
Definition at line 288 of file traits.hpp.
| auto wuzp::makeRelative | ( | T | t | ) |
The vector from the origin of the coordinate system to a point, p - o: the same components, as a relative object.
Definition at line 278 of file traits.hpp.
| auto wuzp::max | ( | const Quantity< ValuesLhsT_, UnitLhsT_ > & | lhs, |
| const Quantity< ValuesRhsT_, UnitRhsT_ > & | rhs ) |
The larger of two quantities with the same unit, like std::max (https://en.cppreference.com/w/cpp/algorithm/max), which returns lhs if neither is larger, e.g. if one is NaN.
Definition at line 848 of file Quantities.hpp.
| auto wuzp::max | ( | const Quantity< ValuesT_, UnitT_ > & | lhs, |
| const Quantity< ValuesT_, UnitT_ > & | rhs ) |
max() of two quantities of the same type, see min().
Definition at line 853 of file Quantities.hpp.
| auto wuzp::min | ( | const Quantity< ValuesLhsT_, UnitLhsT_ > & | lhs, |
| const Quantity< ValuesRhsT_, UnitRhsT_ > & | rhs ) |
The smaller of two quantities with the same unit, like std::min (https://en.cppreference.com/w/cpp/algorithm/min), which returns lhs if neither is smaller, e.g. if one is NaN.
Definition at line 835 of file Quantities.hpp.
| auto wuzp::min | ( | const Quantity< ValuesT_, UnitT_ > & | lhs, |
| const Quantity< ValuesT_, UnitT_ > & | rhs ) |
min() of two quantities of the same type.
Argument-dependent lookup also finds std::min(const T&, const T&) for them, e.g. through the std::tuple of their units, which would make the overload above ambiguous: this one is more specialized than both.
Definition at line 841 of file Quantities.hpp.
| auto wuzp::negation | ( | const Quantities< ValuesT_, UnitsT_ > & | rhs | ) |
Definition at line 467 of file Quantities.hpp.
| auto wuzp::negation | ( | const Rhs & | rhs | ) |
| auto wuzp::negation | ( | const Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > & | rhs | ) |
Definition at line 652 of file Tensor.hpp.
| auto wuzp::negation | ( | const ValuesWrapper< MatrixSizeT_, ValueT_, ImplementationT_ > & | rhs | ) |
Definition at line 565 of file ValuesWrapper.hpp.
| bool wuzp::operator!= | ( | const ActiveLinearTransformation< ValuesLhsT_, ValueLhsT_, CoordinateSystemLhsT_, DimensionFromLhsV_, DimensionToLhsV_, UnitsLhsT_... > & | lhs, |
| const ActiveLinearTransformation< ValuesRhsT_, ValueRhsT_, CoordinateSystemRhsT_, DimensionFromRhsV_, DimensionToRhsV_, UnitsRhsT_... > & | rhs ) |
Definition at line 237 of file ActiveLinearTransformation.hpp.
| bool wuzp::operator!= | ( | const ActiveSpatialRotation< ValuesLhsT_, ValueLhsT_, CoordinateSystemLhsT_, DimensionLhsV_ > & | lhs, |
| const ActiveSpatialRotation< ValuesRhsT_, ValueRhsT_, CoordinateSystemRhsT_, DimensionRhsV_ > & | rhs ) |
Definition at line 501 of file ActiveSpatialRotation.hpp.
| bool wuzp::operator!= | ( | const ActiveTranslation< ValuesLhsT_, DimensionLhsV_, ValueLhsT_, CoordinateSystemLhsT_, UnitsLhsT_... > & | lhs, |
| const ActiveTranslation< ValuesRhsT_, DimensionRhsV_, ValueRhsT_, CoordinateSystemRhsT_, UnitsRhsT_... > & | rhs ) |
Definition at line 126 of file ActiveTranslation.hpp.
| bool wuzp::operator!= | ( | const Jacobian< ValuesLhsT_, ValueLhsT_, FromLhsT_, ToLhsT_, DimensionFromLhsV_, DimensionToLhsV_, UnitsLhsT_... > & | lhs, |
| const Jacobian< ValuesRhsT_, ValueRhsT_, FromRhsT_, ToRhsT_, DimensionFromRhsV_, DimensionToRhsV_, UnitsRhsT_... > & | rhs ) |
Definition at line 245 of file Jacobian.hpp.
| bool wuzp::operator!= | ( | const LorentzTransformation< ValuesLhsT_, ValueLhsT_, FromLhsT_, ToLhsT_, DimensionLhsV_ > & | lhs, |
| const LorentzTransformation< ValuesRhsT_, ValueRhsT_, FromRhsT_, ToRhsT_, DimensionRhsV_ > & | rhs ) |
Definition at line 184 of file LorentzTransformation.hpp.
| bool wuzp::operator!= | ( | const PassiveLinearTransformation< ValuesLhsT_, ValueLhsT_, FromLhsT_, ToLhsT_, DimensionLhsV_, UnitsLhsT_... > & | lhs, |
| const PassiveLinearTransformation< ValuesRhsT_, ValueRhsT_, FromRhsT_, ToRhsT_, DimensionRhsV_, UnitsRhsT_... > & | rhs ) |
Definition at line 218 of file PassiveLinearTransformation.hpp.
| bool wuzp::operator!= | ( | const PassiveSpatialRotation< ValuesLhsT_, ValueLhsT_, FromLhsT_, ToLhsT_, DimensionLhsV_ > & | lhs, |
| const PassiveSpatialRotation< ValuesRhsT_, ValueRhsT_, FromRhsT_, ToRhsT_, DimensionRhsV_ > & | rhs ) |
Definition at line 529 of file PassiveSpatialRotation.hpp.
| bool wuzp::operator!= | ( | const PassiveTranslation< ValuesLhsT_, DimensionLhsV_, ValueLhsT_, FromLhsT_, ToLhsT_, UnitsLhsT_... > & | lhs, |
| const PassiveTranslation< ValuesRhsT_, DimensionRhsV_, ValueRhsT_, FromRhsT_, ToRhsT_, UnitsRhsT_... > & | rhs ) |
Definition at line 125 of file PassiveTranslation.hpp.
| bool wuzp::operator!= | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const Quantities< ValuesRhsT_, UnitsRhsT_ > & | rhs ) |
Definition at line 608 of file Quantities.hpp.
| bool wuzp::operator!= | ( | const SpatialVector< LhsT_, RotationalLhsT_, TranslationalLhsT_ > & | lhs, |
| const SpatialVector< RhsT_, RotationalRhsT_, TranslationalRhsT_ > & | rhs ) |
Whether two spatial vectors with the same tags differ: one of their parts differs.
Definition at line 186 of file SpatialVector.hpp.
| bool wuzp::operator!= | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
Definition at line 927 of file Tensor.hpp.
| bool wuzp::operator!= | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 699 of file ValuesWrapper.hpp.
| auto wuzp::operator* | ( | const ActiveTransformation< LhsT_ > & | lhs, |
| const ActiveTransformation< RhsT_ > & | rhs ) |
The composition of two active transformations in the same coordinate system, which applies rhs first, then lhs: (lhs * rhs).transform(x) is lhs.transform(rhs.transform(x)), like the product of their matrices (see CompositionTraits).
Definition at line 29 of file ActiveTransformation.hpp.
| auto wuzp::operator* | ( | const ActiveTransformation< LhsT_ > & | lhs, |
| const PassiveTransformation< RhsT_, FromRhsT_, ToRhsT_ > & | rhs ) |
Definition at line 56 of file PassiveTransformation.hpp.
| auto wuzp::operator* | ( | const PassiveTransformation< LhsT_, FromLhsT_, ToLhsT_ > & | lhs, |
| const ActiveTransformation< RhsT_ > & | rhs ) |
Definition at line 60 of file PassiveTransformation.hpp.
| auto wuzp::operator* | ( | const PassiveTransformation< LhsT_, FromLhsT_, ToLhsT_ > & | lhs, |
| const PassiveTransformation< RhsT_, FromRhsT_, ToRhsT_ > & | rhs ) |
The composition of two passive transformations, in the order of the monogram notation of Drake (https://drake.mit.edu/doxygen_cxx/group__multibody__notation.html): X_AB * X_BC = X_AC, i.e. the transformation from C to B, followed by the one from B to A, like ^A_C T = ^A_B T ^B_C T in the notation of Craig.
The coordinate systems that meet, From of lhs and To of rhs, must be the same, which wave_geometry (https://github.com/wavelab/wave_geometry) also checks at compile time. See CompositionTraits.
Definition at line 49 of file PassiveTransformation.hpp.
| auto wuzp::operator* | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const Quantities< ValuesRhsT_, UnitsRhsT_ > & | rhs ) |
Definition at line 519 of file Quantities.hpp.
| auto wuzp::operator* | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
Definition at line 746 of file Tensor.hpp.
| auto wuzp::operator* | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const ValueRhsT_ | rhs ) |
Definition at line 503 of file Quantities.hpp.
| auto wuzp::operator* | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 511 of file Quantities.hpp.
| auto wuzp::operator* | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const Quantities< ValuesRhsT_, UnitsRhsT_ > & | rhs ) |
Definition at line 740 of file Tensor.hpp.
| auto wuzp::operator* | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
Definition at line 752 of file Tensor.hpp.
| auto wuzp::operator* | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const ValueRhsT_ | rhs ) |
Definition at line 718 of file Tensor.hpp.
| auto wuzp::operator* | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 728 of file Tensor.hpp.
| auto wuzp::operator* | ( | const ValueLhsT_ | lhs, |
| const Quantities< ValuesRhsT_, UnitsRhsT_ > & | rhs ) |
Definition at line 507 of file Quantities.hpp.
| auto wuzp::operator* | ( | const ValueLhsT_ | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
Definition at line 723 of file Tensor.hpp.
| auto wuzp::operator* | ( | const ValueLhsT_ | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 634 of file ValuesWrapper.hpp.
| auto wuzp::operator* | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const Quantities< ValuesRhsT_, UnitsRhsT_ > & | rhs ) |
Definition at line 515 of file Quantities.hpp.
| auto wuzp::operator* | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
Definition at line 734 of file Tensor.hpp.
| auto wuzp::operator* | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const ValueRhsT_ | rhs ) |
Definition at line 603 of file ValuesWrapper.hpp.
| auto wuzp::operator* | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 639 of file ValuesWrapper.hpp.
| auto wuzp::operator+ | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const Quantities< ValuesRhsT_, UnitsRhsT_ > & | rhs ) |
Definition at line 452 of file Quantities.hpp.
| LhsT_ wuzp::operator+ | ( | const SpatialVector< LhsT_, RotationalLhsT_, TranslationalLhsT_ > & | lhs, |
| const SpatialVector< RhsT_, RotationalRhsT_, TranslationalRhsT_ > & | rhs ) |
The sum of two spatial vectors with the same tags, part by part, e.g. of two spatial forces on the same body about the same point.
Spatial vectors with other tags are combined by shift() and the compositions, e.g. composeWithMovingFrameVelocity().
Definition at line 195 of file SpatialVector.hpp.
| auto wuzp::operator+ | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
Definition at line 631 of file Tensor.hpp.
| auto wuzp::operator+ | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 542 of file ValuesWrapper.hpp.
| auto wuzp::operator- | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const Quantities< ValuesRhsT_, UnitsRhsT_ > & | rhs ) |
Definition at line 462 of file Quantities.hpp.
| auto wuzp::operator- | ( | const Quantities< ValuesT_, UnitsT_ > & | rhs | ) |
Definition at line 471 of file Quantities.hpp.
| LhsT_ wuzp::operator- | ( | const SpatialVector< LhsT_, RotationalLhsT_, TranslationalLhsT_ > & | lhs, |
| const SpatialVector< RhsT_, RotationalRhsT_, TranslationalRhsT_ > & | rhs ) |
The difference of two spatial vectors with the same tags, part by part.
Definition at line 204 of file SpatialVector.hpp.
| auto wuzp::operator- | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
Definition at line 646 of file Tensor.hpp.
| auto wuzp::operator- | ( | const Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > & | rhs | ) |
Definition at line 657 of file Tensor.hpp.
| auto wuzp::operator- | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 559 of file ValuesWrapper.hpp.
| auto wuzp::operator- | ( | const ValuesWrapper< MatrixSizeT_, ValueT_, ImplementationT_ > & | rhs | ) |
Definition at line 571 of file ValuesWrapper.hpp.
| auto wuzp::operator/ | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const Quantity< ValueRhsT_, UnitRhsT_ > & | rhs ) |
Definition at line 597 of file Quantities.hpp.
| auto wuzp::operator/ | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const ValueRhsT_ | rhs ) |
Definition at line 589 of file Quantities.hpp.
| auto wuzp::operator/ | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 593 of file Quantities.hpp.
| auto wuzp::operator/ | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const Quantities< ValuesRhsT_, UnitsRhsT_ > & | rhs ) |
Definition at line 904 of file Tensor.hpp.
| auto wuzp::operator/ | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
Definition at line 910 of file Tensor.hpp.
| auto wuzp::operator/ | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const ValueRhsT_ | rhs ) |
Definition at line 893 of file Tensor.hpp.
| auto wuzp::operator/ | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 898 of file Tensor.hpp.
| auto wuzp::operator/ | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const ValueRhsT_ | rhs ) |
Definition at line 679 of file ValuesWrapper.hpp.
| auto wuzp::operator/ | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 684 of file ValuesWrapper.hpp.
| std::ostream & wuzp::operator<< | ( | std::ostream & | lhs, |
| const ActiveLinearTransformation< ValuesT_, ValueT_, CoordinateSystemT_, DimensionFromV_, DimensionToV_, UnitsT_... > & | rhs ) |
Definition at line 246 of file ActiveLinearTransformation.hpp.
| std::ostream & wuzp::operator<< | ( | std::ostream & | lhs, |
| const ActiveSpatialRotation< ValuesT_, ValueT_, CoordinateSystemT_, DimensionV_ > & | rhs ) |
Definition at line 507 of file ActiveSpatialRotation.hpp.
| std::ostream & wuzp::operator<< | ( | std::ostream & | lhs, |
| const ActiveTranslation< ValuesT_, DimensionV_, ValueT_, CoordinateSystemT_, UnitsT_... > & | rhs ) |
Definition at line 133 of file ActiveTranslation.hpp.
| std::ostream & wuzp::operator<< | ( | std::ostream & | lhs, |
| const Jacobian< ValuesT_, ValueT_, FromT_, ToT_, DimensionFromV_, DimensionToV_, UnitsT_... > & | rhs ) |
Definition at line 252 of file Jacobian.hpp.
| std::ostream & wuzp::operator<< | ( | std::ostream & | lhs, |
| const LorentzTransformation< ValuesT_, ValueT_, FromT_, ToT_, DimensionV_ > & | rhs ) |
Definition at line 190 of file LorentzTransformation.hpp.
| std::ostream & wuzp::operator<< | ( | std::ostream & | lhs, |
| const PassiveLinearTransformation< ValuesT_, ValueT_, FromT_, ToT_, DimensionV_, UnitsT_... > & | rhs ) |
Definition at line 225 of file PassiveLinearTransformation.hpp.
| std::ostream & wuzp::operator<< | ( | std::ostream & | lhs, |
| const PassiveSpatialRotation< ValuesT_, ValueT_, FromT_, ToT_, DimensionV_ > & | rhs ) |
Definition at line 535 of file PassiveSpatialRotation.hpp.
| std::ostream & wuzp::operator<< | ( | std::ostream & | lhs, |
| const PassiveTranslation< ValuesT_, DimensionV_, ValueT_, FromT_, ToT_, UnitsT_... > & | rhs ) |
Definition at line 132 of file PassiveTranslation.hpp.
| std::ostream & wuzp::operator<< | ( | std::ostream & | lhs, |
| const Quantities< ValuesT_, UnitsT_ > & | rhs ) |
Definition at line 613 of file Quantities.hpp.
| std::ostream & wuzp::operator<< | ( | std::ostream & | lhs, |
| const SpatialVector< DerivedT_, RotationalT_, TranslationalT_ > & | rhs ) |
Prints the rotational part, then the translational part.
Definition at line 212 of file SpatialVector.hpp.
| std::ostream & wuzp::operator<< | ( | std::ostream & | lhs, |
| const Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > & | rhs ) |
Definition at line 933 of file Tensor.hpp.
| std::ostream & wuzp::operator<< | ( | std::ostream & | lhs, |
| const ValuesWrapper< MatrixSizeT_, ValueT_, ImplementationT_ > & | rhs ) |
Definition at line 705 of file ValuesWrapper.hpp.
| bool wuzp::operator== | ( | const ActiveLinearTransformation< ValuesLhsT_, ValueLhsT_, CoordinateSystemLhsT_, DimensionFromLhsV_, DimensionToLhsV_, UnitsLhsT_... > & | lhs, |
| const ActiveLinearTransformation< ValuesRhsT_, ValueRhsT_, CoordinateSystemRhsT_, DimensionFromRhsV_, DimensionToRhsV_, UnitsRhsT_... > & | rhs ) |
Definition at line 226 of file ActiveLinearTransformation.hpp.
| bool wuzp::operator== | ( | const ActiveSpatialRotation< ValuesLhsT_, ValueLhsT_, CoordinateSystemLhsT_, DimensionLhsV_ > & | lhs, |
| const ActiveSpatialRotation< ValuesRhsT_, ValueRhsT_, CoordinateSystemRhsT_, DimensionRhsV_ > & | rhs ) |
Definition at line 493 of file ActiveSpatialRotation.hpp.
| bool wuzp::operator== | ( | const ActiveTranslation< ValuesLhsT_, DimensionLhsV_, ValueLhsT_, CoordinateSystemLhsT_, UnitsLhsT_... > & | lhs, |
| const ActiveTranslation< ValuesRhsT_, DimensionRhsV_, ValueRhsT_, CoordinateSystemRhsT_, UnitsRhsT_... > & | rhs ) |
Definition at line 118 of file ActiveTranslation.hpp.
| bool wuzp::operator== | ( | const Jacobian< ValuesLhsT_, ValueLhsT_, FromLhsT_, ToLhsT_, DimensionFromLhsV_, DimensionToLhsV_, UnitsLhsT_... > & | lhs, |
| const Jacobian< ValuesRhsT_, ValueRhsT_, FromRhsT_, ToRhsT_, DimensionFromRhsV_, DimensionToRhsV_, UnitsRhsT_... > & | rhs ) |
Definition at line 236 of file Jacobian.hpp.
| bool wuzp::operator== | ( | const LorentzTransformation< ValuesLhsT_, ValueLhsT_, FromLhsT_, ToLhsT_, DimensionLhsV_ > & | lhs, |
| const LorentzTransformation< ValuesRhsT_, ValueRhsT_, FromRhsT_, ToRhsT_, DimensionRhsV_ > & | rhs ) |
Definition at line 176 of file LorentzTransformation.hpp.
| bool wuzp::operator== | ( | const PassiveLinearTransformation< ValuesLhsT_, ValueLhsT_, FromLhsT_, ToLhsT_, DimensionLhsV_, UnitsLhsT_... > & | lhs, |
| const PassiveLinearTransformation< ValuesRhsT_, ValueRhsT_, FromRhsT_, ToRhsT_, DimensionRhsV_, UnitsRhsT_... > & | rhs ) |
Definition at line 209 of file PassiveLinearTransformation.hpp.
| bool wuzp::operator== | ( | const PassiveSpatialRotation< ValuesLhsT_, ValueLhsT_, FromLhsT_, ToLhsT_, DimensionLhsV_ > & | lhs, |
| const PassiveSpatialRotation< ValuesRhsT_, ValueRhsT_, FromRhsT_, ToRhsT_, DimensionRhsV_ > & | rhs ) |
Definition at line 521 of file PassiveSpatialRotation.hpp.
| bool wuzp::operator== | ( | const PassiveTranslation< ValuesLhsT_, DimensionLhsV_, ValueLhsT_, FromLhsT_, ToLhsT_, UnitsLhsT_... > & | lhs, |
| const PassiveTranslation< ValuesRhsT_, DimensionRhsV_, ValueRhsT_, FromRhsT_, ToRhsT_, UnitsRhsT_... > & | rhs ) |
Definition at line 116 of file PassiveTranslation.hpp.
| bool wuzp::operator== | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const Quantities< ValuesRhsT_, UnitsRhsT_ > & | rhs ) |
Definition at line 602 of file Quantities.hpp.
| bool wuzp::operator== | ( | const SpatialVector< LhsT_, RotationalLhsT_, TranslationalLhsT_ > & | lhs, |
| const SpatialVector< RhsT_, RotationalRhsT_, TranslationalRhsT_ > & | rhs ) |
Whether two spatial vectors with the same tags are equal: both their parts are equal.
Definition at line 177 of file SpatialVector.hpp.
| bool wuzp::operator== | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
Definition at line 917 of file Tensor.hpp.
| bool wuzp::operator== | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 691 of file ValuesWrapper.hpp.
| auto wuzp::outerProduct | ( | const Lhs & | lhs, |
| const Rhs & | rhs ) |
| auto wuzp::outerProduct | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const Quantities< ValuesRhsT_, UnitsRhsT_ > & | rhs ) |
Definition at line 529 of file Quantities.hpp.
| auto wuzp::outerProduct | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
The outer (tensor) product of two vectors or covectors, e.g. v^i w_j, a tensor of rank 2 whose indices are those of the left-hand side, followed by those of the right-hand side (see OuterProduct<Indices<...>, Indices<...>>).
Definition at line 775 of file Tensor.hpp.
| auto wuzp::outerProduct | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 653 of file ValuesWrapper.hpp.
| auto wuzp::pow | ( | const Quantities< ValuesT_, UnitsT_ > & | quantities | ) |
Definition at line 718 of file Quantities.hpp.
| auto wuzp::pow | ( | const Quantities< ValuesT_, UnitsT_ > & | quantities | ) |
Definition at line 712 of file Quantities.hpp.
| auto wuzp::pow | ( | const Quantities< ValuesT_, UnitsT_ > & | quantities | ) |
The quantities raised to a rational power P/Q, elementwise, e.g. pow<Rational<1, 2>>(area) is a length, and pow<2>() of a length and a time is an area and a squared time.
The power of floating point values is computed in their type, with std::sqrt for 1/2 and std::cbrt for 1/3. For integer values, a result that is not an integer is truncated, like the norm of integer vectors, which follows Eigen's norm(): pow<1, 2>(QuantityI<Area>(5)) is 2 m (see "Integer values" in DESIGN.md). The truncation is exact, e.g. pow<2, 3>() of 8 m^3 is 4 m^2, which is 3.9999999999999996 with std::pow (see internal::integerPower). A negative value has a real power if the reduced denominator Q is odd, (-1)^P |x|^(P/Q): e.g. pow<1, 3>() of -8 m^3 is -2 m, like std::cbrt, where std::pow is NaN. If Q is even, it has none: floating point values give NaN, like std::pow (https://en.cppreference.com/w/cpp/numeric/math/pow#Error_handling), and integer values throw std::domain_error (see "Powers of negative quantities" in DESIGN.md). The exponent comes first, as the values and the units can be deduced.
| std::domain_error | For a negative integer value and an even Q, and for an integer zero and a negative P. |
| std::range_error | For an integer power that does not fit into the value type. |
Definition at line 705 of file Quantities.hpp.
| auto wuzp::product | ( | const Lhs & | lhs, |
| const Rhs & | rhs ) |
| auto wuzp::product | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const Quantities< ValuesRhsT_, UnitsRhsT_ > & | rhs ) |
The elementwise product of quantities of the same size, or with a quantity.
Quantities have no coordinate system and no indices, so this is the unrestricted counterpart of cwiseProduct() of tensors, e.g. for the components of points. This specialization also covers the Quantity typedef.
Definition at line 498 of file Quantities.hpp.
| auto wuzp::product | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
Definition at line 703 of file Tensor.hpp.
| auto wuzp::product | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const ValueRhsT_ | rhs ) |
Definition at line 476 of file Quantities.hpp.
| auto wuzp::product | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 485 of file Quantities.hpp.
| auto wuzp::product | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const Quantities< ValuesRhsT_, UnitsRhsT_ > & | rhs ) |
The product with a quantity, 1x1 quantities (see Product<Tensor<...>, Quantities<...>>).
Definition at line 696 of file Tensor.hpp.
| auto wuzp::product | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
The product of two tensors, one of which has rank 0 (see Product<Tensor<...>, Tensor<...>>).
Definition at line 710 of file Tensor.hpp.
| auto wuzp::product | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const ValueRhsT_ | rhs ) |
The product with an arithmetic scalar, which is converted into the value type of the tensor if their common type is the value type, e.g. 2 * vector for a vector of doubles (see internal::toDimensionlessQuantity).
Definition at line 669 of file Tensor.hpp.
| auto wuzp::product | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
The product with dimensionless values, which must be a scalar, 1x1 values.
Definition at line 681 of file Tensor.hpp.
| auto wuzp::product | ( | const ValueLhsT_ | lhs, |
| const Quantities< ValuesRhsT_, UnitsRhsT_ > & | rhs ) |
Definition at line 481 of file Quantities.hpp.
| auto wuzp::product | ( | const ValueLhsT_ | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
Definition at line 675 of file Tensor.hpp.
| auto wuzp::product | ( | const ValueLhsT_ | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 582 of file ValuesWrapper.hpp.
| auto wuzp::product | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const Quantities< ValuesRhsT_, UnitsRhsT_ > & | rhs ) |
Definition at line 491 of file Quantities.hpp.
| auto wuzp::product | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
Definition at line 689 of file Tensor.hpp.
| auto wuzp::product | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const ValueRhsT_ | rhs ) |
Definition at line 576 of file ValuesWrapper.hpp.
| auto wuzp::product | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 587 of file ValuesWrapper.hpp.
| auto wuzp::sin | ( | const Quantities< ValuesT_, UnitsT_ > & | angles | ) |
The sine of angles in radians, elementwise, like std::sin (https://en.cppreference.com/w/cpp/numeric/math/sin): dimensionless quantities.
The angles can be any dimensionless quantities (see "Angles are dimensionless" in DESIGN.md).
Definition at line 757 of file Quantities.hpp.
| auto wuzp::skewSymmetricMatrix | ( | const Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > & | vector | ) |
The skew-symmetric matrix [v]x of a three-dimensional vector v, the linear map of the cross product with v: innerProduct(skewSymmetricMatrix(v), w) is v.crossProduct(w), e.g. for the velocity w x r of a point of a rotating body or the derivative dR/dt = [w]x R of a rotation.
It is the "hat" operator of the Lie algebra so(3) (SolĂ , Deray and Atchuthan, "A micro Lie theory for state estimation in robotics", https://arxiv.org/abs/1812.01537, eq. 9), and kindr's getSkewMatrixFromVector(). It is a linear map, a tensor with an upper and a lower index, whose elements all have the unit of the components of v, which must be the same. Like the cross product, it uses the Levi-Civita symbol of a right-handed orthonormal basis, so it is only rotated like a tensor by proper rotations, and it requires a Euclidean coordinate system and rejects points and batches (see crossProduct()).
Definition at line 795 of file Tensor.hpp.
| auto wuzp::sqrt | ( | const Quantities< ValuesT_, UnitsT_ > & | quantities | ) |
The square root, elementwise: pow<1, 2>(), computed with std::sqrt (https://en.cppreference.com/w/cpp/numeric/math/sqrt), e.g. the square root of an area is a length.
The square root of a negative value is NaN for floating point values, like std::sqrt, and throws std::domain_error for integer values; that of other integer values is truncated (see pow()).
| std::domain_error | For a negative integer value. |
Definition at line 727 of file Quantities.hpp.
| auto wuzp::sum | ( | const Lhs & | lhs, |
| const Rhs & | rhs ) |
| auto wuzp::sum | ( | const Quantities< ValuesLhsT_, UnitsLhsT_ > & | lhs, |
| const Quantities< ValuesRhsT_, UnitsRhsT_ > & | rhs ) |
Definition at line 447 of file Quantities.hpp.
| auto wuzp::sum | ( | const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > & | lhs, |
| const Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > & | rhs ) |
Definition at line 623 of file Tensor.hpp.
| auto wuzp::sum | ( | const ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > & | lhs, |
| const ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > & | rhs ) |
Definition at line 532 of file ValuesWrapper.hpp.
| auto wuzp::tan | ( | const Quantities< ValuesT_, UnitsT_ > & | angles | ) |
The tangent of angles in radians, elementwise, like std::tan (https://en.cppreference.com/w/cpp/numeric/math/tan), see sin().
Definition at line 769 of file Quantities.hpp.
| auto wuzp::vectorOfSkewSymmetricMatrix | ( | const Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > & | matrix | ) |
The vector v of the skew-symmetric matrix [v]x, the inverse of skewSymmetricMatrix(): for a three-dimensional linear map M, the vector of its skew-symmetric part (M - M^T) / 2, v = (M_21 - M_12, M_02 - M_20, M_10 - M_01) / 2, which averages out rounding errors of a matrix that is skew-symmetric only approximately, e.g. dR/dt R^T.
kindr's getVectorFromSkewMatrix() takes the elements below the diagonal. The elements of each pair must have the same unit, the unit of the component of v, and the coordinate system must be Euclidean, like for skewSymmetricMatrix().
Definition at line 816 of file Tensor.hpp.
| auto wuzp::velocityOfBodyFixedPoint | ( | const VelocityT_ & | velocity, |
| const AngularVelocityT_ & | angularVelocity, | ||
| const OffsetT_ & | offset ) |
The velocity v_Q = v_P + w x p_PQ of a point Q fixed to a rigid body, from the velocity v_P of a point P fixed to the body, the angular velocity w of the body and the position vector p_PQ from P to Q.
The velocities are measured in the same frame, e.g. an inertial one, and all vectors are expressed in the coordinate system of v_P, which must be Euclidean. Like Drake's SpatialVelocity::Shift(), v_MBq = v_MBp + w_MB x p_BpBq (https://drake.mit.edu/doxygen_cxx/classdrake_1_1multibody_1_1_spatial_velocity.html). The angular velocity and the position vector are converted into three-dimensional vectors of an angular velocity and a length in the coordinate system of v_P, so that e.g. swapped arguments fail with "Units do not match." and a point instead of the position vector with "Absolute/relative mismatch.": p_PQ is the difference of two points.
Definition at line 47 of file kinematics.hpp.
|
inlineconstexpr |
Definition at line 90 of file helpers.hpp.
|
inlineconstexpr |
Whether an arithmetic scalar of the type ScalarT_ is converted into the value type ValueT_: if their common type (the type of their sum in C++) is the value type, e.g. an int scalar with double values, but not a double scalar with int or float values, nor an unsigned scalar with int values, whose sum would be unsigned.
The scalars of operations, e.g. 2 * v, and the elements that values are constructed from or that set() sets follow this rule.
Definition at line 97 of file helpers.hpp.