// 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.
// ------------------------------------------------------------------------


#ifndef ARMA_INCLUDES
#define ARMA_INCLUDES

// WARNING: the documentation (docs.html) describes the public API (functions, classes, constants);
// WARNING: any functionality which is _not explicitly_ described in the documentation
// WARNING: is considered as internal implementation detail, and may be changed or removed without notice.

#include "armadillo_bits/config.hpp"
#include "armadillo_bits/compiler_check.hpp"

#include <cstdlib>
#include <cstddef>
#include <cstdio>
#include <cstring>
#include <climits>
#include <cstdint>
#include <cmath>
#include <ctime>

#include <memory>
#include <iostream>
#include <fstream>
#include <sstream>
#include <stdexcept>
#include <new>
#include <limits>
#include <algorithm>
#include <complex>
#include <vector>
#include <utility>
#include <map>
#include <initializer_list>
#include <random>
#include <functional>
#include <chrono>
#include <atomic>

#if defined(ARMA_USE_STD_MUTEX)
  #if defined(__has_include)
    #if __has_include(<mutex>)
      #include <mutex>
    #else
      #undef ARMA_USE_STD_MUTEX
      #pragma message ("WARNING: use of std::mutex disabled; mutex header not found")
    #endif
  #else
    #include <mutex>
  #endif
#endif

// #if defined(ARMA_HAVE_CXX17)
//   #include <charconv>
//   #include <system_error>
// #endif

#if defined(ARMA_HAVE_CXX23)
  #if defined(__has_include)
    #if __has_include(<stdfloat>)
      #include <stdfloat>
    #endif
  #else
    #include <stdfloat>
  #endif
#endif

#if ( defined(__unix__) || defined(__unix) || defined(_POSIX_C_SOURCE) || (defined(__APPLE__) && defined(__MACH__)) ) && !defined(_WIN32)
  #include <unistd.h>
#endif

#if defined(ARMA_USE_TBB_ALLOC)
  #if defined(__has_include)
    #if __has_include(<tbb/scalable_allocator.h>)
      #include <tbb/scalable_allocator.h>
    #else
      #undef ARMA_USE_TBB_ALLOC
      #pragma message ("WARNING: use of TBB alloc disabled; tbb/scalable_allocator.h header not found")
    #endif
  #else
    #include <tbb/scalable_allocator.h>
  #endif
#endif

#if defined(ARMA_USE_MKL_ALLOC)
  #if defined(__has_include)
    #if __has_include(<mkl_service.h>)
      #include <mkl_service.h>
    #else
      #undef ARMA_USE_MKL_ALLOC
      #pragma message ("WARNING: use of MKL alloc disabled; mkl_service.h header not found")
    #endif
  #else
    #include <mkl_service.h>
  #endif
#endif


#include "armadillo_bits/compiler_setup.hpp"


#if defined(ARMA_USE_OPENMP)
  #if defined(__has_include)
    #if __has_include(<omp.h>)
      #include <omp.h>
    #else
      #undef ARMA_USE_OPENMP
      #pragma message ("WARNING: use of OpenMP disabled; omp.h header not found")
    #endif
  #else
    #include <omp.h>
  #endif
#endif


#include "armadillo_bits/include_hdf5.hpp"
#include "armadillo_bits/include_superlu.hpp"


//! \namespace arma namespace for Armadillo classes and functions
namespace arma
  {
  
  // preliminaries
  
  #include "armadillo_bits/arma_forward.hpp"
  #include "armadillo_bits/arma_static_check.hpp"
  #include "armadillo_bits/typedef_elem.hpp"
  #include "armadillo_bits/typedef_elem_check.hpp"
  #include "armadillo_bits/typedef_mat.hpp"
  #include "armadillo_bits/arma_str.hpp"
  #include "armadillo_bits/arma_version.hpp"
  #include "armadillo_bits/arma_config.hpp"
  #include "armadillo_bits/traits.hpp"
  #include "armadillo_bits/promote_type.hpp"
  #include "armadillo_bits/upgrade_val.hpp"
  #include "armadillo_bits/restrictors.hpp"
  #include "armadillo_bits/access.hpp"
  #include "armadillo_bits/span.hpp"
  #include "armadillo_bits/distr_param.hpp"
  #include "armadillo_bits/constants.hpp"
  #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)
    #include ARMA_INCFILE_WRAP(ARMA_RNG_ALT)
  #else
    #include "armadillo_bits/arma_rng_cxx03.hpp"
  #endif
  
  #include "armadillo_bits/arma_rng.hpp"
  
  
  //
  // class prototypes
  
  #include "armadillo_bits/Base_bones.hpp"
  #include "armadillo_bits/BaseCube_bones.hpp"
  #include "armadillo_bits/SpBase_bones.hpp"
  
  #include "armadillo_bits/def_blas.hpp"
  #include "armadillo_bits/def_atlas.hpp"
  #include "armadillo_bits/def_lapack.hpp"
  #include "armadillo_bits/def_arpack.hpp"
  #include "armadillo_bits/def_superlu.hpp"
  #include "armadillo_bits/def_fftw3.hpp"
  
  #include "armadillo_bits/translate_blas.hpp"
  #include "armadillo_bits/translate_atlas.hpp"
  #include "armadillo_bits/translate_lapack.hpp"
  #include "armadillo_bits/translate_arpack.hpp"
  #include "armadillo_bits/translate_superlu.hpp"
  #include "armadillo_bits/translate_fftw3.hpp"
  
  #include "armadillo_bits/arrayops_bones.hpp"
  #include "armadillo_bits/podarray_bones.hpp"
  #include "armadillo_bits/auxlib_bones.hpp"
  #include "armadillo_bits/sp_auxlib_bones.hpp"
  
  #include "armadillo_bits/injector_bones.hpp"
  
  #include "armadillo_bits/Mat_bones.hpp"
  #include "armadillo_bits/Col_bones.hpp"
  #include "armadillo_bits/Row_bones.hpp"
  #include "armadillo_bits/Cube_bones.hpp"
  #include "armadillo_bits/xvec_htrans_bones.hpp"
  #include "armadillo_bits/xtrans_mat_bones.hpp"
  #include "armadillo_bits/SizeMat_bones.hpp"
  #include "armadillo_bits/SizeCube_bones.hpp"
    
  #include "armadillo_bits/SpValProxy_bones.hpp"
  #include "armadillo_bits/SpMat_bones.hpp"
  #include "armadillo_bits/SpCol_bones.hpp"
  #include "armadillo_bits/SpRow_bones.hpp"
  #include "armadillo_bits/SpSubview_bones.hpp"
  #include "armadillo_bits/SpSubview_col_list_bones.hpp"
  #include "armadillo_bits/spdiagview_bones.hpp"
  #include "armadillo_bits/MapMat_bones.hpp"
  
  #include "armadillo_bits/typedef_mat_fixed.hpp"
  
  #include "armadillo_bits/field_bones.hpp"
  #include "armadillo_bits/subview_bones.hpp"
  #include "armadillo_bits/subview_elem1_bones.hpp"
  #include "armadillo_bits/subview_elem2_bones.hpp"
  #include "armadillo_bits/subview_field_bones.hpp"
  #include "armadillo_bits/subview_cube_bones.hpp"
  #include "armadillo_bits/diagview_bones.hpp"
  #include "armadillo_bits/subview_each_bones.hpp"
  #include "armadillo_bits/subview_cube_each_bones.hpp"
  #include "armadillo_bits/subview_cube_slices_bones.hpp"
  
  #include "armadillo_bits/hdf5_name.hpp"
  #include "armadillo_bits/csv_name.hpp"
  #include "armadillo_bits/diskio_bones.hpp"
  #include "armadillo_bits/wall_clock_bones.hpp"
  #include "armadillo_bits/running_stat_bones.hpp"
  #include "armadillo_bits/running_stat_vec_bones.hpp"
  
  #include "armadillo_bits/Op_bones.hpp"
  #include "armadillo_bits/CubeToMatOp_bones.hpp"
  #include "armadillo_bits/OpCube_bones.hpp"
  #include "armadillo_bits/SpOp_bones.hpp"
  #include "armadillo_bits/SpToDOp_bones.hpp"
  #include "armadillo_bits/mtSpReduceOp_bones.hpp"
  
  #include "armadillo_bits/eOp_bones.hpp"
  #include "armadillo_bits/eOpCube_bones.hpp"
  
  #include "armadillo_bits/mtOp_bones.hpp"
  #include "armadillo_bits/mtOpCube_bones.hpp"
  #include "armadillo_bits/mtSpOp_bones.hpp"
  
  #include "armadillo_bits/Glue_bones.hpp"
  #include "armadillo_bits/eGlue_bones.hpp"
  #include "armadillo_bits/mtGlue_bones.hpp"
  #include "armadillo_bits/SpGlue_bones.hpp"
  #include "armadillo_bits/mtSpGlue_bones.hpp"
  #include "armadillo_bits/SpToDGlue_bones.hpp"
  
  #include "armadillo_bits/GlueCube_bones.hpp"
  #include "armadillo_bits/eGlueCube_bones.hpp"
  #include "armadillo_bits/mtGlueCube_bones.hpp"
  
  #include "armadillo_bits/eop_core_bones.hpp"
  #include "armadillo_bits/eglue_core_bones.hpp"
  
  #include "armadillo_bits/Gen_bones.hpp"
  #include "armadillo_bits/GenCube_bones.hpp"
  
  #include "armadillo_bits/op_diagmat_bones.hpp"
  #include "armadillo_bits/op_diagvec_bones.hpp"
  #include "armadillo_bits/op_dot_bones.hpp"
  #include "armadillo_bits/op_det_bones.hpp"
  #include "armadillo_bits/op_log_det_bones.hpp"
  #include "armadillo_bits/op_inv_gen_bones.hpp"
  #include "armadillo_bits/op_inv_spd_bones.hpp"
  #include "armadillo_bits/op_htrans_bones.hpp"
  #include "armadillo_bits/op_max_bones.hpp"
  #include "armadillo_bits/op_min_bones.hpp"
  #include "armadillo_bits/op_index_max_bones.hpp"
  #include "armadillo_bits/op_index_min_bones.hpp"
  #include "armadillo_bits/op_mean_bones.hpp"
  #include "armadillo_bits/op_median_bones.hpp"
  #include "armadillo_bits/op_sort_bones.hpp"
  #include "armadillo_bits/op_sort_index_bones.hpp"
  #include "armadillo_bits/op_sum_bones.hpp"
  #include "armadillo_bits/op_stddev_bones.hpp"
  #include "armadillo_bits/op_strans_bones.hpp"
  #include "armadillo_bits/op_var_bones.hpp"
  #include "armadillo_bits/op_repmat_bones.hpp"
  #include "armadillo_bits/op_repelem_bones.hpp"
  #include "armadillo_bits/op_reshape_bones.hpp"
  #include "armadillo_bits/op_vectorise_bones.hpp"
  #include "armadillo_bits/op_resize_bones.hpp"
  #include "armadillo_bits/op_cov_bones.hpp"
  #include "armadillo_bits/op_cor_bones.hpp"
  #include "armadillo_bits/op_circshift_bones.hpp"
  #include "armadillo_bits/op_shuffle_bones.hpp"
  #include "armadillo_bits/op_prod_bones.hpp"
  #include "armadillo_bits/op_pinv_bones.hpp"
  #include "armadillo_bits/op_dotext_bones.hpp"
  #include "armadillo_bits/op_flip_bones.hpp"
  #include "armadillo_bits/op_reverse_bones.hpp"
  #include "armadillo_bits/op_princomp_bones.hpp"
  #include "armadillo_bits/op_elem_bones.hpp"
  #include "armadillo_bits/op_orth_null_bones.hpp"
  #include "armadillo_bits/op_relational_bones.hpp"
  #include "armadillo_bits/op_find_bones.hpp"
  #include "armadillo_bits/op_find_unique_bones.hpp"
  #include "armadillo_bits/op_chol_bones.hpp"
  #include "armadillo_bits/op_cx_scalar_bones.hpp"
  #include "armadillo_bits/op_trimat_bones.hpp"
  #include "armadillo_bits/op_cumsum_bones.hpp"
  #include "armadillo_bits/op_cumprod_bones.hpp"
  #include "armadillo_bits/op_symmat_bones.hpp"
  #include "armadillo_bits/op_hist_bones.hpp"
  #include "armadillo_bits/op_unique_bones.hpp"
  #include "armadillo_bits/op_toeplitz_bones.hpp"
  #include "armadillo_bits/op_fft_bones.hpp"
  #include "armadillo_bits/op_any_bones.hpp"
  #include "armadillo_bits/op_all_bones.hpp"
  #include "armadillo_bits/op_normalise_bones.hpp"
  #include "armadillo_bits/op_clamp_bones.hpp"
  #include "armadillo_bits/op_expmat_bones.hpp"
  #include "armadillo_bits/op_nonzeros_bones.hpp"
  #include "armadillo_bits/op_omit_bones.hpp"
  #include "armadillo_bits/op_diff_bones.hpp"
  #include "armadillo_bits/op_norm_bones.hpp"
  #include "armadillo_bits/op_vecnorm_bones.hpp"
  #include "armadillo_bits/op_norm2est_bones.hpp"
  #include "armadillo_bits/op_sqrtmat_bones.hpp"
  #include "armadillo_bits/op_logmat_bones.hpp"
  #include "armadillo_bits/op_range_bones.hpp"
  #include "armadillo_bits/op_chi2rnd_bones.hpp"
  #include "armadillo_bits/op_wishrnd_bones.hpp"
  #include "armadillo_bits/op_roots_bones.hpp"
  #include "armadillo_bits/op_cond_bones.hpp"
  #include "armadillo_bits/op_rcond_bones.hpp"
  #include "armadillo_bits/op_powmat_bones.hpp"
  #include "armadillo_bits/op_rank_bones.hpp"
  #include "armadillo_bits/op_row_as_mat_bones.hpp"
  #include "armadillo_bits/op_col_as_mat_bones.hpp"
  #include "armadillo_bits/op_accu_bones.hpp"
  #include "armadillo_bits/op_sp_plus_bones.hpp"
  #include "armadillo_bits/op_sp_minus_bones.hpp"
  #include "armadillo_bits/op_sp_sum_bones.hpp"
  #include "armadillo_bits/op_sp_max_bones.hpp"
  #include "armadillo_bits/op_sp_min_bones.hpp"
  #include "armadillo_bits/op_sp_mean_bones.hpp"
  #include "armadillo_bits/op_sp_var_bones.hpp"
  #include "armadillo_bits/op_sp_stddev_bones.hpp"
  #include "armadillo_bits/op_sp_vecnorm_bones.hpp"
  #include "armadillo_bits/op_sp_diagvec_bones.hpp"
  #include "armadillo_bits/op_sp_nonzeros_bones.hpp"
  #include "armadillo_bits/op_sp_as_dense_bones.hpp"
  
  #include "armadillo_bits/glue_times_bones.hpp"
  #include "armadillo_bits/glue_times_misc_bones.hpp"
  #include "armadillo_bits/glue_mixed_bones.hpp"
  #include "armadillo_bits/glue_cov_bones.hpp"
  #include "armadillo_bits/glue_cor_bones.hpp"
  #include "armadillo_bits/glue_kron_bones.hpp"
  #include "armadillo_bits/glue_cross_bones.hpp"
  #include "armadillo_bits/glue_join_bones.hpp"
  #include "armadillo_bits/glue_relational_bones.hpp"
  #include "armadillo_bits/glue_solve_bones.hpp"
  #include "armadillo_bits/glue_conv_bones.hpp"
  #include "armadillo_bits/glue_toeplitz_bones.hpp"
  #include "armadillo_bits/glue_hist_bones.hpp"
  #include "armadillo_bits/glue_histc_bones.hpp"
  #include "armadillo_bits/glue_max_bones.hpp"
  #include "armadillo_bits/glue_min_bones.hpp"
  #include "armadillo_bits/glue_trapz_bones.hpp"
  #include "armadillo_bits/glue_atan2_bones.hpp"
  #include "armadillo_bits/glue_hypot_bones.hpp"
  #include "armadillo_bits/glue_polyfit_bones.hpp"
  #include "armadillo_bits/glue_polyval_bones.hpp"
  #include "armadillo_bits/glue_intersect_bones.hpp"
  #include "armadillo_bits/glue_affmul_bones.hpp"
  #include "armadillo_bits/glue_mvnrnd_bones.hpp"
  #include "armadillo_bits/glue_quantile_bones.hpp"
  #include "armadillo_bits/glue_powext_bones.hpp"
  
  #include "armadillo_bits/gmm_misc_bones.hpp"
  #include "armadillo_bits/gmm_diag_bones.hpp"
  #include "armadillo_bits/gmm_full_bones.hpp"
  
  #include "armadillo_bits/spop_strans_bones.hpp"
  #include "armadillo_bits/spop_htrans_bones.hpp"
  #include "armadillo_bits/spop_misc_bones.hpp"
  #include "armadillo_bits/spop_diagmat_bones.hpp"
  #include "armadillo_bits/spop_trimat_bones.hpp"
  #include "armadillo_bits/spop_symmat_bones.hpp"
  #include "armadillo_bits/spop_normalise_bones.hpp"
  #include "armadillo_bits/spop_reverse_bones.hpp"
  #include "armadillo_bits/spop_repmat_bones.hpp"
  #include "armadillo_bits/spop_vectorise_bones.hpp"
  #include "armadillo_bits/spop_norm_bones.hpp"
  #include "armadillo_bits/spop_circshift_bones.hpp"
  #include "armadillo_bits/spop_relational_bones.hpp"
  #include "armadillo_bits/spop_omit_bones.hpp"
  #include "armadillo_bits/spop_accu_bones.hpp"
  
  #include "armadillo_bits/spglue_plus_bones.hpp"
  #include "armadillo_bits/spglue_minus_bones.hpp"
  #include "armadillo_bits/spglue_schur_bones.hpp"
  #include "armadillo_bits/spglue_times_bones.hpp"
  #include "armadillo_bits/spglue_join_bones.hpp"
  #include "armadillo_bits/spglue_kron_bones.hpp"
  #include "armadillo_bits/spglue_min_bones.hpp"
  #include "armadillo_bits/spglue_max_bones.hpp"
  #include "armadillo_bits/spglue_merge_bones.hpp"
  #include "armadillo_bits/spglue_relational_bones.hpp"
  
  #include "armadillo_bits/spsolve_factoriser_bones.hpp"
  
  #if defined(ARMA_USE_NEWARP)
    #include "armadillo_bits/newarp_EigsSelect.hpp"
    #include "armadillo_bits/newarp_DenseGenMatProd_bones.hpp"
    #include "armadillo_bits/newarp_SparseGenMatProd_bones.hpp"
    #include "armadillo_bits/newarp_SparseGenRealShiftSolve_bones.hpp"
    #include "armadillo_bits/newarp_DoubleShiftQR_bones.hpp"
    #include "armadillo_bits/newarp_GenEigsSolver_bones.hpp"
    #include "armadillo_bits/newarp_SymEigsSolver_bones.hpp"
    #include "armadillo_bits/newarp_SymEigsShiftSolver_bones.hpp"
    #include "armadillo_bits/newarp_TridiagEigen_bones.hpp"
    #include "armadillo_bits/newarp_UpperHessenbergEigen_bones.hpp"
    #include "armadillo_bits/newarp_UpperHessenbergQR_bones.hpp"
  #endif
  
  
  //
  // low-level debugging and memory handling functions
  
  #include "armadillo_bits/debug.hpp"
  #include "armadillo_bits/memory.hpp"
  
  //
  // wrappers for various cmath functions
  
  #include "armadillo_bits/arma_cmath.hpp"
  
  //
  // classes that underlay metaprogramming 
  
  #include "armadillo_bits/unwrap.hpp"
  #include "armadillo_bits/unwrap_cube.hpp"
  #include "armadillo_bits/unwrap_spmat.hpp"
  
  #include "armadillo_bits/Proxy.hpp"
  #include "armadillo_bits/ProxyCube.hpp"
  #include "armadillo_bits/SpProxy.hpp"
  
  #include "armadillo_bits/diagmat_proxy.hpp"

  #include "armadillo_bits/strip.hpp"
  
  #include "armadillo_bits/eop_aux.hpp"
  
  //
  // ostream
  
  #include "armadillo_bits/arma_ostream_bones.hpp"
  #include "armadillo_bits/arma_ostream_meat.hpp"
  
  //
  // n_unique, which is used by some sparse operators

  #include "armadillo_bits/fn_n_unique.hpp"
  
  //
  // operators
  
  #include "armadillo_bits/operator_plus.hpp"
  #include "armadillo_bits/operator_minus.hpp"
  #include "armadillo_bits/operator_times.hpp"
  #include "armadillo_bits/operator_schur.hpp"
  #include "armadillo_bits/operator_div.hpp"
  #include "armadillo_bits/operator_relational.hpp"
  
  #include "armadillo_bits/operator_cube_plus.hpp"
  #include "armadillo_bits/operator_cube_minus.hpp"
  #include "armadillo_bits/operator_cube_times.hpp"
  #include "armadillo_bits/operator_cube_schur.hpp"
  #include "armadillo_bits/operator_cube_div.hpp"
  #include "armadillo_bits/operator_cube_relational.hpp"
  
  #include "armadillo_bits/operator_ostream.hpp"
  
  //
  // user accessible functions
  
  // the order of the fn_*.hpp include files matters,
  // as some files require functionality given in preceding files
  
  #include "armadillo_bits/fn_conv_to.hpp"
  #include "armadillo_bits/fn_max.hpp"
  #include "armadillo_bits/fn_min.hpp"
  #include "armadillo_bits/fn_index_max.hpp"
  #include "armadillo_bits/fn_index_min.hpp"
  #include "armadillo_bits/fn_accu.hpp"
  #include "armadillo_bits/fn_sum.hpp"
  #include "armadillo_bits/fn_diagmat.hpp"
  #include "armadillo_bits/fn_diagvec.hpp"
  #include "armadillo_bits/fn_inv.hpp"
  #include "armadillo_bits/fn_inv_sympd.hpp"
  #include "armadillo_bits/fn_trace.hpp"
  #include "armadillo_bits/fn_trans.hpp"
  #include "armadillo_bits/fn_det.hpp"
  #include "armadillo_bits/fn_log_det.hpp"
  #include "armadillo_bits/fn_eig_gen.hpp"
  #include "armadillo_bits/fn_eig_sym.hpp"
  #include "armadillo_bits/fn_eig_pair.hpp"
  #include "armadillo_bits/fn_lu.hpp"
  #include "armadillo_bits/fn_zeros.hpp"
  #include "armadillo_bits/fn_ones.hpp"
  #include "armadillo_bits/fn_eye.hpp"
  #include "armadillo_bits/fn_misc.hpp"
  #include "armadillo_bits/fn_orth_null.hpp"
  #include "armadillo_bits/fn_regspace.hpp"
  #include "armadillo_bits/fn_find.hpp"
  #include "armadillo_bits/fn_find_unique.hpp"
  #include "armadillo_bits/fn_elem.hpp"
  #include "armadillo_bits/fn_approx_equal.hpp"
  #include "armadillo_bits/fn_norm.hpp"
  #include "armadillo_bits/fn_vecnorm.hpp"
  #include "armadillo_bits/fn_dot.hpp"
  #include "armadillo_bits/fn_randu.hpp"
  #include "armadillo_bits/fn_randn.hpp"
  #include "armadillo_bits/fn_trig.hpp"
  #include "armadillo_bits/fn_mean.hpp"
  #include "armadillo_bits/fn_median.hpp"
  #include "armadillo_bits/fn_stddev.hpp"
  #include "armadillo_bits/fn_var.hpp"
  #include "armadillo_bits/fn_sort.hpp"
  #include "armadillo_bits/fn_sort_index.hpp"
  #include "armadillo_bits/fn_strans.hpp"
  #include "armadillo_bits/fn_chol.hpp"
  #include "armadillo_bits/fn_qr.hpp"
  #include "armadillo_bits/fn_svd.hpp"
  #include "armadillo_bits/fn_solve.hpp"
  #include "armadillo_bits/fn_repmat.hpp"
  #include "armadillo_bits/fn_repelem.hpp"
  #include "armadillo_bits/fn_reshape.hpp"
  #include "armadillo_bits/fn_vectorise.hpp"
  #include "armadillo_bits/fn_resize.hpp"
  #include "armadillo_bits/fn_cov.hpp"
  #include "armadillo_bits/fn_cor.hpp"
  #include "armadillo_bits/fn_circshift.hpp"
  #include "armadillo_bits/fn_shuffle.hpp"
  #include "armadillo_bits/fn_prod.hpp"
  #include "armadillo_bits/fn_pinv.hpp"
  #include "armadillo_bits/fn_rank.hpp"
  #include "armadillo_bits/fn_kron.hpp"
  #include "armadillo_bits/fn_flip.hpp"
  #include "armadillo_bits/fn_reverse.hpp"
  #include "armadillo_bits/fn_as_scalar.hpp"
  #include "armadillo_bits/fn_princomp.hpp"
  #include "armadillo_bits/fn_cross.hpp"
  #include "armadillo_bits/fn_join.hpp"
  #include "armadillo_bits/fn_conv.hpp"
  #include "armadillo_bits/fn_trunc_exp.hpp"
  #include "armadillo_bits/fn_trunc_log.hpp"
  #include "armadillo_bits/fn_toeplitz.hpp"
  #include "armadillo_bits/fn_trimat.hpp"
  #include "armadillo_bits/fn_trimat_ind.hpp"
  #include "armadillo_bits/fn_cumsum.hpp"
  #include "armadillo_bits/fn_cumprod.hpp"
  #include "armadillo_bits/fn_symmat.hpp"
  #include "armadillo_bits/fn_sylvester.hpp"
  #include "armadillo_bits/fn_hist.hpp"
  #include "armadillo_bits/fn_histc.hpp"
  #include "armadillo_bits/fn_unique.hpp"
  #include "armadillo_bits/fn_fft.hpp"
  #include "armadillo_bits/fn_fft2.hpp"
  #include "armadillo_bits/fn_any.hpp"
  #include "armadillo_bits/fn_all.hpp"
  #include "armadillo_bits/fn_size.hpp"
  #include "armadillo_bits/fn_numel.hpp"
  #include "armadillo_bits/fn_inplace_strans.hpp"
  #include "armadillo_bits/fn_inplace_trans.hpp"
  #include "armadillo_bits/fn_randi.hpp"
  #include "armadillo_bits/fn_randg.hpp"
  #include "armadillo_bits/fn_rande.hpp"
  #include "armadillo_bits/fn_cond_rcond.hpp"
  #include "armadillo_bits/fn_normalise.hpp"
  #include "armadillo_bits/fn_clamp.hpp"
  #include "armadillo_bits/fn_expmat.hpp"
  #include "armadillo_bits/fn_nonzeros.hpp"
  #include "armadillo_bits/fn_omit.hpp"
  #include "armadillo_bits/fn_interp1.hpp"
  #include "armadillo_bits/fn_interp2.hpp"
  #include "armadillo_bits/fn_qz.hpp"
  #include "armadillo_bits/fn_diff.hpp"
  #include "armadillo_bits/fn_hess.hpp"
  #include "armadillo_bits/fn_schur.hpp"
  #include "armadillo_bits/fn_kmeans.hpp"
  #include "armadillo_bits/fn_sqrtmat.hpp"
  #include "armadillo_bits/fn_logmat.hpp"
  #include "armadillo_bits/fn_trapz.hpp"
  #include "armadillo_bits/fn_range.hpp"
  #include "armadillo_bits/fn_polyfit.hpp"
  #include "armadillo_bits/fn_polyval.hpp"
  #include "armadillo_bits/fn_intersect.hpp"
  #include "armadillo_bits/fn_normpdf.hpp"
  #include "armadillo_bits/fn_log_normpdf.hpp"
  #include "armadillo_bits/fn_normcdf.hpp"
  #include "armadillo_bits/fn_mvnrnd.hpp"
  #include "armadillo_bits/fn_chi2rnd.hpp"
  #include "armadillo_bits/fn_wishrnd.hpp"
  #include "armadillo_bits/fn_roots.hpp"
  #include "armadillo_bits/fn_randperm.hpp"
  #include "armadillo_bits/fn_quantile.hpp"
  #include "armadillo_bits/fn_powmat.hpp"
  #include "armadillo_bits/fn_powext.hpp"
  #include "armadillo_bits/fn_diags_spdiags.hpp"
  #include "armadillo_bits/fn_balance.hpp"
  
  #include "armadillo_bits/fn_speye.hpp"
  #include "armadillo_bits/fn_spones.hpp"
  #include "armadillo_bits/fn_sprandn.hpp"
  #include "armadillo_bits/fn_sprandu.hpp"
  #include "armadillo_bits/fn_eigs_sym.hpp"
  #include "armadillo_bits/fn_eigs_gen.hpp"
  #include "armadillo_bits/fn_spsolve.hpp"
  #include "armadillo_bits/fn_svds.hpp"
  
  //
  // misc stuff
  
  #include "armadillo_bits/hdf5_misc.hpp"
  #include "armadillo_bits/fft_engine_kissfft.hpp"
  #include "armadillo_bits/fft_engine_fftw3.hpp"
  #include "armadillo_bits/band_helper.hpp"
  #include "armadillo_bits/sym_helper.hpp"
  #include "armadillo_bits/trimat_helper.hpp"
  
  //
  // classes implementing various forms of dense matrix multiplication
  
  #include "armadillo_bits/mul_gemv.hpp"
  #include "armadillo_bits/mul_gemm.hpp"
  #include "armadillo_bits/mul_gemm_mixed.hpp"
  #include "armadillo_bits/mul_syrk.hpp"
  #include "armadillo_bits/mul_herk.hpp"
  
  //
  // class meat
  
  #include "armadillo_bits/Op_meat.hpp"
  #include "armadillo_bits/CubeToMatOp_meat.hpp"
  #include "armadillo_bits/OpCube_meat.hpp"
  #include "armadillo_bits/SpOp_meat.hpp"
  #include "armadillo_bits/SpToDOp_meat.hpp"
  
  #include "armadillo_bits/mtOp_meat.hpp"
  #include "armadillo_bits/mtOpCube_meat.hpp"
  #include "armadillo_bits/mtSpOp_meat.hpp"
  #include "armadillo_bits/mtSpReduceOp_meat.hpp"
  
  #include "armadillo_bits/Glue_meat.hpp"
  #include "armadillo_bits/GlueCube_meat.hpp"
  #include "armadillo_bits/SpGlue_meat.hpp"
  #include "armadillo_bits/mtSpGlue_meat.hpp"
  #include "armadillo_bits/SpToDGlue_meat.hpp"
  
  #include "armadillo_bits/eOp_meat.hpp"
  #include "armadillo_bits/eOpCube_meat.hpp"
  
  #include "armadillo_bits/eGlue_meat.hpp"
  #include "armadillo_bits/eGlueCube_meat.hpp"

  #include "armadillo_bits/mtGlue_meat.hpp"
  #include "armadillo_bits/mtGlueCube_meat.hpp"
  
  #include "armadillo_bits/Base_meat.hpp"
  #include "armadillo_bits/BaseCube_meat.hpp"
  #include "armadillo_bits/SpBase_meat.hpp"
  
  #include "armadillo_bits/Gen_meat.hpp"
  #include "armadillo_bits/GenCube_meat.hpp"
  
  #include "armadillo_bits/eop_core_meat.hpp"
  #include "armadillo_bits/eglue_core_meat.hpp"
  
  #include "armadillo_bits/arrayops_meat.hpp"
  #include "armadillo_bits/podarray_meat.hpp"
  #include "armadillo_bits/auxlib_meat.hpp"
  #include "armadillo_bits/sp_auxlib_meat.hpp"
  
  #include "armadillo_bits/injector_meat.hpp"
  
  #include "armadillo_bits/Mat_meat.hpp"
  #include "armadillo_bits/Col_meat.hpp"
  #include "armadillo_bits/Row_meat.hpp"
  #include "armadillo_bits/Cube_meat.hpp"
  #include "armadillo_bits/xvec_htrans_meat.hpp"
  #include "armadillo_bits/xtrans_mat_meat.hpp"
  #include "armadillo_bits/SizeMat_meat.hpp"
  #include "armadillo_bits/SizeCube_meat.hpp"
  
  #include "armadillo_bits/field_meat.hpp"
  #include "armadillo_bits/subview_meat.hpp"
  #include "armadillo_bits/subview_elem1_meat.hpp"
  #include "armadillo_bits/subview_elem2_meat.hpp"
  #include "armadillo_bits/subview_field_meat.hpp"
  #include "armadillo_bits/subview_cube_meat.hpp"
  #include "armadillo_bits/diagview_meat.hpp"
  #include "armadillo_bits/subview_each_meat.hpp"
  #include "armadillo_bits/subview_cube_each_meat.hpp"
  #include "armadillo_bits/subview_cube_slices_meat.hpp"

  #include "armadillo_bits/SpValProxy_meat.hpp"
  #include "armadillo_bits/SpMat_meat.hpp"
  #include "armadillo_bits/SpMat_iterators_meat.hpp"
  #include "armadillo_bits/SpCol_meat.hpp"
  #include "armadillo_bits/SpRow_meat.hpp"
  #include "armadillo_bits/SpSubview_meat.hpp"
  #include "armadillo_bits/SpSubview_iterators_meat.hpp"
  #include "armadillo_bits/SpSubview_col_list_meat.hpp"
  #include "armadillo_bits/spdiagview_meat.hpp"
  #include "armadillo_bits/MapMat_meat.hpp"
  
  #include "armadillo_bits/diskio_meat.hpp"
  #include "armadillo_bits/wall_clock_meat.hpp"
  #include "armadillo_bits/running_stat_meat.hpp"
  #include "armadillo_bits/running_stat_vec_meat.hpp"
  
  #include "armadillo_bits/op_diagmat_meat.hpp"
  #include "armadillo_bits/op_diagvec_meat.hpp"
  #include "armadillo_bits/op_dot_meat.hpp"
  #include "armadillo_bits/op_det_meat.hpp"
  #include "armadillo_bits/op_log_det_meat.hpp"
  #include "armadillo_bits/op_inv_gen_meat.hpp"
  #include "armadillo_bits/op_inv_spd_meat.hpp"
  #include "armadillo_bits/op_htrans_meat.hpp"
  #include "armadillo_bits/op_max_meat.hpp"
  #include "armadillo_bits/op_index_max_meat.hpp"
  #include "armadillo_bits/op_index_min_meat.hpp"
  #include "armadillo_bits/op_min_meat.hpp"
  #include "armadillo_bits/op_mean_meat.hpp"
  #include "armadillo_bits/op_median_meat.hpp"
  #include "armadillo_bits/op_sort_meat.hpp"
  #include "armadillo_bits/op_sort_index_meat.hpp"
  #include "armadillo_bits/op_sum_meat.hpp"
  #include "armadillo_bits/op_stddev_meat.hpp"
  #include "armadillo_bits/op_strans_meat.hpp"
  #include "armadillo_bits/op_var_meat.hpp"
  #include "armadillo_bits/op_repmat_meat.hpp"
  #include "armadillo_bits/op_repelem_meat.hpp"
  #include "armadillo_bits/op_reshape_meat.hpp"
  #include "armadillo_bits/op_vectorise_meat.hpp"
  #include "armadillo_bits/op_resize_meat.hpp"
  #include "armadillo_bits/op_cov_meat.hpp"
  #include "armadillo_bits/op_cor_meat.hpp"
  #include "armadillo_bits/op_circshift_meat.hpp"
  #include "armadillo_bits/op_shuffle_meat.hpp"
  #include "armadillo_bits/op_prod_meat.hpp"
  #include "armadillo_bits/op_pinv_meat.hpp"
  #include "armadillo_bits/op_dotext_meat.hpp"
  #include "armadillo_bits/op_flip_meat.hpp"
  #include "armadillo_bits/op_reverse_meat.hpp"
  #include "armadillo_bits/op_princomp_meat.hpp"
  #include "armadillo_bits/op_elem_meat.hpp"
  #include "armadillo_bits/op_orth_null_meat.hpp"
  #include "armadillo_bits/op_relational_meat.hpp"
  #include "armadillo_bits/op_find_meat.hpp"
  #include "armadillo_bits/op_find_unique_meat.hpp"
  #include "armadillo_bits/op_chol_meat.hpp"
  #include "armadillo_bits/op_cx_scalar_meat.hpp"
  #include "armadillo_bits/op_trimat_meat.hpp"
  #include "armadillo_bits/op_cumsum_meat.hpp"
  #include "armadillo_bits/op_cumprod_meat.hpp"
  #include "armadillo_bits/op_symmat_meat.hpp"
  #include "armadillo_bits/op_hist_meat.hpp"
  #include "armadillo_bits/op_unique_meat.hpp"
  #include "armadillo_bits/op_toeplitz_meat.hpp"
  #include "armadillo_bits/op_fft_meat.hpp"
  #include "armadillo_bits/op_any_meat.hpp"
  #include "armadillo_bits/op_all_meat.hpp"
  #include "armadillo_bits/op_normalise_meat.hpp"
  #include "armadillo_bits/op_clamp_meat.hpp"
  #include "armadillo_bits/op_expmat_meat.hpp"
  #include "armadillo_bits/op_nonzeros_meat.hpp"
  #include "armadillo_bits/op_omit_meat.hpp"
  #include "armadillo_bits/op_diff_meat.hpp"
  #include "armadillo_bits/op_norm_meat.hpp"
  #include "armadillo_bits/op_vecnorm_meat.hpp"
  #include "armadillo_bits/op_norm2est_meat.hpp"
  #include "armadillo_bits/op_sqrtmat_meat.hpp"
  #include "armadillo_bits/op_logmat_meat.hpp"
  #include "armadillo_bits/op_range_meat.hpp"
  #include "armadillo_bits/op_chi2rnd_meat.hpp"
  #include "armadillo_bits/op_wishrnd_meat.hpp"
  #include "armadillo_bits/op_roots_meat.hpp"
  #include "armadillo_bits/op_cond_meat.hpp"
  #include "armadillo_bits/op_rcond_meat.hpp"
  #include "armadillo_bits/op_powmat_meat.hpp"
  #include "armadillo_bits/op_rank_meat.hpp"
  #include "armadillo_bits/op_row_as_mat_meat.hpp"
  #include "armadillo_bits/op_col_as_mat_meat.hpp"
  #include "armadillo_bits/op_accu_meat.hpp"
  #include "armadillo_bits/op_sp_plus_meat.hpp"
  #include "armadillo_bits/op_sp_minus_meat.hpp"
  #include "armadillo_bits/op_sp_sum_meat.hpp"
  #include "armadillo_bits/op_sp_max_meat.hpp"
  #include "armadillo_bits/op_sp_min_meat.hpp"
  #include "armadillo_bits/op_sp_mean_meat.hpp"
  #include "armadillo_bits/op_sp_var_meat.hpp"
  #include "armadillo_bits/op_sp_stddev_meat.hpp"
  #include "armadillo_bits/op_sp_vecnorm_meat.hpp"
  #include "armadillo_bits/op_sp_diagvec_meat.hpp"
  #include "armadillo_bits/op_sp_nonzeros_meat.hpp"
  #include "armadillo_bits/op_sp_as_dense_meat.hpp"
  
  #include "armadillo_bits/glue_times_meat.hpp"
  #include "armadillo_bits/glue_times_misc_meat.hpp"
  #include "armadillo_bits/glue_mixed_meat.hpp"
  #include "armadillo_bits/glue_cov_meat.hpp"
  #include "armadillo_bits/glue_cor_meat.hpp"
  #include "armadillo_bits/glue_kron_meat.hpp"
  #include "armadillo_bits/glue_cross_meat.hpp"
  #include "armadillo_bits/glue_join_meat.hpp"
  #include "armadillo_bits/glue_relational_meat.hpp"
  #include "armadillo_bits/glue_solve_meat.hpp"
  #include "armadillo_bits/glue_conv_meat.hpp"
  #include "armadillo_bits/glue_toeplitz_meat.hpp"
  #include "armadillo_bits/glue_hist_meat.hpp"
  #include "armadillo_bits/glue_histc_meat.hpp"
  #include "armadillo_bits/glue_max_meat.hpp"
  #include "armadillo_bits/glue_min_meat.hpp"
  #include "armadillo_bits/glue_trapz_meat.hpp"
  #include "armadillo_bits/glue_atan2_meat.hpp"
  #include "armadillo_bits/glue_hypot_meat.hpp"
  #include "armadillo_bits/glue_polyfit_meat.hpp"
  #include "armadillo_bits/glue_polyval_meat.hpp"
  #include "armadillo_bits/glue_intersect_meat.hpp"
  #include "armadillo_bits/glue_affmul_meat.hpp"
  #include "armadillo_bits/glue_mvnrnd_meat.hpp"
  #include "armadillo_bits/glue_quantile_meat.hpp"
  #include "armadillo_bits/glue_powext_meat.hpp"
  
  #include "armadillo_bits/gmm_misc_meat.hpp"
  #include "armadillo_bits/gmm_diag_meat.hpp"
  #include "armadillo_bits/gmm_full_meat.hpp"
  
  #include "armadillo_bits/spop_strans_meat.hpp"
  #include "armadillo_bits/spop_htrans_meat.hpp"
  #include "armadillo_bits/spop_misc_meat.hpp"
  #include "armadillo_bits/spop_diagmat_meat.hpp"
  #include "armadillo_bits/spop_trimat_meat.hpp"
  #include "armadillo_bits/spop_symmat_meat.hpp"
  #include "armadillo_bits/spop_normalise_meat.hpp"
  #include "armadillo_bits/spop_reverse_meat.hpp"
  #include "armadillo_bits/spop_repmat_meat.hpp"
  #include "armadillo_bits/spop_vectorise_meat.hpp"
  #include "armadillo_bits/spop_norm_meat.hpp"
  #include "armadillo_bits/spop_circshift_meat.hpp"
  #include "armadillo_bits/spop_relational_meat.hpp"
  #include "armadillo_bits/spop_omit_meat.hpp"
  #include "armadillo_bits/spop_accu_meat.hpp"
  
  #include "armadillo_bits/spglue_plus_meat.hpp"
  #include "armadillo_bits/spglue_minus_meat.hpp"
  #include "armadillo_bits/spglue_schur_meat.hpp"
  #include "armadillo_bits/spglue_times_meat.hpp"
  #include "armadillo_bits/spglue_join_meat.hpp"
  #include "armadillo_bits/spglue_kron_meat.hpp"
  #include "armadillo_bits/spglue_min_meat.hpp"
  #include "armadillo_bits/spglue_max_meat.hpp"
  #include "armadillo_bits/spglue_merge_meat.hpp"
  #include "armadillo_bits/spglue_relational_meat.hpp"
  
  #include "armadillo_bits/spsolve_factoriser_meat.hpp"
  
  #if defined(ARMA_USE_NEWARP)
    #include "armadillo_bits/newarp_cx_attrib.hpp"
    #include "armadillo_bits/newarp_SortEigenvalue.hpp"
    #include "armadillo_bits/newarp_DenseGenMatProd_meat.hpp"
    #include "armadillo_bits/newarp_SparseGenMatProd_meat.hpp"
    #include "armadillo_bits/newarp_SparseGenRealShiftSolve_meat.hpp"
    #include "armadillo_bits/newarp_DoubleShiftQR_meat.hpp"
    #include "armadillo_bits/newarp_GenEigsSolver_meat.hpp"
    #include "armadillo_bits/newarp_SymEigsSolver_meat.hpp"
    #include "armadillo_bits/newarp_SymEigsShiftSolver_meat.hpp"
    #include "armadillo_bits/newarp_TridiagEigen_meat.hpp"
    #include "armadillo_bits/newarp_UpperHessenbergEigen_meat.hpp"
    #include "armadillo_bits/newarp_UpperHessenbergQR_meat.hpp"
  #endif
  }



#include "armadillo_bits/compiler_setup_post.hpp"

#endif
