Version: SMASH-3.1
fourvector.h File Reference
#include <array>
#include <cmath>
#include <iosfwd>
#include <stdexcept>
#include "threevector.h"

Go to the source code of this file.

Classes

class  smash::FourVector
 The FourVector class holds relevant values in Minkowski spacetime with (+, −, −, −) metric signature. More...
 

Namespaces

 smash
 

Functions

FourVector smash::operator+ (FourVector a, const FourVector &b)
 add two FourVectors More...
 
FourVector smash::operator- (FourVector a, const FourVector &b)
 subtract two FourVectors More...
 
FourVector smash::operator* (FourVector a, double b)
 multiply a vector with a scalar More...
 
FourVector smash::operator* (double b, FourVector a)
 multiply a vector with a scalar More...
 
FourVector smash::operator/ (FourVector a, const double &b)
 divide a vector by a scalar More...
 
std::ostream & smash::operator<< (std::ostream &os, const FourVector &vec)
 Writes the four components of the vector to the output stream. More...