wuzp
Wrong Unit? Zero Points! Compile-time checks for units, coordinate systems and points vs. vectors.
Loading...
Searching...
No Matches
wuzp::ActiveLinearTransformation< ValuesT_, ValueT_, CoordinateSystemT_, DimensionFromV_, DimensionToV_, UnitsT_ > Class Template Reference

#include <wuzp/trafo/ActiveLinearTransformation.hpp>

Inherits wuzp::ActiveTransformation< ActiveLinearTransformation< ValuesT_, ValueT_, CoordinateSystemT_, DimensionFromV_, DimensionToV_, UnitsT_... > >.

Public Types

using ValueT = ValueT_
using ValuesT = ValuesT_<ValueT_, DimensionToV_, DimensionFromV_>
using UnitsT = TypeMatrix<DimensionToV_, DimensionFromV_, UnitsT_...>
using QuantitiesT = Quantities<ValuesT, UnitsT>
using CoordinateSystemT = CoordinateSystemT_
using TensorT = Tensor<Indices<Up, Down>, QuantitiesT, CoordinateSystemT, Relative>

Public Member Functions

template<typename... Args>
requires (!CopiesOrMoves<ActiveLinearTransformation, Args...>)
 ActiveLinearTransformation (Args &&... args)
const QuantitiesT & getQuantities () const
 The matrix A, which transforms a vector v into A v.
TensorT getTensor () const
 The matrix as a linear map, a tensor with an upper and a lower index; only for a square matrix.
auto inverse () const
 The inverse transformation, whose matrix is the matrix inverse A^-1 (see Quantities::inverse()): A must be square, and its units must describe a linear map.
template<template< typename, int, int > typename ValuesOtherT_, typename ValueOtherT_, typename CoordinateSystemOtherT_, int DimensionFromOtherV_, int DimensionToOtherV_, typename... UnitsOtherT_>
bool isApprox (const ActiveLinearTransformation< ValuesOtherT_, ValueOtherT_, CoordinateSystemOtherT_, DimensionFromOtherV_, DimensionToOtherV_, UnitsOtherT_... > &other, const ValueT precision=Precision< ValueT >::value()) const
 Whether both linear transformations, which must be expressed in the same coordinate system, are approximately equal: their matrices are compared like the components of tensors (see Tensor::isApprox()), also those that are not square.
Public Member Functions inherited from wuzp::ActiveTransformation< ActiveLinearTransformation< ValuesT_, ValueT_, CoordinateSystemT_, DimensionFromV_, DimensionToV_, UnitsT_... > >
auto transform (ObjectT_ &&object) const
 The transformed object. A temporary is passed on as one, like with PassiveTransformation::transform().

Detailed Description

template<template< typename, int, int > typename ValuesT_, typename ValueT_, AnyCoordinateSystem CoordinateSystemT_, int DimensionFromV_, int DimensionToV_, typename... UnitsT_>
requires AnyValueMatrix<ValuesT_>
class wuzp::ActiveLinearTransformation< ValuesT_, ValueT_, CoordinateSystemT_, DimensionFromV_, DimensionToV_, UnitsT_ >

Definition at line 52 of file ActiveLinearTransformation.hpp.

Member Typedef Documentation

◆ CoordinateSystemT

template<template< typename, int, int > typename ValuesT_, typename ValueT_, AnyCoordinateSystem CoordinateSystemT_, int DimensionFromV_, int DimensionToV_, typename... UnitsT_>
using wuzp::ActiveLinearTransformation< ValuesT_, ValueT_, CoordinateSystemT_, DimensionFromV_, DimensionToV_, UnitsT_ >::CoordinateSystemT = CoordinateSystemT_

Definition at line 60 of file ActiveLinearTransformation.hpp.

◆ QuantitiesT

template<template< typename, int, int > typename ValuesT_, typename ValueT_, AnyCoordinateSystem CoordinateSystemT_, int DimensionFromV_, int DimensionToV_, typename... UnitsT_>
using wuzp::ActiveLinearTransformation< ValuesT_, ValueT_, CoordinateSystemT_, DimensionFromV_, DimensionToV_, UnitsT_ >::QuantitiesT = Quantities<ValuesT, UnitsT>

Definition at line 59 of file ActiveLinearTransformation.hpp.

◆ TensorT

template<template< typename, int, int > typename ValuesT_, typename ValueT_, AnyCoordinateSystem CoordinateSystemT_, int DimensionFromV_, int DimensionToV_, typename... UnitsT_>
using wuzp::ActiveLinearTransformation< ValuesT_, ValueT_, CoordinateSystemT_, DimensionFromV_, DimensionToV_, UnitsT_ >::TensorT = Tensor<Indices<Up, Down>, QuantitiesT, CoordinateSystemT, Relative>

Definition at line 61 of file ActiveLinearTransformation.hpp.

◆ UnitsT

template<template< typename, int, int > typename ValuesT_, typename ValueT_, AnyCoordinateSystem CoordinateSystemT_, int DimensionFromV_, int DimensionToV_, typename... UnitsT_>
using wuzp::ActiveLinearTransformation< ValuesT_, ValueT_, CoordinateSystemT_, DimensionFromV_, DimensionToV_, UnitsT_ >::UnitsT = TypeMatrix<DimensionToV_, DimensionFromV_, UnitsT_...>

