forked from npshub/mantid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MDBin.tcc
25 lines (22 loc) · 939 Bytes
/
MDBin.tcc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source,
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 +
#include "MantidDataObjects/MDBin.h"
#include "MantidKernel/System.h"
namespace Mantid {
namespace DataObjects {
//----------------------------------------------------------------------------------------------
/** Constructor. Clears the signal and error.
* Initializes the min and max of all dimensions to include all numbers.
*/
TMDE(MDBin)::MDBin() : m_signal(0), m_errorSquared(0) {
for (size_t d = 0; d < nd; ++d)
m_min[d] = -std::numeric_limits<coord_t>::max();
for (size_t d = 0; d < nd; ++d)
m_max[d] = +std::numeric_limits<coord_t>::max();
}
} // namespace DataObjects
} // namespace Mantid