wuzp
Wrong Unit? Zero Points! Compile-time checks for units, coordinate systems and points vs. vectors.
Loading...
Searching...
No Matches
Tensor.hpp File Reference
#include <ostream>
#include <tuple>
#include <type_traits>
#include <utility>
#include "wuzp/core/Absolute.hpp"
#include "wuzp/core/CoordinateSystem.hpp"
#include "wuzp/core/Indices.hpp"
#include "wuzp/core/Quantities.hpp"
#include "wuzp/core/TypeMatrix.hpp"
#include "wuzp/core/ValuesWrapper.hpp"
#include "wuzp/core/concepts.hpp"
#include "wuzp/core/helpers.hpp"
#include "wuzp/core/internal/skew_symmetric.hpp"
#include "wuzp/core/traits.hpp"

Go to the source code of this file.

Classes

class  wuzp::Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ >
 A tensor of rank 0, 1 or 2, whose components are quantities, expressed in a coordinate system, e.g. a vector, a covector, a linear map or a mass matrix. More...
struct  wuzp::IsValidConversion< Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ >, Tensor< IndicesOtherT_, QuantitiesOtherT_, CoordinateSystemOtherT_, AbsoluteOtherT_ > >
struct  wuzp::GetTag< Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ >, Ts... >
struct  wuzp::Dimension< Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > >
struct  wuzp::Rows< Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > >
struct  wuzp::Cols< Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > >
struct  wuzp::Sum< Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ >, Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > >
struct  wuzp::Difference< Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ >, Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > >
struct  wuzp::Negation< Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > >
struct  wuzp::Product< Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ >, Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > >
 The product of two tensors, one of which has rank 0, e.g. of a scalar field and a vector. More...
struct  wuzp::Product< Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ >, Quantities< ValuesRhsT_, UnitsRhsT_ > >
 The product of a tensor and a quantity, a 1x1 matrix of quantities. More...
struct  wuzp::Product< Quantities< ValuesLhsT_, UnitsLhsT_ >, Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > >
struct  wuzp::InnerProduct< Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ >, Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > >
 The inner product, which contracts the last index of the left-hand side with the first index of the right-hand side (see InnerProduct<Indices<...>, Indices<...>>). More...
struct  wuzp::OuterProduct< Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ >, Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > >
 The outer product, whose indices are those of the left-hand side, followed by those of the right-hand side (see OuterProduct<Indices<...>, Indices<...>>): the left-hand side as a column times the right-hand side as a row, e.g. v^i w_j. More...
struct  wuzp::DotProduct< Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ >, Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > >
struct  wuzp::CrossProduct< Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ >, Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > >
struct  wuzp::Division< Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ >, Tensor< IndicesRhsT_, QuantitiesRhsT_, CoordinateSystemRhsT_, AbsoluteRhsT_ > >
 The quotient of a tensor and a tensor of rank 0 (see Division<Indices<...>, Indices<...>>). More...
struct  wuzp::Division< Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ >, Quantities< ValuesRhsT_, UnitsRhsT_ > >
 The quotient of a tensor and a quantity, a 1x1 matrix of quantities (see Product<Tensor<...>, Quantities<...>>). More...
struct  wuzp::Transpose< Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > >
struct  wuzp::Block< Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ >, BlockRowIdV_, BlockColIdV_, BlockRowsV_, BlockColsV_ >
struct  wuzp::Inverse< Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > >
 The matrix inverse of a tensor of rank 0 or 2 (see Tensor::inverse()). More...
struct  wuzp::Determinant< Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > >
 The determinant of a tensor of rank 0 or of a mixed tensor of rank 2, a quantity (see Tensor::determinant()). More...
struct  wuzp::GetCoordinateSystem< Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > >
struct  wuzp::IsAbsolute< Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > >
struct  wuzp::MakeRelative< Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > >
 The vector from the origin of the coordinate system to a point, p - o, which has the components of the point. More...
struct  wuzp::MakeAbsolute< Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > >
 The point at a vector from the origin of the coordinate system, o + v, which has the components of the vector. More...
struct  wuzp::CastCoordinateSystem< Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ >, NewCoordinateSystemT_ >
struct  wuzp::Evaluate< Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > >

Namespaces

namespace  wuzp

Typedefs

