diff --git a/include/armadillo b/include/armadillo index 9c432a6b..27843724 100644 --- a/include/armadillo +++ b/include/armadillo @@ -158,6 +158,7 @@ namespace arma #include "armadillo_bits/constants_old.hpp" #include "armadillo_bits/mp_misc.hpp" #include "armadillo_bits/arma_rel_comparators.hpp" + #include "armadillo_bits/cond_rel.hpp" #include "armadillo_bits/fill.hpp" #if defined(ARMA_RNG_ALT) @@ -190,7 +191,6 @@ namespace arma #include "armadillo_bits/translate_superlu.hpp" #include "armadillo_bits/translate_fftw3.hpp" - #include "armadillo_bits/cond_rel_bones.hpp" #include "armadillo_bits/arrayops_bones.hpp" #include "armadillo_bits/podarray_bones.hpp" #include "armadillo_bits/auxlib_bones.hpp" @@ -681,7 +681,6 @@ namespace arma #include "armadillo_bits/eop_core_meat.hpp" #include "armadillo_bits/eglue_core_meat.hpp" - #include "armadillo_bits/cond_rel_meat.hpp" #include "armadillo_bits/arrayops_meat.hpp" #include "armadillo_bits/podarray_meat.hpp" #include "armadillo_bits/auxlib_meat.hpp" diff --git a/include/armadillo_bits/cond_rel_meat.hpp b/include/armadillo_bits/cond_rel.hpp similarity index 81% rename from include/armadillo_bits/cond_rel_meat.hpp rename to include/armadillo_bits/cond_rel.hpp index 76b2a3c3..39982d5f 100644 --- a/include/armadillo_bits/cond_rel_meat.hpp +++ b/include/armadillo_bits/cond_rel.hpp @@ -20,6 +20,22 @@ //! @{ +// +// for preventing pedantic compiler warnings + +template +struct cond_rel + { + template static constexpr bool lt(const eT A, const eT B); + template static constexpr bool gt(const eT A, const eT B); + + template static constexpr bool leq(const eT A, const eT B); + template static constexpr bool geq(const eT A, const eT B); + + template static constexpr eT make_neg(const eT val); + }; + + template<> template diff --git a/include/armadillo_bits/cond_rel_bones.hpp b/include/armadillo_bits/cond_rel_bones.hpp deleted file mode 100644 index 5d059a45..00000000 --- a/include/armadillo_bits/cond_rel_bones.hpp +++ /dev/null @@ -1,40 +0,0 @@ -// 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 cond_rel -//! @{ - - -// -// for preventing pedantic compiler warnings - -template -struct cond_rel - { - template static constexpr bool lt(const eT A, const eT B); - template static constexpr bool gt(const eT A, const eT B); - - template static constexpr bool leq(const eT A, const eT B); - template static constexpr bool geq(const eT A, const eT B); - - template static constexpr eT make_neg(const eT val); - }; - - - -//! @}