PandaRoot
vec_arithmetic.h File Reference

Go to the source code of this file.

Macros

#define vec_arithmetic(V, S)
 

Macro Definition Documentation

◆ vec_arithmetic

#define vec_arithmetic (   V,
 
)
Value:
friend V operator-(const V &a) { return V(0) - a; } \
friend V operator+(const V &a) { return a; } \
friend V operator+(const V &a, const S &b) { return a + V(b); } \
friend V operator-(const V &a, const S &b) { return a - V(b); } \
friend V operator*(const V &a, const S &b) { return a * V(b); } \
friend V operator/(const V &a, const S &b) { return a / V(b); } \
friend V operator+(const S &a, const V &b) { return V(a) + b; } \
friend V operator-(const S &a, const V &b) { return V(a) - b; } \
friend V operator*(const S &a, const V &b) { return V(a) * b; } \
friend V operator/(const S &a, const V &b) { return V(a) / b; } \
friend void operator+=(V &a, const V &b) { a = a + b; } \
friend void operator-=(V &a, const V &b) { a = a - b; } \
friend void operator*=(V &a, const V &b) { a = a * b; } \
friend void operator/=(V &a, const V &b) { a = a / b; } \
friend void operator+=(V &a, const S &b) { a = a + b; } \
friend void operator-=(V &a, const S &b) { a = a - b; } \
friend void operator*=(V &a, const S &b) { a = a * b; } \
friend void operator/=(V &a, const S &b) { a = a / b; }
RhoLorentzVectorErr operator+(const RhoLorentzVectorErr &, const RhoLorentzVectorErr &)
friend void operator+=(F32vec1 &a, const F32vec1 &b)
friend void operator-=(F32vec1 &a, const F32vec1 &b)
friend void operator*=(F32vec1 &a, const F32vec1 &b)
friend F32vec4 operator*(const F32vec4 &a, const F32vec4 &b)
Definition: P4_F32vec4.h:20
friend void operator/=(F32vec1 &a, const F32vec1 &b)
friend F32vec4 operator/(const F32vec4 &a, const F32vec4 &b)
Definition: P4_F32vec4.h:21
RhoLorentzVectorErr operator-(const RhoLorentzVectorErr &, const RhoLorentzVectorErr &)

Definition at line 6 of file vec_arithmetic.h.