template<typename QuantityVectorT_, typename CoordinateSystemT_>
using wuzp::Vector = Tensor<Indices<Up>, QuantityVectorT_, CoordinateSystemT_, Relative>
template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename UnitT_, typename CoordinateSystemT_>
using wuzp::HomogeneousVector = Vector<Quantities<ValuesT_<ValueT_, DimensionV_, 1>, TypeMatrix<DimensionV_, 1, UnitT_>>, CoordinateSystemT_>
template<typename QuantityVectorT_, typename CoordinateSystemT_>
using wuzp::Covector = Tensor<Indices<Down>, QuantityVectorT_, CoordinateSystemT_, Relative>
template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename UnitT_, typename CoordinateSystemT_>
using wuzp::HomogeneousCovector = Covector<Quantities<ValuesT_<ValueT_, 1, DimensionV_>, TypeMatrix<1, DimensionV_, UnitT_>>, CoordinateSystemT_>
template<typename QuantityVectorT_, typename CoordinateSystemT_>
using wuzp::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 wuzp::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 wuzp::DirectionVector
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::DirectionVector2 = DirectionVector<2, ValuesT_, ValueT_, CoordinateSystemT_>
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::DirectionVector3 = DirectionVector<3, ValuesT_, ValueT_, CoordinateSystemT_>
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
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()).
template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::PositionPoint
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::PositionPoint2 = PositionPoint<2, ValuesT_, ValueT_, CoordinateSystemT_>
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::PositionPoint3 = PositionPoint<3, ValuesT_, ValueT_, CoordinateSystemT_>
template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::PositionVector
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::PositionVector2 = PositionVector<2, ValuesT_, ValueT_, CoordinateSystemT_>
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::PositionVector3 = PositionVector<3, ValuesT_, ValueT_, CoordinateSystemT_>
template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::VelocityVector
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::VelocityVector2 = VelocityVector<2, ValuesT_, ValueT_, CoordinateSystemT_>
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::VelocityVector3 = VelocityVector<3, ValuesT_, ValueT_, CoordinateSystemT_>
template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::AccelerationVector
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::AccelerationVector2 = AccelerationVector<2, ValuesT_, ValueT_, CoordinateSystemT_>
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::AccelerationVector3 = AccelerationVector<3, ValuesT_, ValueT_, CoordinateSystemT_>
template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::AngularVelocityVector
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::AngularVelocityVector2 = AngularVelocityVector<2, ValuesT_, ValueT_, CoordinateSystemT_>
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::AngularVelocityVector3 = AngularVelocityVector<3, ValuesT_, ValueT_, CoordinateSystemT_>
template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::AngularAccelerationVector
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::AngularAccelerationVector2 = AngularAccelerationVector<2, ValuesT_, ValueT_, CoordinateSystemT_>
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::AngularAccelerationVector3 = AngularAccelerationVector<3, ValuesT_, ValueT_, CoordinateSystemT_>
template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::ForceVector
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::ForceVector2 = ForceVector<2, ValuesT_, ValueT_, CoordinateSystemT_>
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::ForceVector3 = ForceVector<3, ValuesT_, ValueT_, CoordinateSystemT_>
template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
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 .
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::ForceCovector2 = ForceCovector<2, ValuesT_, ValueT_, CoordinateSystemT_>
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::ForceCovector3 = ForceCovector<3, ValuesT_, ValueT_, CoordinateSystemT_>
template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::TorqueVector
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::TorqueVector2 = TorqueVector<2, ValuesT_, ValueT_, CoordinateSystemT_>
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::TorqueVector3 = TorqueVector<3, ValuesT_, ValueT_, CoordinateSystemT_>
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
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>.
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::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 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).
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::SpacetimePoint2 = SpacetimePoint<2, ValuesT_, ValueT_, CoordinateSystemT_>
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::SpacetimePoint3 = SpacetimePoint<3, ValuesT_, ValueT_, CoordinateSystemT_>
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::SpacetimePoint4 = SpacetimePoint<4, ValuesT_, ValueT_, CoordinateSystemT_>
template<int DimensionV_, template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
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).
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::SpacetimeVector2 = SpacetimeVector<2, ValuesT_, ValueT_, CoordinateSystemT_>
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::SpacetimeVector3 = SpacetimeVector<3, ValuesT_, ValueT_, CoordinateSystemT_>
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename CoordinateSystemT_>
using wuzp::SpacetimeVector4 = SpacetimeVector<4, ValuesT_, ValueT_, CoordinateSystemT_>

Functions

template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_>
auto wuzp::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 wuzp::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 wuzp::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 wuzp::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 wuzp::negation (const Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > &rhs)
template<typename IndicesT_, typename QuantitiesT_, typename CoordinateSystemT_, typename AbsoluteT_>
auto wuzp::operator- (const Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > &rhs)
template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, ArithmeticValue ValueRhsT_>
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).
template<ArithmeticValue ValueLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_>
auto wuzp::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 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.
template<typename MatrixSizeLhsT_, typename ValueLhsT_, typename ImplementationLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_>
auto wuzp::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 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<...>>).
template<typename ValuesLhsT_, typename UnitsLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_>
auto wuzp::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 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<...>>).
template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, ArithmeticValue ValueRhsT_>
auto wuzp::operator* (const Tensor< IndicesLhsT_, QuantitiesLhsT_, CoordinateSystemLhsT_, AbsoluteLhsT_ > &lhs, const ValueRhsT_ rhs)
template<ArithmeticValue ValueLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_>
auto wuzp::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 wuzp::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 wuzp::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 wuzp::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 wuzp::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 wuzp::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 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.
template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_>
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<...>>).
template<typename IndicesT_, typename QuantitiesT_, typename CoordinateSystemT_, typename AbsoluteT_>
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.
template<typename IndicesT_, typename QuantitiesT_, typename CoordinateSystemT_, typename AbsoluteT_>
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.
template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_>
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.
template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename IndicesRhsT_, typename QuantitiesRhsT_, typename CoordinateSystemRhsT_, typename AbsoluteRhsT_>
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()).
template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, ArithmeticValue ValueRhsT_>
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()).
template<typename IndicesLhsT_, typename QuantitiesLhsT_, typename CoordinateSystemLhsT_, typename AbsoluteLhsT_, typename MatrixSizeRhsT_, typename ValueRhsT_, typename ImplementationRhsT_>
auto wuzp::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 wuzp::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 wuzp::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 wuzp::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 wuzp::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 wuzp::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 wuzp::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 wuzp::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 wuzp::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 & wuzp::operator<< (std::ostream &lhs, const Tensor< IndicesT_, QuantitiesT_, CoordinateSystemT_, AbsoluteT_ > &rhs)