Math related classes. More...

Collaboration diagram for Math:

Classes

class  boca::GradedContainer< Container_, Value_ >
 Container with associated scalar. More...
 
class  boca::Line< Vector_, Value_ >
 Line between two points. More...
 
class  boca::LorentzMatrix< Value_ >
 Lorentz matrix. More...
 
class  boca::LorentzVector< Value_ >
 Lorentz vector. More...
 
class  boca::LorentzVector< Momentum >
 Momentum Lorentz vector. More...
 
class  boca::LorentzVector< Length >
 Length Lorentz vector. More...
 
class  boca::LorentzVectorBase< Value_ >
 Lorentz Vector. More...
 
class  boca::Matrix2< Value_ >
 Two dimensional matrix. More...
 
class  boca::Matrix3< Value_ >
 Three dimensional matrix. More...
 
class  boca::Range< Value_ >
 Range between two values. More...
 
class  boca::Rectangle< Value >
 Rectangle of two Ranges. More...
 
class  boca::Vector2< Value_ >
 Two dimensional Vector. More...
 
class  boca::Vector3< Value_ >
 Three dimensionial vector. More...
 

Typedefs

template<typename Value_ >
using boca::GradedLorentzVector = GradedVector< LorentzVector, Value_ >
 Graded LorentzVector. More...
 
template<typename Value_ >
using boca::GradedMatrix2 = GradedMatrix< Matrix2, Value_ >
 Graded two dimensional matrix. More...
 
template<typename Value_ >
using boca::GradedMatrix3 = GradedMatrix< Matrix3, Value_ >
 Graded three dimensional matrix. More...
 
template<typename Value_ >
using boca::GradedVector2 = GradedVector< Vector2, Value_ >
 Two vector with associated number. More...
 
template<typename Value_ >
using boca::GradedVector3 = GradedVector< Vector3, Value_ >
 Graded three dimensional vector. More...
 
template<typename Value_ >
using boca::Line2 = Line< Vector2, Value_ >
 Line between two points in two dimensional space. More...
 
template<typename Value_ >
using boca::Line3 = Line< Vector3, Value_ >
 Line between two points in three dimensional space. More...
 
template<typename Value_ >
using boca::LorentzLine = Line< LorentzVector, Value_ >
 Line between two points in Lorentz space. More...
 

Enumerations

enum  boca::LorentzDim {
  boca::LorentzDim::x, boca::LorentzDim::y, boca::LorentzDim::z, boca::LorentzDim::t,
  boca::LorentzDim::last
}
 Lorentz Dimensions. More...
 
enum  boca::Matrix {
  boca::Matrix::none, boca::Matrix::diagonal, boca::Matrix::symmetric, boca::Matrix::antisymmetric,
  boca::Matrix::row, boca::Matrix::column, boca::Matrix::uniform
}
 Matrix types. More...
 
enum  boca::Dim2 { boca::Dim2::x, boca::Dim2::y, boca::Dim2::last }
 Two dimensionss. More...
 
enum  boca::Dim3 { boca::Dim3::x, boca::Dim3::y, boca::Dim3::z, boca::Dim3::last }
 Three dimensions. More...
 
template<typename Value >
auto boca::sqr (Value const &value)
 square of value More...
 
template<typename Value >
auto boca::cube (Value const &value)
 cube of value More...
 
template<typename Value_ >
int boca::sgn (Value_ value)
 sign of value More...
 
template<typename Value_ >
int boca::LowerBound (std::vector< Value_ > const &vector, Value_ value)
 sign of value More...
 
template<typename Value_ >
int boca::UpperBound (std::vector< Value_ > const &vector, Value_ value)
 Upper bound of vector. More...
 
double boca::RoundError (double value)
 round error two two digits More...
 
double boca::RoundToDigits (double value, int digits=3)
 Round value to digits. More...
 
double boca::RoundToError (double value, double error)
 Round value to precision of error. More...
 
double boca::FloorToDigits (double value, int digits=2)
 Floor value to digits. More...
 
double boca::CeilToDigits (double value, int digits=2)
 Ceiling to digits. More...
 

Detailed Description

Math related classes.

Typedef Documentation

template<typename Value_ >
using boca::GradedLorentzVector = typedef GradedVector<LorentzVector, Value_>

Graded LorentzVector.

template<typename Value_ >
using boca::GradedMatrix2 = typedef GradedMatrix<Matrix2, Value_>

Graded two dimensional matrix.

template<typename Value_ >
using boca::GradedMatrix3 = typedef GradedMatrix<Matrix3, Value_>

Graded three dimensional matrix.

template<typename Value_ >
using boca::GradedVector2 = typedef GradedVector<Vector2, Value_>

Two vector with associated number.

template<typename Value_ >
using boca::GradedVector3 = typedef GradedVector<Vector3, Value_>

Graded three dimensional vector.

template<typename Value_ >
using boca::Line2 = typedef Line<Vector2, Value_>

Line between two points in two dimensional space.

template<typename Value_ >
using boca::Line3 = typedef Line<Vector3, Value_>

Line between two points in three dimensional space.

template<typename Value_ >
using boca::LorentzLine = typedef Line<LorentzVector, Value_>

Line between two points in Lorentz space.

Enumeration Type Documentation

enum boca::Dim2
strong

Two dimensionss.

Enumerator
last 
enum boca::Dim3
strong

Three dimensions.

Enumerator
last 
enum boca::LorentzDim
strong

Lorentz Dimensions.

Enumerator
last 
enum boca::Matrix
strong

Matrix types.

Enumerator
none 
diagonal 
symmetric 
antisymmetric 
row 
column 
uniform 

Function Documentation

double boca::CeilToDigits ( double  value,
int  digits = 2 
)

Ceiling to digits.

template<typename Value >
auto boca::cube ( Value const &  value)

cube of value

double boca::FloorToDigits ( double  value,
int  digits = 2 
)

Floor value to digits.

template<typename Value_ >
int boca::LowerBound ( std::vector< Value_ > const &  vector,
Value_  value 
)

sign of value

double boca::RoundError ( double  value)

round error two two digits

double boca::RoundToDigits ( double  value,
int  digits = 3 
)

Round value to digits.

double boca::RoundToError ( double  value,
double  error 
)

Round value to precision of error.

template<typename Value_ >
int boca::sgn ( Value_  value)

sign of value

template<typename Value >
auto boca::sqr ( Value const &  value)

square of value

template<typename Value_ >
int boca::UpperBound ( std::vector< Value_ > const &  vector,
Value_  value 
)

Upper bound of vector.