|
DAS
3.0
Das Analysis System
|
Go to the documentation of this file.
20 operator double ()
const {
return v; }
24 inline bool operator== (
const Weight&
w,
const int v) {
return w.v == v; }
25 inline bool operator== (
const Weight&
w,
const float v) {
return w.v == v; }
26 inline bool operator== (
const Weight&
w,
const double v) {
return w.v == v; }
27 inline bool operator== (
const Weight& l,
const Weight& r) {
return l.v == r.v && l.i == r.i; }
28 inline double operator* (
const Weight&
w,
const int v) {
return w.v * v; }
29 inline double operator* (
const int v,
const Weight&
w) {
return w.v * v; }
30 inline double operator* (
const Weight&
w,
const float v) {
return w.v * v; }
31 inline double operator* (
const float v,
const Weight&
w) {
return w.v * v; }
32 inline double operator* (
const Weight&
w,
const double v) {
return w.v * v; }
33 inline double operator* (
const double v,
const Weight&
w) {
return w.v * v; }
34 inline Weight&
operator*= (Weight&
w,
const int v) {
w.v *= v;
return w; }
35 inline Weight&
operator/= (Weight&
w,
const int v) {
w.v /= v;
return w; }
36 inline Weight&
operator*= (Weight&
w,
const float v) {
w.v *= v;
return w; }
37 inline Weight&
operator/= (Weight&
w,
const float v) {
w.v /= v;
return w; }
38 inline Weight&
operator*= (Weight&
w,
const double v) {
w.v *= v;
return w; }
39 inline Weight&
operator/= (Weight&
w,
const double v) {
w.v /= v;
return w; }
40 inline double operator* (
const Weight& w1,
const Weight& w2) {
return w1.v * w2.v; }
42 using Weights = std::vector<Weight>;
52 if (w1.size() != w2.size())
return false;
53 for (std::size_t i = 0; i < w1.size(); ++i)
54 if (w1.at(i) != w2.at(i))
return false;
int i
correlation index
Definition: Weight.h:19
Weight & operator/=(Weight &w, const int v)
Definition: Weight.h:35
Weight & operator=(const double v)
Definition: Weight.h:21
static const float w
Definition: common.h:51
std::vector< Weight > Weights
Definition: Weight.h:42
double operator*(const Weight &w, const int v)
Definition: Weight.h:28
double v
value
Definition: Weight.h:18
bool operator==(const GenericObject &l, const GenericObject &r)
Definition: GenericObject.h:78
Everything what concerns physics analysis directly.
Definition: darwin.h:23
Weight & operator*=(Weight &w, const int v)
Definition: Weight.h:34