3#ifndef pRC_CORE_VALUE_FUNCTIONS_RELATIVE_ERROR_H
4#define pRC_CORE_VALUE_FUNCTIONS_RELATIVE_ERROR_H
35 template<
class XA,
class XB,
class RA = RemoveReference<XA>,
36 class RB = RemoveReference<XB>, If<IsFloat<
typename RA::Value>> = 0,
37 If<IsFloat<
typename RB::Value>> = 0,
38 If<IsInvocable<AbsoluteError, XA, XB>> = 0,
39 If<IsInvocable<Norm<>, XA>> = 0,
40 If<IsInvocable<Div, ResultOf<AbsoluteError, XA, XB>,
41 ResultOf<Norm<>, XA>>> = 0>
66 template<
class XA,
class XB,
class RA = RemoveReference<XA>,
67 class RB = RemoveReference<XB>, If<IsFloat<
typename RA::Value>> = 0,
68 If<Not<IsFloat<
typename RB::Value>>> = 0,
69 If<IsInvocable<AbsoluteError, XA, XB>> = 0,
70 If<IsInvocable<Norm<>, XA>> = 0,
71 If<IsInvocable<Div, ResultOf<AbsoluteError, XA, XB>,
72 ResultOf<Norm<>, XA>>> = 0>
97 template<
class XA,
class XB,
class RA = RemoveReference<XA>,
98 class RB = RemoveReference<XB>,
99 If<Not<IsFloat<
typename RA::Value>>> = 0,
100 If<IsFloat<
typename RB::Value>> = 0,
101 If<IsInvocable<AbsoluteError, XA, XB>> = 0,
102 If<IsInvocable<Norm<>, XA>> = 0,
103 If<IsInvocable<Div, ResultOf<AbsoluteError, XA, XB>,
104 ResultOf<Norm<>, XA>>> = 0>
129 template<
class XA,
class XB,
class RA = RemoveReference<XA>,
130 class RB = RemoveReference<XB>,
131 If<Not<IsFloat<
typename RA::Value>>> = 0,
132 If<Not<IsFloat<
typename RB::Value>>> = 0,
133 If<IsInvocable<AbsoluteError, XA, XB>> = 0,
134 If<IsInvocable<Norm<>, XA>> = 0,
135 If<IsInvocable<Div, ResultOf<AbsoluteError, XA, XB>,
136 ResultOf<Norm<>, XA>>> = 0>
Definition cholesky.hpp:18
static constexpr auto absoluteError(XA &&a, XB &&b)
Calculates the absolute error of two pRC objects.
Definition absolute_error.hpp:29
static constexpr auto relativeError(XA &&a, XB &&b)
Calculates the relative error of a pRC object from another pRC object.
Definition relative_error.hpp:42
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13
static constexpr auto cast(Complex< T > const &a)
Definition cast.hpp:13
static constexpr auto norm(Complex< T > const &a)
Definition norm.hpp:11