wuzp
Wrong Unit? Zero Points! Compile-time checks for units, coordinate systems and points vs. vectors.
Loading...
Searching...
No Matches
LorentzTransformation.hpp File Reference
#include <ostream>
#include <stdexcept>
#include <type_traits>
#include <utility>
#include "wuzp/core/Indices.hpp"
#include "wuzp/core/Quantities.hpp"
#include "wuzp/core/Quantity.hpp"
#include "wuzp/core/Tensor.hpp"
#include "wuzp/core/concepts.hpp"
#include "wuzp/core/helpers.hpp"
#include "wuzp/core/traits.hpp"
#include "wuzp/trafo/PassiveLinearTransformation.hpp"
#include "wuzp/trafo/PassiveTransformation.hpp"
#include "wuzp/trafo/internal/validity.hpp"
#include "wuzp/trafo/traits.hpp"

Go to the source code of this file.

Classes

class  wuzp::LorentzTransformation< ValuesT_, ValueT_, FromT_, ToT_, DimensionV_ >
 A Lorentz transformation Lambda from the inertial frame From to the inertial frame To, which must be coordinate systems with the Minkowski metric (MinkowskiCoordinateSystem, see Minkowski and SpacetimeVector): the dimensionless passive linear transformation of spacetime vectors, with the time component first and in length units (x^0 = c t), that preserves the Minkowski metric eta = diag(1, -1, ..., -1): Lambda^T eta Lambda = eta (Carroll, Lecture Notes on General Relativity, https://arxiv.org/abs/gr-qc/9712019, eq. 1.14, whose signature (-, +, +, +) has the metric -eta, which gives the same condition), e.g. a boost (see createBoostMatrix()), a spatial rotation, or their compositions. More...
struct  wuzp::TransformationTraits< LorentzTransformation< ValuesT_, ValueT_, FromT_, ToT_, DimensionV_ >, Object >
struct  wuzp::CompositionTraits< LorentzTransformation< ValuesLhsT_, ValueLhsT_, FromLhsT_, ToLhsT_, DimensionLhsV_ >, LorentzTransformation< ValuesRhsT_, ValueRhsT_, FromRhsT_, ToRhsT_, DimensionRhsV_ > >
struct  wuzp::CompositionTraits< LorentzTransformation< ValuesLhsT_, ValueLhsT_, FromLhsT_, ToLhsT_, DimensionLhsV_ >, PassiveLinearTransformation< ValuesRhsT_, ValueRhsT_, FromRhsT_, ToRhsT_, DimensionRhsV_, UnitsRhsT_... > >
struct  wuzp::CompositionTraits< PassiveLinearTransformation< ValuesLhsT_, ValueLhsT_, FromLhsT_, ToLhsT_, DimensionLhsV_, UnitsLhsT_... >, LorentzTransformation< ValuesRhsT_, ValueRhsT_, FromRhsT_, ToRhsT_, DimensionRhsV_ > >

Namespaces

namespace  wuzp

Typedefs

template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename FromT_, typename ToT_>
using wuzp::LorentzTransformation2 = LorentzTransformation<ValuesT_, ValueT_, FromT_, ToT_, 2>
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename FromT_, typename ToT_>
using wuzp::LorentzTransformation3 = LorentzTransformation<ValuesT_, ValueT_, FromT_, ToT_, 3>
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename FromT_, typename ToT_>
using wuzp::LorentzTransformation4 = LorentzTransformation<ValuesT_, ValueT_, FromT_, ToT_, 4>

Functions

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 wuzp::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 wuzp::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 & wuzp::operator<< (std::ostream &lhs, const LorentzTransformation< ValuesT_, ValueT_, FromT_, ToT_, DimensionV_ > &rhs)
template<template< typename, int, int > typename ValuesT_, typename ValueT_>
auto wuzp::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 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).
template<template< typename, int, int > typename ValuesT_, typename ValueT_, typename FromT_, typename ToT_, int DimensionV_>
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 .