|
1 | 1 | // SPDX-License-Identifier: Apache-2.0 |
2 | 2 | // |
3 | | -// Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au) |
| 3 | +// Copyright 2008-2016 Conrad Sanderson (https://conradsanderson.id.au) |
4 | 4 | // Copyright 2008-2016 National ICT Australia (NICTA) |
5 | 5 | // |
6 | 6 | // Licensed under the Apache License, Version 2.0 (the "License"); |
7 | 7 | // you may not use this file except in compliance with the License. |
8 | 8 | // You may obtain a copy of the License at |
9 | | -// http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +// https://www.apache.org/licenses/LICENSE-2.0 |
10 | 10 | // |
11 | 11 | // Unless required by applicable law or agreed to in writing, software |
12 | 12 | // distributed under the License is distributed on an "AS IS" BASIS, |
|
54 | 54 | #include <atomic> |
55 | 55 |
|
56 | 56 | #if defined(ARMA_USE_STD_MUTEX) |
57 | | - #include <mutex> |
| 57 | + #if defined(__has_include) |
| 58 | + #if __has_include(<mutex>) |
| 59 | + #include <mutex> |
| 60 | + #else |
| 61 | + #undef ARMA_USE_STD_MUTEX |
| 62 | + #pragma message ("WARNING: use of std::mutex disabled; mutex header not found") |
| 63 | + #endif |
| 64 | + #else |
| 65 | + #include <mutex> |
| 66 | + #endif |
58 | 67 | #endif |
59 | 68 |
|
60 | 69 | // #if defined(ARMA_HAVE_CXX17) |
61 | 70 | // #include <charconv> |
62 | 71 | // #include <system_error> |
63 | 72 | // #endif |
64 | 73 |
|
| 74 | +#if defined(ARMA_HAVE_CXX23) |
| 75 | + #if defined(__has_include) |
| 76 | + #if __has_include(<stdfloat>) |
| 77 | + #include <stdfloat> |
| 78 | + #endif |
| 79 | + #else |
| 80 | + #include <stdfloat> |
| 81 | + #endif |
| 82 | +#endif |
| 83 | + |
65 | 84 | #if ( defined(__unix__) || defined(__unix) || defined(_POSIX_C_SOURCE) || (defined(__APPLE__) && defined(__MACH__)) ) && !defined(_WIN32) |
66 | 85 | #include <unistd.h> |
67 | 86 | #endif |
@@ -139,6 +158,7 @@ namespace arma |
139 | 158 | #include "armadillo_bits/constants_old.hpp" |
140 | 159 | #include "armadillo_bits/mp_misc.hpp" |
141 | 160 | #include "armadillo_bits/arma_rel_comparators.hpp" |
| 161 | + #include "armadillo_bits/cond_rel.hpp" |
142 | 162 | #include "armadillo_bits/fill.hpp" |
143 | 163 |
|
144 | 164 | #if defined(ARMA_RNG_ALT) |
@@ -171,7 +191,6 @@ namespace arma |
171 | 191 | #include "armadillo_bits/translate_superlu.hpp" |
172 | 192 | #include "armadillo_bits/translate_fftw3.hpp" |
173 | 193 |
|
174 | | - #include "armadillo_bits/cond_rel_bones.hpp" |
175 | 194 | #include "armadillo_bits/arrayops_bones.hpp" |
176 | 195 | #include "armadillo_bits/podarray_bones.hpp" |
177 | 196 | #include "armadillo_bits/auxlib_bones.hpp" |
@@ -275,7 +294,7 @@ namespace arma |
275 | 294 | #include "armadillo_bits/op_resize_bones.hpp" |
276 | 295 | #include "armadillo_bits/op_cov_bones.hpp" |
277 | 296 | #include "armadillo_bits/op_cor_bones.hpp" |
278 | | - #include "armadillo_bits/op_shift_bones.hpp" |
| 297 | + #include "armadillo_bits/op_circshift_bones.hpp" |
279 | 298 | #include "armadillo_bits/op_shuffle_bones.hpp" |
280 | 299 | #include "armadillo_bits/op_prod_bones.hpp" |
281 | 300 | #include "armadillo_bits/op_pinv_bones.hpp" |
@@ -321,6 +340,7 @@ namespace arma |
321 | 340 | #include "armadillo_bits/op_rank_bones.hpp" |
322 | 341 | #include "armadillo_bits/op_row_as_mat_bones.hpp" |
323 | 342 | #include "armadillo_bits/op_col_as_mat_bones.hpp" |
| 343 | + #include "armadillo_bits/op_accu_bones.hpp" |
324 | 344 | #include "armadillo_bits/op_sp_plus_bones.hpp" |
325 | 345 | #include "armadillo_bits/op_sp_minus_bones.hpp" |
326 | 346 | #include "armadillo_bits/op_sp_sum_bones.hpp" |
@@ -376,9 +396,10 @@ namespace arma |
376 | 396 | #include "armadillo_bits/spop_repmat_bones.hpp" |
377 | 397 | #include "armadillo_bits/spop_vectorise_bones.hpp" |
378 | 398 | #include "armadillo_bits/spop_norm_bones.hpp" |
379 | | - #include "armadillo_bits/spop_shift_bones.hpp" |
| 399 | + #include "armadillo_bits/spop_circshift_bones.hpp" |
380 | 400 | #include "armadillo_bits/spop_relational_bones.hpp" |
381 | 401 | #include "armadillo_bits/spop_omit_bones.hpp" |
| 402 | + #include "armadillo_bits/spop_accu_bones.hpp" |
382 | 403 |
|
383 | 404 | #include "armadillo_bits/spglue_plus_bones.hpp" |
384 | 405 | #include "armadillo_bits/spglue_minus_bones.hpp" |
@@ -525,7 +546,7 @@ namespace arma |
525 | 546 | #include "armadillo_bits/fn_resize.hpp" |
526 | 547 | #include "armadillo_bits/fn_cov.hpp" |
527 | 548 | #include "armadillo_bits/fn_cor.hpp" |
528 | | - #include "armadillo_bits/fn_shift.hpp" |
| 549 | + #include "armadillo_bits/fn_circshift.hpp" |
529 | 550 | #include "armadillo_bits/fn_shuffle.hpp" |
530 | 551 | #include "armadillo_bits/fn_prod.hpp" |
531 | 552 | #include "armadillo_bits/fn_eps.hpp" |
@@ -662,7 +683,6 @@ namespace arma |
662 | 683 | #include "armadillo_bits/eop_core_meat.hpp" |
663 | 684 | #include "armadillo_bits/eglue_core_meat.hpp" |
664 | 685 |
|
665 | | - #include "armadillo_bits/cond_rel_meat.hpp" |
666 | 686 | #include "armadillo_bits/arrayops_meat.hpp" |
667 | 687 | #include "armadillo_bits/podarray_meat.hpp" |
668 | 688 | #include "armadillo_bits/auxlib_meat.hpp" |
@@ -733,7 +753,7 @@ namespace arma |
733 | 753 | #include "armadillo_bits/op_resize_meat.hpp" |
734 | 754 | #include "armadillo_bits/op_cov_meat.hpp" |
735 | 755 | #include "armadillo_bits/op_cor_meat.hpp" |
736 | | - #include "armadillo_bits/op_shift_meat.hpp" |
| 756 | + #include "armadillo_bits/op_circshift_meat.hpp" |
737 | 757 | #include "armadillo_bits/op_shuffle_meat.hpp" |
738 | 758 | #include "armadillo_bits/op_prod_meat.hpp" |
739 | 759 | #include "armadillo_bits/op_pinv_meat.hpp" |
@@ -779,6 +799,7 @@ namespace arma |
779 | 799 | #include "armadillo_bits/op_rank_meat.hpp" |
780 | 800 | #include "armadillo_bits/op_row_as_mat_meat.hpp" |
781 | 801 | #include "armadillo_bits/op_col_as_mat_meat.hpp" |
| 802 | + #include "armadillo_bits/op_accu_meat.hpp" |
782 | 803 | #include "armadillo_bits/op_sp_plus_meat.hpp" |
783 | 804 | #include "armadillo_bits/op_sp_minus_meat.hpp" |
784 | 805 | #include "armadillo_bits/op_sp_sum_meat.hpp" |
@@ -834,9 +855,10 @@ namespace arma |
834 | 855 | #include "armadillo_bits/spop_repmat_meat.hpp" |
835 | 856 | #include "armadillo_bits/spop_vectorise_meat.hpp" |
836 | 857 | #include "armadillo_bits/spop_norm_meat.hpp" |
837 | | - #include "armadillo_bits/spop_shift_meat.hpp" |
| 858 | + #include "armadillo_bits/spop_circshift_meat.hpp" |
838 | 859 | #include "armadillo_bits/spop_relational_meat.hpp" |
839 | 860 | #include "armadillo_bits/spop_omit_meat.hpp" |
| 861 | + #include "armadillo_bits/spop_accu_meat.hpp" |
840 | 862 |
|
841 | 863 | #include "armadillo_bits/spglue_plus_meat.hpp" |
842 | 864 | #include "armadillo_bits/spglue_minus_meat.hpp" |
|
0 commit comments