Definition at line 58 of file ActiveLinearTransformation.hpp.

◆ ValuesT

template<template< typename, int, int > typename ValuesT_, typename ValueT_, AnyCoordinateSystem CoordinateSystemT_, int DimensionFromV_, int DimensionToV_, typename... UnitsT_>
using wuzp::ActiveLinearTransformation< ValuesT_, ValueT_, CoordinateSystemT_, DimensionFromV_, DimensionToV_, UnitsT_ >::ValuesT = ValuesT_<ValueT_, DimensionToV_, DimensionFromV_>

Definition at line 57 of file ActiveLinearTransformation.hpp.

◆ ValueT

template<template< typename, int, int > typename ValuesT_, typename ValueT_, AnyCoordinateSystem CoordinateSystemT_, int DimensionFromV_, int DimensionToV_, typename... UnitsT_>
using wuzp::ActiveLinearTransformation< ValuesT_, ValueT_, CoordinateSystemT_, DimensionFromV_, DimensionToV_, UnitsT_ >::ValueT = ValueT_

Definition at line 56 of file ActiveLinearTransformation.hpp.

Constructor & Destructor Documentation

◆ ActiveLinearTransformation()

template<template< typename, int, int > typename ValuesT_, typename ValueT_, AnyCoordinateSystem CoordinateSystemT_, int DimensionFromV_, int DimensionToV_, typename... UnitsT_>
template<typename... Args>
requires (!CopiesOrMoves<ActiveLinearTransformation, Args...>)
wuzp::ActiveLinearTransformation< ValuesT_, ValueT_, CoordinateSystemT_, DimensionFromV_, DimensionToV_, UnitsT_ >::ActiveLinearTransformation ( Args &&... args)
inlineexplicit

Definition at line 66 of file ActiveLinearTransformation.hpp.

Member Function Documentation

◆ getQuantities()

template<template< typename, int, int > typename ValuesT_, typename ValueT_, AnyCoordinateSystem CoordinateSystemT_, int DimensionFromV_, int DimensionToV_, typename... UnitsT_>
const QuantitiesT & wuzp::ActiveLinearTransformation< ValuesT_, ValueT_, CoordinateSystemT_, DimensionFromV_, DimensionToV_, UnitsT_ >::getQuantities ( ) const
inline

The matrix A, which transforms a vector v into A v.

Definition at line 69 of file ActiveLinearTransformation.hpp.

◆ getTensor()

template<template< typename, int, int > typename ValuesT_, typename ValueT_, AnyCoordinateSystem CoordinateSystemT_, int DimensionFromV_, int DimensionToV_, typename... UnitsT_>
TensorT wuzp::ActiveLinearTransformation< ValuesT_, ValueT_, CoordinateSystemT_, DimensionFromV_, DimensionToV_, UnitsT_ >::getTensor ( ) const
inline

The matrix as a linear map, a tensor with an upper and a lower index; only for a square matrix.

Definition at line 71 of file ActiveLinearTransformation.hpp.

◆ inverse()

template<template< typename, int, int > typename ValuesT_, typename ValueT_, AnyCoordinateSystem CoordinateSystemT_, int DimensionFromV_, int DimensionToV_, typename... UnitsT_>
auto wuzp::ActiveLinearTransformation< ValuesT_, ValueT_, CoordinateSystemT_, DimensionFromV_, DimensionToV_, UnitsT_ >::inverse ( ) const
inline

The inverse transformation, whose matrix is the matrix inverse A^-1 (see Quantities::inverse()): A must be square, and its units must describe a linear map.

This needs a value matrix backend with matrix inverses (InvertibleValueMatrixBackend). The inverse of a rotation is its transpose (see ActiveSpatialRotation::inverse()).

Definition at line 82 of file ActiveLinearTransformation.hpp.

◆ isApprox()

template<template< typename, int, int > typename ValuesT_, typename ValueT_, AnyCoordinateSystem CoordinateSystemT_, int DimensionFromV_, int DimensionToV_, typename... UnitsT_>
template<template< typename, int, int > typename ValuesOtherT_, typename ValueOtherT_, typename CoordinateSystemOtherT_, int DimensionFromOtherV_, int DimensionToOtherV_, typename... UnitsOtherT_>
bool wuzp::ActiveLinearTransformation< ValuesT_, ValueT_, CoordinateSystemT_, DimensionFromV_, DimensionToV_, UnitsT_ >::isApprox ( const ActiveLinearTransformation< ValuesOtherT_, ValueOtherT_, CoordinateSystemOtherT_, DimensionFromOtherV_, DimensionToOtherV_, UnitsOtherT_... > & other,
const ValueT precision = Precision<ValueT>::value() ) const
inline

Whether both linear transformations, which must be expressed in the same coordinate system, are approximately equal: their matrices are compared like the components of tensors (see Tensor::isApprox()), also those that are not square.

Definition at line 88 of file ActiveLinearTransformation.hpp.


The documentation for this class was generated from the following file: