// SPDX-License-Identifier: Apache-2.0 // // Copyright 2008-2016 Conrad Sanderson (http://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 // http://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 class Math { public: arma_frown("use datum::pi instead") static eT pi() { return eT(Datum::pi); } arma_frown("use datum::e instead") static eT e() { return eT(Datum::e); } arma_frown("use datum::euler instead") static eT euler() { return eT(Datum::euler); } arma_frown("use datum::gratio instead") static eT gratio() { return eT(Datum::gratio); } arma_frown("use datum::sqrt2 instead") static eT sqrt2() { return eT(Datum::sqrt2); } arma_frown("use datum::eps instead") static eT eps() { return eT(Datum::eps); } arma_frown("use datum::log_min instead") static eT log_min() { return eT(Datum::log_min); } arma_frown("use datum::log_max instead") static eT log_max() { return eT(Datum::log_max); } arma_frown("use datum::nan instead") static eT nan() { return eT(Datum::nan); } arma_frown("use datum::inf instead") static eT inf() { return eT(Datum::inf); } }; template class Phy { public: arma_deprecated static eT m_u() { return eT(Datum::m_u); } arma_deprecated static eT N_A() { return eT(Datum::N_A); } arma_deprecated static eT k() { return eT(Datum::k); } arma_deprecated static eT k_evk() { return eT(Datum::k_evk); } arma_deprecated static eT a_0() { return eT(Datum::a_0); } arma_deprecated static eT mu_B() { return eT(Datum::mu_B); } arma_deprecated static eT Z_0() { return eT(Datum::Z_0); } arma_deprecated static eT G_0() { return eT(Datum::G_0); } arma_deprecated static eT k_e() { return eT(Datum::k_e); } arma_deprecated static eT eps_0() { return eT(Datum::eps_0); } arma_deprecated static eT m_e() { return eT(Datum::m_e); } arma_deprecated static eT eV() { return eT(Datum::eV); } arma_deprecated static eT e() { return eT(Datum::ec); } arma_deprecated static eT F() { return eT(Datum::F); } arma_deprecated static eT alpha() { return eT(Datum::alpha); } arma_deprecated static eT alpha_inv() { return eT(Datum::alpha_inv); } arma_deprecated static eT K_J() { return eT(Datum::K_J); } arma_deprecated static eT mu_0() { return eT(Datum::mu_0); } arma_deprecated static eT phi_0() { return eT(Datum::phi_0); } arma_deprecated static eT R() { return eT(Datum::R); } arma_deprecated static eT G() { return eT(Datum::G); } arma_deprecated static eT h() { return eT(Datum::h); } arma_deprecated static eT h_bar() { return eT(Datum::h_bar); } arma_deprecated static eT m_p() { return eT(Datum::m_p); } arma_deprecated static eT R_inf() { return eT(Datum::R_inf); } arma_deprecated static eT c_0() { return eT(Datum::c_0); } arma_deprecated static eT sigma() { return eT(Datum::sigma); } arma_deprecated static eT R_k() { return eT(Datum::R_k); } arma_deprecated static eT b() { return eT(Datum::b); } }; typedef Math fmath; typedef Math math; typedef Phy fphy; typedef Phy phy; //! @}