combine cond_rel function definitons and bodies into one file

This commit is contained in:
conrad
2025-07-26 00:16:37 +10:00
parent 3f577dc19c
commit 95fda0d2e3
3 changed files with 17 additions and 42 deletions
+1 -2
View File
@@ -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"
@@ -20,6 +20,22 @@
//! @{
//
// for preventing pedantic compiler warnings
template<bool do_eval>
struct cond_rel
{
template<typename eT> static constexpr bool lt(const eT A, const eT B);
template<typename eT> static constexpr bool gt(const eT A, const eT B);
template<typename eT> static constexpr bool leq(const eT A, const eT B);
template<typename eT> static constexpr bool geq(const eT A, const eT B);
template<typename eT> static constexpr eT make_neg(const eT val);
};
template<>
template<typename eT>
-40
View File
@@ -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<const bool do_eval>
struct cond_rel
{
template<typename eT> static constexpr bool lt(const eT A, const eT B);
template<typename eT> static constexpr bool gt(const eT A, const eT B);
template<typename eT> static constexpr bool leq(const eT A, const eT B);
template<typename eT> static constexpr bool geq(const eT A, const eT B);
template<typename eT> static constexpr eT make_neg(const eT val);
};
//! @}