31#define INLINE_VISIBILITY __forceinline
33#define INLINE_VISIBILITY __attribute__((__always_inline__))
41 using fmtflags =
typename __stream_type::fmtflags;
96 : __p_(
param_type(__mean, __stddev)), _V_hot_(false) {}
118 result_type min()
const {
return -std::numeric_limits<result_type>::infinity(); }
126 return !(__x == __y);
129 template <
class _CharT,
class _Traits,
class _RT>
130 friend std::basic_ostream<_CharT, _Traits> &
operator<<(std::basic_ostream<_CharT, _Traits> &__os,
133 template <
class _CharT,
class _Traits,
class _RT>
134 friend std::basic_istream<_CharT, _Traits> &
operator>>(std::basic_istream<_CharT, _Traits> &__is,
139template <class _RealType>
140template <class _URNG>
147 std::uniform_real_distribution<result_type> _Uni(-1, 1);
154 __s = __u * __u + __v * __v;
155 }
while (__s > 1 || __s == 0);
156 result_type _Fp = std::sqrt(-2 * std::log(__s) / __s);
161 return _Up * __p.stddev() + __p.mean();
165template <class _CharT, class _Traits, class _RT>
166std::basic_ostream<_CharT, _Traits> &operator<<(
std::basic_ostream<_CharT, _Traits> &__os,
169 __os.flags(std::ios_base::dec | std::ios_base::left | std::ios_base::fixed | std::ios_base::scientific);
170 _CharT __sp = __os.widen(
' ');
172 __os << __x.mean() << __sp << __x.stddev() << __sp << __x._V_hot_;
174 __os << __sp << __x._V_;
178template <
class _CharT,
class _Traits,
class _RT>
179std::basic_istream<_CharT, _Traits> &
operator>>(std::basic_istream<_CharT, _Traits> &__is,
185 __is.flags(std::ios_base::dec | std::ios_base::skipws);
190 __is >> __mean >> __stddev >> _V_hot;
202#undef INLINE_VISIBILITY
std::ostream & operator<<(std::ostream &out, const MantidQt::MantidWidgets::IndexType< i > &index)
#define DLLExport
Definitions of the DLLImport compiler directives for MSVC.
#define GNU_DIAG_OFF(x)
This is a collection of macros for turning compiler warnings off in a controlled manner.
typename __stream_type::fmtflags fmtflags
std::basic_ios< _CharT, _Traits > __stream_type
__save_flags(const __save_flags &)
INLINE_VISIBILITY ~__save_flags()
__save_flags & operator=(const __save_flags &)
__stream_type & __stream_
INLINE_VISIBILITY __save_flags(__stream_type &__stream)
INLINE_VISIBILITY result_type stddev() const
friend INLINE_VISIBILITY bool operator!=(const param_type &__x, const param_type &__y)
INLINE_VISIBILITY param_type(result_type __mean=0, result_type __stddev=1)
friend INLINE_VISIBILITY bool operator==(const param_type &__x, const param_type &__y)
INLINE_VISIBILITY result_type mean() const
INLINE_VISIBILITY result_type operator()(_URNG &__g)
friend INLINE_VISIBILITY bool operator==(const normal_distribution &__x, const normal_distribution &__y)
INLINE_VISIBILITY result_type max() const
friend INLINE_VISIBILITY bool operator!=(const normal_distribution &__x, const normal_distribution &__y)
INLINE_VISIBILITY void reset()
INLINE_VISIBILITY result_type stddev() const
INLINE_VISIBILITY normal_distribution(const param_type &__p)
INLINE_VISIBILITY result_type mean() const
INLINE_VISIBILITY normal_distribution(result_type __mean=0, result_type __stddev=1)
INLINE_VISIBILITY void param(const param_type &__p)
INLINE_VISIBILITY result_type min() const
result_type operator()(_URNG &__g, const param_type &__p)
INLINE_VISIBILITY param_type param() const
MANTID_API_DLL std::istream & operator>>(std::istream &istr, API::Boolean &)
Redaing a Boolean from an input stream.
MANTID_KERNEL_DLL std::istream & operator>>(std::istream &, Interpolation &)
Reads in parameter value.
Helper class which provides the Collimation Length for SANS instruments.
#define INLINE_VISIBILITY