YAP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
FourVector< T > Class Template Reference

Four-Vector handling. More...

#include <FourVector.h>

Inheritance diagram for FourVector< T >:
Vector< T, 4 > VectorExpression< T, N, Vector< T, N > >

Public Member Functions

constexpr FourVector (const std::array< T, 4 > &l) noexcept
 intializer_list constructor
 
constexpr FourVector (const Vector< T, 4 > &V)
 Vector<T, 4> constructor.
 
constexpr FourVector (const T &E, const ThreeVector< T > &P) noexcept
 
constexpr T operator* (const Vector< T, 4 > &B) const override
 
- Public Member Functions inherited from Vector< T, 4 >
constexpr Vector (const std::array< T, N > &v) noexcept
 Constructor.
 
 Vector (const VectorExpression< T, N, E > &V)
 expression constructor
 
 Vector (T element=0)
 Default constructor.
 
T & operator[] (size_t i)
 element access operator
 
const T operator[] (size_t i) const
 element access operator
 
T & front ()
 access to front
 
const T & front () const
 access to front
 
VectorIterator< T, N > begin ()
 access to begin
 
VectorIterator< const T, N > begin () const
 access to begin
 
VectorIterator< T, N > end ()
 access to end
 
VectorIterator< const T, N > end () const
 access to end
 
virtual auto operator* (const Vector< T, N > &B) const -> decltype(T(0)*T(0))
 inner (dot) product of Vector's
 
- Public Member Functions inherited from VectorExpression< T, N, Vector< T, N > >
constexpr T operator[] (size_t i) const
 access operator
 
constexpr size_t size () const
 
 operator Vector< T, N > & ()
 cast to E
 
constexpr operator const Vector< T, N > & () const
 cast to E
 

Detailed Description

template<typename T>
class yap::FourVector< T >

Four-Vector handling.

Author
Johannes Rauch, Daniel Greenwald

Constructor & Destructor Documentation

constexpr FourVector ( const T &  E,
const ThreeVector< T > &  P 
)
inlinenoexcept

energy + ThreeVector constructor

Parameters
E0th component
P#ThreeVector component

Member Function Documentation

constexpr T operator* ( const Vector< T, 4 > &  B) const
inlineoverride
Returns
inner (dot) product for 4-vectors

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