// SPDX-License-Identifier: Apache-2.0 // // Copyright 2008-2016 Conrad Sanderson (https://conradsanderson.id.au) // Copyright 2008-2016 National ICT Australia (NICTA) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // ------------------------------------------------------------------------ //! \addtogroup constants_old //! @{ // DO NOT USE IN NEW CODE !!! // the Math and Phy classes are kept for compatibility with old code; // for new code, use the Datum class instead // eg. instead of math::pi(), use datum::pi template struct Math { [[deprecated("use datum::pi instead")]] static eT pi() { return eT(Datum::pi); } [[deprecated("use datum::e instead")]] static eT e() { return eT(Datum::e); } [[deprecated("use datum::euler instead")]] static eT euler() { return eT(Datum::euler); } [[deprecated("use datum::gratio instead")]] static eT gratio() { return eT(Datum::gratio); } [[deprecated("use datum::sqrt2 instead")]] static eT sqrt2() { return eT(Datum::sqrt2); } [[deprecated("use datum::eps instead")]] static eT eps() { return eT(Datum::eps); } [[deprecated("use datum::log_min instead")]] static eT log_min() { return eT(Datum::log_min); } [[deprecated("use datum::log_max instead")]] static eT log_max() { return eT(Datum::log_max); } [[deprecated("use datum::nan instead")]] static eT nan() { return eT(Datum::nan); } [[deprecated("use datum::inf instead")]] static eT inf() { return eT(Datum::inf); } }; template struct Phy { [[deprecated]] static eT m_u() { return eT(Datum::m_u); } [[deprecated]] static eT N_A() { return eT(Datum::N_A); } [[deprecated]] static eT k() { return eT(Datum::k); } [[deprecated]] static eT k_evk() { return eT(Datum::k_evk); } [[deprecated]] static eT a_0() { return eT(Datum::a_0); } [[deprecated]] static eT mu_B() { return eT(Datum::mu_B); } [[deprecated]] static eT Z_0() { return eT(Datum::Z_0); } [[deprecated]] static eT G_0() { return eT(Datum::G_0); } [[deprecated]] static eT k_e() { return eT(Datum::k_e); } [[deprecated]] static eT eps_0() { return eT(Datum::eps_0); } [[deprecated]] static eT m_e() { return eT(Datum::m_e); } [[deprecated]] static eT eV() { return eT(Datum::eV); } [[deprecated]] static eT e() { return eT(Datum::ec); } [[deprecated]] static eT F() { return eT(Datum::F); } [[deprecated]] static eT alpha() { return eT(Datum::alpha); } [[deprecated]] static eT alpha_inv() { return eT(Datum::alpha_inv); } [[deprecated]] static eT K_J() { return eT(Datum::K_J); } [[deprecated]] static eT mu_0() { return eT(Datum::mu_0); } [[deprecated]] static eT phi_0() { return eT(Datum::phi_0); } [[deprecated]] static eT R() { return eT(Datum::R); } [[deprecated]] static eT G() { return eT(Datum::G); } [[deprecated]] static eT h() { return eT(Datum::h); } [[deprecated]] static eT h_bar() { return eT(Datum::h_bar); } [[deprecated]] static eT m_p() { return eT(Datum::m_p); } [[deprecated]] static eT R_inf() { return eT(Datum::R_inf); } [[deprecated]] static eT c_0() { return eT(Datum::c_0); } [[deprecated]] static eT sigma() { return eT(Datum::sigma); } [[deprecated]] static eT R_k() { return eT(Datum::R_k); } [[deprecated]] static eT b() { return eT(Datum::b); } }; typedef Math fmath; typedef Math math; typedef Phy fphy; typedef Phy phy; //! @}