OPAL (Object Oriented Parallel Accelerator Library)
2024.1
OPAL
|
Functions | |
template<typename T > | |
T | sgn (T x) |
Sign function. More... | |
template<typename T > | |
T | isnan (T x) |
isnan function with adjusted return type More... | |
template<typename T > | |
T | isinf (T x) |
isinf function with adjusted return type More... | |
template<typename T > | |
T | deg (T x) |
Convert radians to degrees. More... | |
template<typename T > | |
T | rad (T x) |
Convert degrees to radians. More... | |
T matheval::detail::math::deg | ( | T | x | ) |
Convert radians to degrees.
Definition at line 75 of file matheval.hpp.
Referenced by matheval::detail::grammar< real_t, Iterator >::ufunc_::ufunc_(), and OpalDegrader::update().
T matheval::detail::math::isinf | ( | T | x | ) |
isinf function with adjusted return type
Definition at line 71 of file matheval.hpp.
Referenced by Bend2D::calcEngeFunction(), TrimCoilMirrored::doApplyField(), AmrParticleBase< PLayout >::domainMapping(), ParallelTTracker::dumpStats(), and matheval::detail::grammar< real_t, Iterator >::ufunc_::ufunc_().
T matheval::detail::math::isnan | ( | T | x | ) |
isnan function with adjusted return type
Definition at line 67 of file matheval.hpp.
Referenced by Stepper< FieldFunction, Arguments...>::advance(), cmp_ulp_obsolete::almost_eq(), cmp_ulp::almost_eq(), Bend2D::calcEngeFunction(), TrimCoilMirrored::doApplyField(), AmrParticleBase< PLayout >::domainMapping(), ParallelTTracker::dumpStats(), RFCavity::getAutoPhaseEstimate(), and matheval::detail::grammar< real_t, Iterator >::ufunc_::ufunc_().
T matheval::detail::math::rad | ( | T | x | ) |
Convert degrees to radians.
Definition at line 79 of file matheval.hpp.
Referenced by Cyclotron::apply(), Vacuum::checkPressure(), and matheval::detail::grammar< real_t, Iterator >::ufunc_::ufunc_().
T matheval::detail::math::sgn | ( | T | x | ) |
Sign function.
Missing function in the STL. This calculates the mathematical sign function.
\[ \mathop{\mathrm{sgn}}(x) = \begin{cases} 1 & x > 0 \\ 0 & x = 0 \\ -1 & x < 0 \\ \end{cases} \]
[in] | x | number |
Definition at line 63 of file matheval.hpp.
References Attrib::Legacy::Distribution::T.
Referenced by matheval::detail::grammar< real_t, Iterator >::ufunc_::ufunc_().