* installing *source* package ‘bvhar’ ... ** this is package ‘bvhar’ version ‘2.3.0’ ** package ‘bvhar’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: ‘Apple clang version 17.0.0 (clang-1700.6.3.2)’ using SDK: ‘MacOSX26.2.sdk’ clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -DEIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS -DBOOST_ENABLE_ASSERT_HANDLER -DUSE_RCPP -I'/Users/ripley/R/Library/BH/include' -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -I'/Users/ripley/R/Library/RcppSpdlog/include' -I'/Users/ripley/R/Library/RcppThread/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c RcppExports.cpp -o RcppExports.o In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:26: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCore:61: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable] 273 | Index count = 0; | ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseLU:35: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable] 78 | Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable] 79 | Index nsuper_et = 0; // Number of relaxed snodes in the original etree | ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable] 72 | Index replacements = 0; | ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:45: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable] 246 | int count = 0; | ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ In file included from RcppExports.cpp:5: In file included from /Users/ripley/R/Library/RcppThread/include/RcppThread.h:13: /Users/ripley/R/Library/RcppThread/include/RcppThread/ThreadPool.hpp:197:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 197 | int rem = nTasks % nBatches; | ~~~ ~~~~~~~^~~~~~~~~~ /Users/ripley/R/Library/RcppThread/include/RcppThread/ThreadPool.hpp:199:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 199 | int bs = sz + (rem-- > 0); | ~~ ~~~^~~~~~~~~~~~~ In file included from RcppExports.cpp:5: In file included from /Users/ripley/R/Library/RcppThread/include/RcppThread.h:15: /Users/ripley/R/Library/RcppThread/include/RcppThread/Progress.hpp:180:43: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 180 | msg << "\rComputing: " << makeBar(pct) << progressString(); | ~~~~~~~ ^~~ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:93:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_plain_dense>' requested here 93 | return eigen_wrap_plain_dense( obj, typename is_dense::type() ) ; | ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:110:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_is_plain>' requested here 110 | return eigen_wrap_is_plain( obj, | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:776:39: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap>' requested here 776 | return ::Rcpp::RcppEigen::eigen_wrap(object); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:787:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_eigen>' requested here 787 | return wrap_dispatch_eigen(object, typename traits::is_eigen_base::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:807:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_unknown_importable>' requested here 807 | return wrap_dispatch_unknown_importable(object, typename ::Rcpp::traits::is_importer::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap_end.h:30:25: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch>' requested here 30 | return internal::wrap_dispatch( object, typename ::Rcpp::traits::wrap_type_traits::wrap_category() ) ; | ^ RcppExports.cpp:143:29: note: in instantiation of function template specialization 'Rcpp::wrap>' requested here 143 | rcpp_result_gen = Rcpp::wrap(roll_bvar(y, lag, bayes_spec, include_mean, step, y_test, seed_forecast, nthreads)); | ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:93:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_plain_dense>' requested here 93 | return eigen_wrap_plain_dense( obj, typename is_dense::type() ) ; | ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:110:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_is_plain>' requested here 110 | return eigen_wrap_is_plain( obj, | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:776:39: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap>' requested here 776 | return ::Rcpp::RcppEigen::eigen_wrap(object); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:787:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_eigen>' requested here 787 | return wrap_dispatch_eigen(object, typename traits::is_eigen_base::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:807:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_unknown_importable>' requested here 807 | return wrap_dispatch_unknown_importable(object, typename ::Rcpp::traits::is_importer::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap_end.h:30:25: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch>' requested here 30 | return internal::wrap_dispatch( object, typename ::Rcpp::traits::wrap_type_traits::wrap_category() ) ; | ^ RcppExports.cpp:2201:29: note: in instantiation of function template specialization 'Rcpp::wrap>' requested here 2201 | rcpp_result_gen = Rcpp::wrap(compute_to_spillover(spillover)); | ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ 14 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -DEIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS -DBOOST_ENABLE_ASSERT_HANDLER -DUSE_RCPP -I'/Users/ripley/R/Library/BH/include' -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -I'/Users/ripley/R/Library/RcppSpdlog/include' -I'/Users/ripley/R/Library/RcppThread/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c mniw.cpp -o mniw.o In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:26: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCore:61: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable] 273 | Index count = 0; | ^ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseLU:35: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable] 78 | Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable] 79 | Index nsuper_et = 0; // Number of relaxed snodes in the original etree | ^ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/IterativeLinearSolvers:44: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h:163:54: warning: implicit conversion turns string literal into bool: 'const char[20]' to 'bool' [-Wstring-conversion] 163 | const FactorType& matrixL() const { eigen_assert("m_factorizationIsOk"); return m_L; } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/./eigen.h:8:9: note: expanded from macro 'eigen_assert' 8 | if (!(x)) { STOP("Eigen assertion failed: " #x); } | ~ ^ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/IterativeLinearSolvers:44: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h:166:53: warning: implicit conversion turns string literal into bool: 'const char[20]' to 'bool' [-Wstring-conversion] 166 | const VectorRx& scalingS() const { eigen_assert("m_factorizationIsOk"); return m_scale; } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/./eigen.h:8:9: note: expanded from macro 'eigen_assert' 8 | if (!(x)) { STOP("Eigen assertion failed: " #x); } | ~ ^ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/IterativeLinearSolvers:44: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h:169:64: warning: implicit conversion turns string literal into bool: 'const char[15]' to 'bool' [-Wstring-conversion] 169 | const PermutationType& permutationP() const { eigen_assert("m_analysisIsOk"); return m_perm; } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/./eigen.h:8:9: note: expanded from macro 'eigen_assert' 8 | if (!(x)) { STOP("Eigen assertion failed: " #x); } | ~ ^ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable] 72 | Index replacements = 0; | ^ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:45: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable] 246 | int count = 0; | ^ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././helper.h:4: ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:10:17: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 10 | int dim = sig.cols(); | ~~~ ~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:26:17: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 26 | int dim = sig.cols(); | ~~~ ~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:48:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 48 | int num_rows = mat_mean.rows(); | ~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:49:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 49 | int num_cols = mat_mean.cols(); | ~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:74:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 74 | int dim = mat_scale.cols(); | ~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:131:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 131 | int dim = mat_scale.cols(); | ~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:160:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 160 | int num_rows = mat_mean.rows(); | ~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:161:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 161 | int num_cols = mat_mean.cols(); | ~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:178:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 178 | int dim = mat_scale.cols(); | ~~~ ~~~~~~~~~~^~~~~~ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././helper.h:5: ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/structural.h:14:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 14 | int dim = coef_mat.cols(); | ~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/structural.h:15:28: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 15 | int dim_design = coef_mat.rows(); | ~~~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/structural.h:23:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 23 | int dim = coef_mat.cols(); | ~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/structural.h:24:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 24 | int dim_design = har_trans.cols(); | ~~~~~~~~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/structural.h:25:42: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 25 | int dim_exogen_design = coef_mat.rows() - har_trans.rows(); | ~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/structural.h:29:32: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 29 | int dim_har = coef_mat.rows() - dim_exogen_design; | ~~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/structural.h:60:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 60 | int dim = var_coef.cols(); // m | ~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/structural.h:87:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 87 | int dim = var_covmat.cols(); // num_rows = num_cols | ~~~ ~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/structural.h:106:20: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 106 | int dim = cov_mat.cols(); // dimension of time series | ~~~ ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/structural.h:118:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 118 | int dim = vhar_coef.cols(); // dimension of time series | ~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/structural.h:145:25: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 145 | int dim = vhar_covmat.cols(); // num_rows = num_cols | ~~~ ~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/structural.h:164:20: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 164 | int dim = cov_mat.cols(); // dimension of time series | ~~~ ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/structural.h:176:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 176 | int dim = cov_mat.cols(); | ~~~ ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/structural.h:178:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 178 | int step = vma_coef.rows() / dim; // h-step | ~~~~ ~~~~~~~~~~~~~~~~^~~~~ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:4: ../inst/include/bvhar/src/bayes/mniw/../misc/./coef_helper.h:35:16: warning: implicit conversion turns string literal into bool: 'const char[33]' to 'bool' [-Wstring-conversion] 35 | eigen_assert("LLT failed in precision sampler."); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/./eigen.h:8:9: note: expanded from macro 'eigen_assert' 8 | if (!(x)) { STOP("Eigen assertion failed: " #x); } | ~ ^ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:4: ../inst/include/bvhar/src/bayes/mniw/../misc/./coef_helper.h:19:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 19 | int dim = prior_mean.size(); | ~~~ ~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./coef_helper.h:96:32: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 96 | int num_design = ortho_latent.rows(); | ~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:5: ../inst/include/bvhar/src/bayes/mniw/../misc/./sv_helper.h:18:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 18 | int num_design = sv_vec.size(); // h_i1, ..., h_in for i = 1, .., k | ~~~~~~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./sv_helper.h:75:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 75 | int dim = init_sv.size(); | ~~~ ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./sv_helper.h:76:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 76 | int num_design = h1.rows(); | ~~~~~~~~~~ ~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./sv_helper.h:100:16: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 100 | int dim = h1.size(); | ~~~ ~~~^~~~~~ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:6: ../inst/include/bvhar/src/bayes/mniw/../misc/./minn_helper.h:112:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 112 | int num_coef = coef.size(); | ~~~~~~~~ ~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./minn_helper.h:157:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 157 | int num_coef = coef.size(); | ~~~~~~~~ ~~~~~^~~~~~ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:7: ../inst/include/bvhar/src/bayes/mniw/../misc/./ssvs_helper.h:32:32: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 32 | int num_latent = slab_weight.size(); | ~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./ssvs_helper.h:51:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 51 | int num_latent = param_obs.size(); | ~~~~~~~~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./ssvs_helper.h:70:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 70 | int num_grp = grp_id.size(); | ~~~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./ssvs_helper.h:71:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 71 | int num_latent = param_obs.size(); | ~~~~~~~~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./ssvs_helper.h:76:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 76 | mn_size = global_id.count(); | ~ ~~~~~~~~~~^~~~~~~ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:8: ../inst/include/bvhar/src/bayes/mniw/../misc/./hs_helper.h:18:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 18 | int dim = coef_vec.size(); | ~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./hs_helper.h:43:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 43 | int num_grp = grp_id.size(); | ~~~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./hs_helper.h:44:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 44 | int num_coef = coef_vec.size(); | ~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./hs_helper.h:49:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 49 | mn_size = global_id.count(); | ~ ~~~~~~~~~~^~~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./hs_helper.h:66:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 66 | int num_grp = grp_id.size(); | ~~~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./hs_helper.h:67:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 67 | int num_coef = coef_vec.size(); | ~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./hs_helper.h:72:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 72 | mn_size = group_id.count(); | ~ ~~~~~~~~~^~~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./hs_helper.h:91:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 91 | int dim = hyperparam.size(); | ~~~ ~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./hs_helper.h:111:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 111 | int dim = coef_vec.size(); | ~~~ ~~~~~~~~~^~~~~~ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:9: ../inst/include/bvhar/src/bayes/mniw/../misc/./ng_helper.h:87:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 87 | int num_grp = grp_id.size(); | ~~~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./ng_helper.h:88:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 88 | int num_coef = local_param.size(); | ~~~~~~~~ ~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./ng_helper.h:93:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 93 | mn_size = group_id.count(); | ~ ~~~~~~~~~^~~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./ng_helper.h:108:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 108 | int num_coef = local_param.size(); | ~~~~~~~~ ~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./ng_helper.h:132:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 132 | int num_coef = local_param.size(); | ~~~~~~~~ ~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./ng_helper.h:137:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 137 | mn_size = group_id.count(); | ~ ~~~~~~~~~^~~~~~~ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:10: ../inst/include/bvhar/src/bayes/mniw/../misc/./dl_helper.h:74:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 74 | mn_size = group_id.count(); | ~ ~~~~~~~~~^~~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./dl_helper.h:103:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 103 | mn_size = group_id.count(); | ~ ~~~~~~~~~^~~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./dl_helper.h:126:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 126 | int num_coef = local_param.size(); | ~~~~~~~~ ~~~~~~~~~~~~^~~~~~ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:11: ../inst/include/bvhar/src/bayes/mniw/../misc/./gdp_helper.h:45:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 45 | int num_coef = coef.size(); | ~~~~~~~~ ~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./gdp_helper.h:48:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 48 | mn_size = group_id.count(); | ~ ~~~~~~~~~^~~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./gdp_helper.h:65:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 65 | int num_coef = coef.size(); | ~~~~~~~~ ~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../misc/./gdp_helper.h:70:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 70 | int num_coef = coef.size(); | ~~~~~~~~ ~~~~~^~~~~~ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:6: ../inst/include/bvhar/src/bayes/mniw/../../math/design.h:9:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 9 | int num_design = y.rows() - var_lag; // s = n - p | ~~~~~~~~~~ ~~~~~~~~~^~~~~~~~~ ../inst/include/bvhar/src/bayes/mniw/../../math/design.h:10:15: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 10 | int dim = y.cols(); // m: dimension of the multivariate time series | ~~~ ~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../../math/design.h:19:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 19 | int num_design = y.rows() - var_lag; // s = n - p | ~~~~~~~~~~ ~~~~~~~~~^~~~~~~~~ ../inst/include/bvhar/src/bayes/mniw/../../math/design.h:20:15: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 20 | int dim = y.cols(); // m: dimension of the multivariate time series | ~~~ ~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../../math/design.h:36:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 36 | int x_dim = exogen.cols(); | ~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../../math/design.h:45:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 45 | int num_design = y.rows() - var_lag; // n = T - p | ~~~~~~~~~~ ~~~~~~~~~^~~~~~~~~ ../inst/include/bvhar/src/bayes/mniw/../../math/design.h:46:15: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 46 | int dim = y.cols(); | ~~~ ~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../../math/design.h:47:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 47 | int x_dim = exogen.cols(); | ~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../../math/design.h:103:19: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 103 | int dim = sigma.size(); | ~~~ ~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../../math/design.h:123:19: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 123 | int dim = sigma.size(); | ~~~ ~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/../../math/design.h:124:25: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 124 | int var_lag = lag_seq.size(); | ~~~~~~~ ~~~~~~~~^~~~~~ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: ../inst/include/bvhar/src/bayes/mniw/minnesota.h:155:16: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 155 | dim(response.cols()), num_design(response.rows()), dim_design(design.cols()), | ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/minnesota.h:155:45: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 155 | dim(response.cols()), num_design(response.rows()), dim_design(design.cols()), | ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/minnesota.h:155:72: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 155 | dim(response.cols()), num_design(response.rows()), dim_design(design.cols()), | ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/minnesota.h:156:26: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 156 | num_dummy(dummy_design.rows()), num_augment(num_design + num_dummy) { | ~~~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/minnesota.h:245:40: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 245 | num_iter(num_iter), dim(mn_fit._coef.cols()), dim_design(mn_fit._coef.rows()), | ~~~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/minnesota.h:245:73: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 245 | num_iter(num_iter), dim(mn_fit._coef.cols()), dim_design(mn_fit._coef.rows()), | ~~~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/minnesota.h:283:58: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 283 | : lag(lag), const_term(include_mean), data(y), dim(data.cols()) { | ~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/minnesota.h:325:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 325 | data(y), dim(data.cols()) { | ~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/minnesota.h:518:16: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 518 | dim(response.cols()), num_design(response.rows()), dim_design(design.cols()), | ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/minnesota.h:518:45: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 518 | dim(response.cols()), num_design(response.rows()), dim_design(design.cols()), | ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/mniw/minnesota.h:518:72: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 518 | dim(response.cols()), num_design(response.rows()), dim_design(design.cols()), | ~~~~~~~~^~~~~~ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:7: ../inst/include/bvhar/src/bayes/mniw/forecaster.h:23:62: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 23 | include_mean(include_mean), step(step), dim(posterior_mean.cols()), var_lag(ord), | ~~~~~~~~~~~~~~~~^~~~~~ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:8: ../inst/include/bvhar/src/bayes/mniw/spillover.h:19:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 19 | step(lag_max), dim(coef.cols()), | ~~~~~~^~~~~~ mniw.cpp:269:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 269 | int num_window = y.rows(); | ~~~~~~~~~~ ~~^~~~~~ mniw.cpp:270:15: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 270 | int dim = y.cols(); | ~~~ ~~^~~~~~ mniw.cpp:271:25: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 271 | int num_test = y_test.rows(); | ~~~~~~~~ ~~~~~~~^~~~~~ mniw.cpp:325:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 325 | int num_window = y.rows(); | ~~~~~~~~~~ ~~^~~~~~ mniw.cpp:326:15: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 326 | int dim = y.cols(); | ~~~ ~~^~~~~~ mniw.cpp:327:25: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 327 | int num_test = y_test.rows(); | ~~~~~~~~ ~~~~~~~^~~~~~ mniw.cpp:384:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 384 | int num_window = y.rows(); | ~~~~~~~~~~ ~~^~~~~~ mniw.cpp:385:15: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 385 | int dim = y.cols(); | ~~~ ~~^~~~~~ mniw.cpp:386:25: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 386 | int num_test = y_test.rows(); | ~~~~~~~~ ~~~~~~~^~~~~~ mniw.cpp:452:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 452 | int num_window = y.rows(); | ~~~~~~~~~~ ~~^~~~~~ mniw.cpp:453:15: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 453 | int dim = y.cols(); | ~~~ ~~^~~~~~ mniw.cpp:454:25: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 454 | int num_test = y_test.rows(); | ~~~~~~~~ ~~~~~~~^~~~~~ mniw.cpp:508:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 508 | int num_window = y.rows(); | ~~~~~~~~~~ ~~^~~~~~ mniw.cpp:509:15: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 509 | int dim = y.cols(); | ~~~ ~~^~~~~~ mniw.cpp:510:25: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 510 | int num_test = y_test.rows(); | ~~~~~~~~ ~~~~~~~^~~~~~ mniw.cpp:567:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 567 | int num_window = y.rows(); | ~~~~~~~~~~ ~~^~~~~~ mniw.cpp:568:15: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 568 | int dim = y.cols(); | ~~~ ~~^~~~~~ mniw.cpp:569:25: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 569 | int num_test = y_test.rows(); | ~~~~~~~~ ~~~~~~~^~~~~~ mniw.cpp:730:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 730 | int num_horizon = y.rows() - window + 1; // number of windows = T - win + 1 | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~ mniw.cpp:742:14: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 742 | int dim = y.cols(); | ~~~ ~~^~~~~~ mniw.cpp:865:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 865 | int num_horizon = y.rows() - window + 1; // number of windows = T - win + 1 | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~ mniw.cpp:869:14: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 869 | int dim = y.cols(); | ~~~ ~~^~~~~~ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:93:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_plain_dense>' requested here 93 | return eigen_wrap_plain_dense( obj, typename is_dense::type() ) ; | ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:110:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_is_plain>' requested here 110 | return eigen_wrap_is_plain( obj, | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:776:39: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap>' requested here 776 | return ::Rcpp::RcppEigen::eigen_wrap(object); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:787:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_eigen>' requested here 787 | return wrap_dispatch_eigen(object, typename traits::is_eigen_base::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:807:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_unknown_importable>' requested here 807 | return wrap_dispatch_unknown_importable(object, typename ::Rcpp::traits::is_importer::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap_end.h:30:25: note: (skipping 4 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 30 | return internal::wrap_dispatch( object, typename ::Rcpp::traits::wrap_type_traits::wrap_category() ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:512:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element__dispatch>>' requested here 512 | replace_element__dispatch( typename traits::is_named::type(), | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1169:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element>>' requested here 1169 | replace_element(it, names, index, t); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1146:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element_impl>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object, Rcpp::traits::named_object, Rcpp::traits::named_object, Rcpp::traits::named_object, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object, Rcpp::traits::named_object>, Rcpp::traits::named_object>>' requested here 1146 | replace_element_impl(it, names, index, t...); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1126:16: note: in instantiation of function template specialization 'Rcpp::Vector<19>::create__dispatch>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object, Rcpp::traits::named_object, Rcpp::traits::named_object, Rcpp::traits::named_object, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object, Rcpp::traits::named_object>, Rcpp::traits::named_object>>' requested here 1126 | return create__dispatch( typename traits::integral_constant::create>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object, Rcpp::traits::named_object, Rcpp::traits::named_object, Rcpp::traits::named_object, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object, Rcpp::traits::named_object>, Rcpp::traits::named_object>>' requested here 191 | return CREATE_LIST( | ^ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/././commondefs.h:44:39: note: expanded from macro 'CREATE_LIST' 44 | #define CREATE_LIST(...) Rcpp::List::create(__VA_ARGS__) | ^ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:93:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_plain_dense>' requested here 93 | return eigen_wrap_plain_dense( obj, typename is_dense::type() ) ; | ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:110:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_is_plain>' requested here 110 | return eigen_wrap_is_plain( obj, | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:776:39: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap>' requested here 776 | return ::Rcpp::RcppEigen::eigen_wrap(object); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:787:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_eigen>' requested here 787 | return wrap_dispatch_eigen(object, typename traits::is_eigen_base::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:807:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_unknown_importable>' requested here 807 | return wrap_dispatch_unknown_importable(object, typename ::Rcpp::traits::is_importer::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap_end.h:30:25: note: (skipping 4 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 30 | return internal::wrap_dispatch( object, typename ::Rcpp::traits::wrap_type_traits::wrap_category() ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:512:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element__dispatch>>' requested here 512 | replace_element__dispatch( typename traits::is_named::type(), | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1169:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element>>' requested here 1169 | replace_element(it, names, index, t); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1146:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element_impl>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>>' requested here 1146 | replace_element_impl(it, names, index, t...); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1126:16: note: in instantiation of function template specialization 'Rcpp::Vector<19>::create__dispatch>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>>' requested here 1126 | return create__dispatch( typename traits::integral_constant::create>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>>' requested here 471 | LIST res = CREATE_LIST( | ^ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/././commondefs.h:44:39: note: expanded from macro 'CREATE_LIST' 44 | #define CREATE_LIST(...) Rcpp::List::create(__VA_ARGS__) | ^ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:93:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_plain_dense>' requested here 93 | return eigen_wrap_plain_dense( obj, typename is_dense::type() ) ; | ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:110:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_is_plain>' requested here 110 | return eigen_wrap_is_plain( obj, | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:776:39: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap>' requested here 776 | return ::Rcpp::RcppEigen::eigen_wrap(object); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:787:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_eigen>' requested here 787 | return wrap_dispatch_eigen(object, typename traits::is_eigen_base::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:807:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_unknown_importable>' requested here 807 | return wrap_dispatch_unknown_importable(object, typename ::Rcpp::traits::is_importer::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap_end.h:30:25: note: (skipping 8 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 30 | return internal::wrap_dispatch( object, typename ::Rcpp::traits::wrap_type_traits::wrap_category() ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1170:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element_impl>, Rcpp::traits::named_object>, Rcpp::traits::named_object>>' requested here 1170 | replace_element_impl(++it, names, ++index, args...); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1170:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element_impl>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>>' requested here /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1146:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element_impl>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>>' requested here 1146 | replace_element_impl(it, names, index, t...); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1126:16: note: in instantiation of function template specialization 'Rcpp::Vector<19>::create__dispatch>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>>' requested here 1126 | return create__dispatch( typename traits::integral_constant::create>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>>' requested here 471 | LIST res = CREATE_LIST( | ^ ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/././commondefs.h:44:39: note: expanded from macro 'CREATE_LIST' 44 | #define CREATE_LIST(...) Rcpp::List::create(__VA_ARGS__) | ^ In file included from mniw.cpp:1: In file included from ../inst/include/bvhar/mniw:6: In file included from ../inst/include/bvhar/src/bayes/mniw/minnesota.h:5: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/mniw/../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ 121 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -DEIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS -DBOOST_ENABLE_ASSERT_HANDLER -DUSE_RCPP -I'/Users/ripley/R/Library/BH/include' -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -I'/Users/ripley/R/Library/RcppSpdlog/include' -I'/Users/ripley/R/Library/RcppThread/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c ols.cpp -o ols.o In file included from ols.cpp:1: In file included from ../inst/include/bvhar/ols:4: In file included from ../inst/include/bvhar/src/ols/ols.h:4: In file included from ../inst/include/bvhar/src/ols/../math/design.h:4: In file included from ../inst/include/bvhar/src/ols/../math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:26: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCore:61: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable] 273 | Index count = 0; | ^ In file included from ols.cpp:1: In file included from ../inst/include/bvhar/ols:4: In file included from ../inst/include/bvhar/src/ols/ols.h:4: In file included from ../inst/include/bvhar/src/ols/../math/design.h:4: In file included from ../inst/include/bvhar/src/ols/../math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseLU:35: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable] 78 | Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable] 79 | Index nsuper_et = 0; // Number of relaxed snodes in the original etree | ^ In file included from ols.cpp:1: In file included from ../inst/include/bvhar/ols:4: In file included from ../inst/include/bvhar/src/ols/ols.h:4: In file included from ../inst/include/bvhar/src/ols/../math/design.h:4: In file included from ../inst/include/bvhar/src/ols/../math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/IterativeLinearSolvers:44: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h:163:54: warning: implicit conversion turns string literal into bool: 'const char[20]' to 'bool' [-Wstring-conversion] 163 | const FactorType& matrixL() const { eigen_assert("m_factorizationIsOk"); return m_L; } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/ols/../math/../core/eigen.h:8:9: note: expanded from macro 'eigen_assert' 8 | if (!(x)) { STOP("Eigen assertion failed: " #x); } | ~ ^ In file included from ols.cpp:1: In file included from ../inst/include/bvhar/ols:4: In file included from ../inst/include/bvhar/src/ols/ols.h:4: In file included from ../inst/include/bvhar/src/ols/../math/design.h:4: In file included from ../inst/include/bvhar/src/ols/../math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/IterativeLinearSolvers:44: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h:166:53: warning: implicit conversion turns string literal into bool: 'const char[20]' to 'bool' [-Wstring-conversion] 166 | const VectorRx& scalingS() const { eigen_assert("m_factorizationIsOk"); return m_scale; } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/ols/../math/../core/eigen.h:8:9: note: expanded from macro 'eigen_assert' 8 | if (!(x)) { STOP("Eigen assertion failed: " #x); } | ~ ^ In file included from ols.cpp:1: In file included from ../inst/include/bvhar/ols:4: In file included from ../inst/include/bvhar/src/ols/ols.h:4: In file included from ../inst/include/bvhar/src/ols/../math/design.h:4: In file included from ../inst/include/bvhar/src/ols/../math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/IterativeLinearSolvers:44: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h:169:64: warning: implicit conversion turns string literal into bool: 'const char[15]' to 'bool' [-Wstring-conversion] 169 | const PermutationType& permutationP() const { eigen_assert("m_analysisIsOk"); return m_perm; } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/ols/../math/../core/eigen.h:8:9: note: expanded from macro 'eigen_assert' 8 | if (!(x)) { STOP("Eigen assertion failed: " #x); } | ~ ^ In file included from ols.cpp:1: In file included from ../inst/include/bvhar/ols:4: In file included from ../inst/include/bvhar/src/ols/ols.h:4: In file included from ../inst/include/bvhar/src/ols/../math/design.h:4: In file included from ../inst/include/bvhar/src/ols/../math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable] 72 | Index replacements = 0; | ^ In file included from ols.cpp:1: In file included from ../inst/include/bvhar/ols:4: In file included from ../inst/include/bvhar/src/ols/ols.h:4: In file included from ../inst/include/bvhar/src/ols/../math/design.h:4: In file included from ../inst/include/bvhar/src/ols/../math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:45: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable] 246 | int count = 0; | ^ In file included from ols.cpp:1: In file included from ../inst/include/bvhar/ols:4: In file included from ../inst/include/bvhar/src/ols/ols.h:4: In file included from ../inst/include/bvhar/src/ols/../math/design.h:4: In file included from ../inst/include/bvhar/src/ols/../math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ In file included from ols.cpp:1: In file included from ../inst/include/bvhar/ols:4: In file included from ../inst/include/bvhar/src/ols/ols.h:4: ../inst/include/bvhar/src/ols/../math/design.h:9:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 9 | int num_design = y.rows() - var_lag; // s = n - p | ~~~~~~~~~~ ~~~~~~~~~^~~~~~~~~ ../inst/include/bvhar/src/ols/../math/design.h:10:15: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 10 | int dim = y.cols(); // m: dimension of the multivariate time series | ~~~ ~~^~~~~~ ../inst/include/bvhar/src/ols/../math/design.h:19:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 19 | int num_design = y.rows() - var_lag; // s = n - p | ~~~~~~~~~~ ~~~~~~~~~^~~~~~~~~ ../inst/include/bvhar/src/ols/../math/design.h:20:15: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 20 | int dim = y.cols(); // m: dimension of the multivariate time series | ~~~ ~~^~~~~~ ../inst/include/bvhar/src/ols/../math/design.h:36:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 36 | int x_dim = exogen.cols(); | ~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/../math/design.h:45:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 45 | int num_design = y.rows() - var_lag; // n = T - p | ~~~~~~~~~~ ~~~~~~~~~^~~~~~~~~ ../inst/include/bvhar/src/ols/../math/design.h:46:15: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 46 | int dim = y.cols(); | ~~~ ~~^~~~~~ ../inst/include/bvhar/src/ols/../math/design.h:47:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 47 | int x_dim = exogen.cols(); | ~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/../math/design.h:103:19: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 103 | int dim = sigma.size(); | ~~~ ~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/../math/design.h:123:19: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 123 | int dim = sigma.size(); | ~~~ ~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/../math/design.h:124:25: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 124 | int var_lag = lag_seq.size(); | ~~~~~~~ ~~~~~~~~^~~~~~ In file included from ols.cpp:1: In file included from ../inst/include/bvhar/ols:4: ../inst/include/bvhar/src/ols/ols.h:32:40: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 32 | : OlsFit(coef_mat, ord), dim(coef_mat.cols()), _cov(cov_mat) {} | ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/ols.h:54:16: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 54 | dim(response.cols()), num_design(response.rows()), dim_design(design.cols()) { | ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/ols.h:54:45: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 54 | dim(response.cols()), num_design(response.rows()), dim_design(design.cols()) { | ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/ols.h:54:72: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 54 | dim(response.cols()), num_design(response.rows()), dim_design(design.cols()) { | ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/ols.h:232:42: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 232 | har_trans = bvhar::build_vhar(response.cols(), week, month, const_term); | ~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/ols.h:241:35: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 241 | har_trans = build_vhar(response.cols(), week, month, const_term); | ~~~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/ols.h:245:59: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 245 | int dim_design = include_mean ? month * response.cols() + 1 : month * response.cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~^~~ ../inst/include/bvhar/src/ols/ols.h:245:71: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 245 | int dim_design = include_mean ? month * response.cols() + 1 : month * response.cols(); | ~~~~~~~~~~ ~~~~~~^~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/ols/ols.h:246:52: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 246 | int dim_har = include_mean ? 3 * response.cols() + 1 : 3 * response.cols(); | ~~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ ../inst/include/bvhar/src/ols/ols.h:246:60: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 246 | int dim_har = include_mean ? 3 * response.cols() + 1 : 3 * response.cols(); | ~~~~~~~ ~~^~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/ols/ols.h:247:37: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 247 | int dim_exogen = (exogen_lag + 1) * exogen.cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from ols.cpp:1: In file included from ../inst/include/bvhar/ols:5: ../inst/include/bvhar/src/ols/forecaster.h:47:65: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 47 | coef_mat(fit._coef), include_mean(include_mean), dim(coef_mat.cols()), | ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/forecaster.h:57:65: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | coef_mat(fit._coef), include_mean(include_mean), dim(coef_mat.cols()), | ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/forecaster.h:158:55: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 158 | Eigen::MatrixXd har_trans = build_vhar(response_mat.cols(), week, month, include_mean); | ~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/forecaster.h:166:55: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 166 | Eigen::MatrixXd har_trans = build_vhar(response_mat.cols(), week, month, include_mean); | ~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/forecaster.h:189:10: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 189 | : dim(y.cols()), num_window(y.rows()), num_test(y_test.rows()), num_horizon(num_test - step + 1), step(step), | ~~~^~~~~~ ../inst/include/bvhar/src/ols/forecaster.h:189:32: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 189 | : dim(y.cols()), num_window(y.rows()), num_test(y_test.rows()), num_horizon(num_test - step + 1), step(step), | ~~~^~~~~~ ../inst/include/bvhar/src/ols/forecaster.h:189:57: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 189 | : dim(y.cols()), num_window(y.rows()), num_test(y_test.rows()), num_horizon(num_test - step + 1), step(step), | ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/forecaster.h:205:41: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 205 | int nrow_exogen = (*lag_exogen + 1) * roll_exogen_mat[window]->cols(); | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ols.cpp:1: In file included from ../inst/include/bvhar/ols:6: In file included from ../inst/include/bvhar/src/ols/spillover.h:5: ../inst/include/bvhar/src/ols/../math/structural.h:14:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 14 | int dim = coef_mat.cols(); | ~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/../math/structural.h:15:28: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 15 | int dim_design = coef_mat.rows(); | ~~~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/../math/structural.h:23:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 23 | int dim = coef_mat.cols(); | ~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/../math/structural.h:24:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 24 | int dim_design = har_trans.cols(); | ~~~~~~~~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/../math/structural.h:25:42: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 25 | int dim_exogen_design = coef_mat.rows() - har_trans.rows(); | ~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/ols/../math/structural.h:29:32: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 29 | int dim_har = coef_mat.rows() - dim_exogen_design; | ~~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/ols/../math/structural.h:60:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 60 | int dim = var_coef.cols(); // m | ~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/../math/structural.h:87:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 87 | int dim = var_covmat.cols(); // num_rows = num_cols | ~~~ ~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/../math/structural.h:106:20: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 106 | int dim = cov_mat.cols(); // dimension of time series | ~~~ ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/../math/structural.h:118:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 118 | int dim = vhar_coef.cols(); // dimension of time series | ~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/../math/structural.h:145:25: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 145 | int dim = vhar_covmat.cols(); // num_rows = num_cols | ~~~ ~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/../math/structural.h:164:20: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 164 | int dim = cov_mat.cols(); // dimension of time series | ~~~ ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/../math/structural.h:176:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 176 | int dim = cov_mat.cols(); | ~~~ ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/ols/../math/structural.h:178:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 178 | int step = vma_coef.rows() / dim; // h-step | ~~~~ ~~~~~~~~~~~~~~~~^~~~~ In file included from ols.cpp:1: In file included from ../inst/include/bvhar/ols:6: ../inst/include/bvhar/src/ols/spillover.h:151:34: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 151 | : num_horizon(y.rows() - window + 1), win_size(window), lag(lag), step(step), nthreads(nthreads), | ~~~~~~~~~~~~~~~~~~~^~~ ols.cpp:111:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 111 | int dim_design = coef_mat.rows(); // mp(+1) | ~~~~~~~~~~ ~~~~~~~~~^~~~~~ ols.cpp:153:26: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 153 | int num_har = coef_mat.rows(); // 3m(+1) | ~~~~~~~ ~~~~~~~~~^~~~~~ In file included from ols.cpp:1: In file included from ../inst/include/bvhar/ols:4: In file included from ../inst/include/bvhar/src/ols/ols.h:4: In file included from ../inst/include/bvhar/src/ols/../math/design.h:4: In file included from ../inst/include/bvhar/src/ols/../math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:93:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_plain_dense>' requested here 93 | return eigen_wrap_plain_dense( obj, typename is_dense::type() ) ; | ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:110:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_is_plain>' requested here 110 | return eigen_wrap_is_plain( obj, | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:776:39: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap>' requested here 776 | return ::Rcpp::RcppEigen::eigen_wrap(object); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:787:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_eigen>' requested here 787 | return wrap_dispatch_eigen(object, typename traits::is_eigen_base::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:807:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_unknown_importable>' requested here 807 | return wrap_dispatch_unknown_importable(object, typename ::Rcpp::traits::is_importer::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap_end.h:30:25: note: (skipping 4 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 30 | return internal::wrap_dispatch( object, typename ::Rcpp::traits::wrap_type_traits::wrap_category() ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:512:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element__dispatch>>' requested here 512 | replace_element__dispatch( typename traits::is_named::type(), | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1169:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element>>' requested here 1169 | replace_element(it, names, index, t); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1146:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element_impl>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object, Rcpp::traits::named_object, Rcpp::traits::named_object, Rcpp::traits::named_object>>' requested here 1146 | replace_element_impl(it, names, index, t...); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1126:16: note: in instantiation of function template specialization 'Rcpp::Vector<19>::create__dispatch>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object, Rcpp::traits::named_object, Rcpp::traits::named_object, Rcpp::traits::named_object>>' requested here 1126 | return create__dispatch( typename traits::integral_constant::create>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object, Rcpp::traits::named_object, Rcpp::traits::named_object, Rcpp::traits::named_object>>' requested here 75 | return CREATE_LIST( | ^ ../inst/include/bvhar/src/ols/../math/../core/./commondefs.h:44:39: note: expanded from macro 'CREATE_LIST' 44 | #define CREATE_LIST(...) Rcpp::List::create(__VA_ARGS__) | ^ In file included from ols.cpp:1: In file included from ../inst/include/bvhar/ols:4: In file included from ../inst/include/bvhar/src/ols/ols.h:4: In file included from ../inst/include/bvhar/src/ols/../math/design.h:4: In file included from ../inst/include/bvhar/src/ols/../math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:93:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_plain_dense>' requested here 93 | return eigen_wrap_plain_dense( obj, typename is_dense::type() ) ; | ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:110:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_is_plain>' requested here 110 | return eigen_wrap_is_plain( obj, | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:776:39: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap>' requested here 776 | return ::Rcpp::RcppEigen::eigen_wrap(object); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:787:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_eigen>' requested here 787 | return wrap_dispatch_eigen(object, typename traits::is_eigen_base::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:807:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_unknown_importable>' requested here 807 | return wrap_dispatch_unknown_importable(object, typename ::Rcpp::traits::is_importer::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap_end.h:30:25: note: (skipping 5 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 30 | return internal::wrap_dispatch( object, typename ::Rcpp::traits::wrap_type_traits::wrap_category() ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1169:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element>>' requested here 1169 | replace_element(it, names, index, t); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1170:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element_impl>, Rcpp::traits::named_object>, Rcpp::traits::named_object, Rcpp::traits::named_object, const Eigen::Matrix, const Eigen::Matrix>>, Rcpp::traits::named_object>>' requested here 1170 | replace_element_impl(++it, names, ++index, args...); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1146:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element_impl>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object, Rcpp::traits::named_object, const Eigen::Matrix, const Eigen::Matrix>>, Rcpp::traits::named_object>>' requested here 1146 | replace_element_impl(it, names, index, t...); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1126:16: note: in instantiation of function template specialization 'Rcpp::Vector<19>::create__dispatch>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object, Rcpp::traits::named_object, const Eigen::Matrix, const Eigen::Matrix>>, Rcpp::traits::named_object>>' requested here 1126 | return create__dispatch( typename traits::integral_constant::create>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object, Rcpp::traits::named_object, const Eigen::Matrix, const Eigen::Matrix>>, Rcpp::traits::named_object>>' requested here 49 | LIST res = CREATE_LIST( | ^ ../inst/include/bvhar/src/ols/../math/../core/./commondefs.h:44:39: note: expanded from macro 'CREATE_LIST' 44 | #define CREATE_LIST(...) Rcpp::List::create(__VA_ARGS__) | ^ In file included from ols.cpp:1: In file included from ../inst/include/bvhar/ols:4: In file included from ../inst/include/bvhar/src/ols/ols.h:4: In file included from ../inst/include/bvhar/src/ols/../math/design.h:4: In file included from ../inst/include/bvhar/src/ols/../math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ In file included from ols.cpp:1: In file included from ../inst/include/bvhar/ols:5: ../inst/include/bvhar/src/ols/forecaster.h:410:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 410 | int dim_exogen = (*lag_exogen + 1) * roll_exogen_mat[window]->cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/ols/forecaster.h:376:2: note: in instantiation of member function 'bvhar::VharOutforecastRun<>::buildDesign' requested here 376 | VharOutforecastRun( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::VharOutforecastRun<>::VharOutforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ols.cpp:291:25: note: in instantiation of function template specialization 'std::make_unique, Eigen::Matrix &, int &, int &, bool &, int &, Eigen::Matrix &, int &, int &, 0>' requested here 291 | auto forecaster = std::make_unique>( | ^ In file included from ols.cpp:1: In file included from ../inst/include/bvhar/ols:5: ../inst/include/bvhar/src/ols/forecaster.h:410:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 410 | int dim_exogen = (*lag_exogen + 1) * roll_exogen_mat[window]->cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/ols/forecaster.h:376:2: note: in instantiation of member function 'bvhar::VharOutforecastRun::buildDesign' requested here 376 | VharOutforecastRun( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::VharOutforecastRun::VharOutforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ols.cpp:362:25: note: in instantiation of function template specialization 'std::make_unique, Eigen::Matrix &, int &, int &, bool &, int &, Eigen::Matrix &, int &, int &, 0>' requested here 362 | auto forecaster = std::make_unique>( | ^ In file included from ols.cpp:1: In file included from ../inst/include/bvhar/ols:6: ../inst/include/bvhar/src/ols/spillover.h:182:29: warning: private field 'lag' is not used [-Wunused-private-field] 182 | int num_horizon, win_size, lag, step, nthreads; | ^ ../inst/include/bvhar/src/ols/spillover.h:182:40: warning: private field 'nthreads' is not used [-Wunused-private-field] 182 | int num_horizon, win_size, lag, step, nthreads; | ^ clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -DEIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS -DBOOST_ENABLE_ASSERT_HANDLER -DUSE_RCPP -I'/Users/ripley/R/Library/BH/include' -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -I'/Users/ripley/R/Library/RcppSpdlog/include' -I'/Users/ripley/R/Library/RcppThread/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c triangular.cpp -o triangular.o In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:26: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCore:61: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable] 273 | Index count = 0; | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseLU:35: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable] 78 | Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable] 79 | Index nsuper_et = 0; // Number of relaxed snodes in the original etree | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/IterativeLinearSolvers:44: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h:163:54: warning: implicit conversion turns string literal into bool: 'const char[20]' to 'bool' [-Wstring-conversion] 163 | const FactorType& matrixL() const { eigen_assert("m_factorizationIsOk"); return m_L; } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/./eigen.h:8:9: note: expanded from macro 'eigen_assert' 8 | if (!(x)) { STOP("Eigen assertion failed: " #x); } | ~ ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/IterativeLinearSolvers:44: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h:166:53: warning: implicit conversion turns string literal into bool: 'const char[20]' to 'bool' [-Wstring-conversion] 166 | const VectorRx& scalingS() const { eigen_assert("m_factorizationIsOk"); return m_scale; } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/./eigen.h:8:9: note: expanded from macro 'eigen_assert' 8 | if (!(x)) { STOP("Eigen assertion failed: " #x); } | ~ ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/IterativeLinearSolvers:44: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h:169:64: warning: implicit conversion turns string literal into bool: 'const char[15]' to 'bool' [-Wstring-conversion] 169 | const PermutationType& permutationP() const { eigen_assert("m_analysisIsOk"); return m_perm; } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/./eigen.h:8:9: note: expanded from macro 'eigen_assert' 8 | if (!(x)) { STOP("Eigen assertion failed: " #x); } | ~ ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable] 72 | Index replacements = 0; | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:45: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable] 246 | int count = 0; | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././helper.h:4: ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:10:17: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 10 | int dim = sig.cols(); | ~~~ ~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:26:17: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 26 | int dim = sig.cols(); | ~~~ ~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:48:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 48 | int num_rows = mat_mean.rows(); | ~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:49:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 49 | int num_cols = mat_mean.cols(); | ~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:74:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 74 | int dim = mat_scale.cols(); | ~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:131:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 131 | int dim = mat_scale.cols(); | ~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:160:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 160 | int num_rows = mat_mean.rows(); | ~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:161:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 161 | int num_cols = mat_mean.cols(); | ~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:178:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 178 | int dim = mat_scale.cols(); | ~~~ ~~~~~~~~~~^~~~~~ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././helper.h:5: ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/structural.h:14:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 14 | int dim = coef_mat.cols(); | ~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/structural.h:15:28: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 15 | int dim_design = coef_mat.rows(); | ~~~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/structural.h:23:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 23 | int dim = coef_mat.cols(); | ~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/structural.h:24:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 24 | int dim_design = har_trans.cols(); | ~~~~~~~~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/structural.h:25:42: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 25 | int dim_exogen_design = coef_mat.rows() - har_trans.rows(); | ~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/structural.h:29:32: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 29 | int dim_har = coef_mat.rows() - dim_exogen_design; | ~~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/structural.h:60:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 60 | int dim = var_coef.cols(); // m | ~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/structural.h:87:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 87 | int dim = var_covmat.cols(); // num_rows = num_cols | ~~~ ~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/structural.h:106:20: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 106 | int dim = cov_mat.cols(); // dimension of time series | ~~~ ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/structural.h:118:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 118 | int dim = vhar_coef.cols(); // dimension of time series | ~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/structural.h:145:25: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 145 | int dim = vhar_covmat.cols(); // num_rows = num_cols | ~~~ ~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/structural.h:164:20: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 164 | int dim = cov_mat.cols(); // dimension of time series | ~~~ ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/structural.h:176:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 176 | int dim = cov_mat.cols(); | ~~~ ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/structural.h:178:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 178 | int step = vma_coef.rows() / dim; // h-step | ~~~~ ~~~~~~~~~~~~~~~~^~~~~ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:35:16: warning: implicit conversion turns string literal into bool: 'const char[33]' to 'bool' [-Wstring-conversion] 35 | eigen_assert("LLT failed in precision sampler."); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/./eigen.h:8:9: note: expanded from macro 'eigen_assert' 8 | if (!(x)) { STOP("Eigen assertion failed: " #x); } | ~ ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:19:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 19 | int dim = prior_mean.size(); | ~~~ ~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:96:32: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 96 | int num_design = ortho_latent.rows(); | ~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:5: ../inst/include/bvhar/src/bayes/triangular/./../misc/./sv_helper.h:18:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 18 | int num_design = sv_vec.size(); // h_i1, ..., h_in for i = 1, .., k | ~~~~~~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./sv_helper.h:75:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 75 | int dim = init_sv.size(); | ~~~ ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./sv_helper.h:76:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 76 | int num_design = h1.rows(); | ~~~~~~~~~~ ~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./sv_helper.h:100:16: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 100 | int dim = h1.size(); | ~~~ ~~~^~~~~~ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:6: ../inst/include/bvhar/src/bayes/triangular/./../misc/./minn_helper.h:112:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 112 | int num_coef = coef.size(); | ~~~~~~~~ ~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./minn_helper.h:157:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 157 | int num_coef = coef.size(); | ~~~~~~~~ ~~~~~^~~~~~ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:7: ../inst/include/bvhar/src/bayes/triangular/./../misc/./ssvs_helper.h:32:32: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 32 | int num_latent = slab_weight.size(); | ~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./ssvs_helper.h:51:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 51 | int num_latent = param_obs.size(); | ~~~~~~~~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./ssvs_helper.h:70:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 70 | int num_grp = grp_id.size(); | ~~~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./ssvs_helper.h:71:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 71 | int num_latent = param_obs.size(); | ~~~~~~~~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./ssvs_helper.h:76:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 76 | mn_size = global_id.count(); | ~ ~~~~~~~~~~^~~~~~~ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:8: ../inst/include/bvhar/src/bayes/triangular/./../misc/./hs_helper.h:18:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 18 | int dim = coef_vec.size(); | ~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./hs_helper.h:43:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 43 | int num_grp = grp_id.size(); | ~~~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./hs_helper.h:44:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 44 | int num_coef = coef_vec.size(); | ~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./hs_helper.h:49:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 49 | mn_size = global_id.count(); | ~ ~~~~~~~~~~^~~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./hs_helper.h:66:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 66 | int num_grp = grp_id.size(); | ~~~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./hs_helper.h:67:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 67 | int num_coef = coef_vec.size(); | ~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./hs_helper.h:72:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 72 | mn_size = group_id.count(); | ~ ~~~~~~~~~^~~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./hs_helper.h:91:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 91 | int dim = hyperparam.size(); | ~~~ ~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./hs_helper.h:111:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 111 | int dim = coef_vec.size(); | ~~~ ~~~~~~~~~^~~~~~ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:9: ../inst/include/bvhar/src/bayes/triangular/./../misc/./ng_helper.h:87:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 87 | int num_grp = grp_id.size(); | ~~~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./ng_helper.h:88:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 88 | int num_coef = local_param.size(); | ~~~~~~~~ ~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./ng_helper.h:93:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 93 | mn_size = group_id.count(); | ~ ~~~~~~~~~^~~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./ng_helper.h:108:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 108 | int num_coef = local_param.size(); | ~~~~~~~~ ~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./ng_helper.h:132:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 132 | int num_coef = local_param.size(); | ~~~~~~~~ ~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./ng_helper.h:137:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 137 | mn_size = group_id.count(); | ~ ~~~~~~~~~^~~~~~~ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:10: ../inst/include/bvhar/src/bayes/triangular/./../misc/./dl_helper.h:74:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 74 | mn_size = group_id.count(); | ~ ~~~~~~~~~^~~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./dl_helper.h:103:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 103 | mn_size = group_id.count(); | ~ ~~~~~~~~~^~~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./dl_helper.h:126:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 126 | int num_coef = local_param.size(); | ~~~~~~~~ ~~~~~~~~~~~~^~~~~~ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:11: ../inst/include/bvhar/src/bayes/triangular/./../misc/./gdp_helper.h:45:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 45 | int num_coef = coef.size(); | ~~~~~~~~ ~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./gdp_helper.h:48:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 48 | mn_size = group_id.count(); | ~ ~~~~~~~~~^~~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./gdp_helper.h:65:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 65 | int num_coef = coef.size(); | ~~~~~~~~ ~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../misc/./gdp_helper.h:70:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 70 | int num_coef = coef.size(); | ~~~~~~~~ ~~~~~^~~~~~ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:11: ../inst/include/bvhar/src/bayes/triangular/./../bayes.h:139:26: error: use of undeclared identifier 'fmt' 139 | std::string log_name = fmt::format("Chain {}", chain + 1); | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:12: ../inst/include/bvhar/src/bayes/triangular/./../../math/design.h:9:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 9 | int num_design = y.rows() - var_lag; // s = n - p | ~~~~~~~~~~ ~~~~~~~~~^~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../../math/design.h:10:15: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 10 | int dim = y.cols(); // m: dimension of the multivariate time series | ~~~ ~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../../math/design.h:19:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 19 | int num_design = y.rows() - var_lag; // s = n - p | ~~~~~~~~~~ ~~~~~~~~~^~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../../math/design.h:20:15: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 20 | int dim = y.cols(); // m: dimension of the multivariate time series | ~~~ ~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../../math/design.h:36:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 36 | int x_dim = exogen.cols(); | ~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../../math/design.h:45:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 45 | int num_design = y.rows() - var_lag; // n = T - p | ~~~~~~~~~~ ~~~~~~~~~^~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../../math/design.h:46:15: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 46 | int dim = y.cols(); | ~~~ ~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../../math/design.h:47:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 47 | int x_dim = exogen.cols(); | ~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../../math/design.h:103:19: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 103 | int dim = sigma.size(); | ~~~ ~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../../math/design.h:123:19: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 123 | int dim = sigma.size(); | ~~~ ~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./../../math/design.h:124:25: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 124 | int var_lag = lag_seq.size(); | ~~~~~~~ ~~~~~~~~^~~~~~ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: ../inst/include/bvhar/src/bayes/triangular/./config.h:59:10: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 59 | _dim(y.cols()), _dim_design(x.cols()), _num_design(y.rows()), | ~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./config.h:59:33: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 59 | _dim(y.cols()), _dim_design(x.cols()), _num_design(y.rows()), | ~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./config.h:59:56: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 59 | _dim(y.cols()), _dim_design(x.cols()), _num_design(y.rows()), | ~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./config.h:110:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 110 | int dim = params._y.cols(); | ~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./config.h:147:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 147 | int dim = params._y.cols(); | ~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./config.h:148:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 148 | int num_design = params._y.rows(); | ~~~~~~~~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./config.h:485:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 485 | return fac_record.cols(); | ~~~~~~ ~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./config.h:497:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 497 | int dim = fac_record.cols(); | ~~~ ~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./config.h:511:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 511 | int dim = fac_record.cols(); | ~~~ ~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./config.h:599:26: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 599 | return lvol_sig_record.cols(); | ~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./config.h:604:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 604 | int num_design = lvol_record.cols() / dim; | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~ ../inst/include/bvhar/src/bayes/triangular/./config.h:626:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 626 | int dim = lvol_sig_record.cols(); | ~~~ ~~~~~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/./config.h:642:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 642 | int dim = lvol_sig_record.cols(); | ~~~ ~~~~~~~~~~~~~~~~^~~~~~ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/../shrinkage/shrinkage.h:4: ../inst/include/bvhar/src/bayes/triangular/../shrinkage/./config.h:56:19: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | int dim = sigma.size(); | ~~~ ~~~~~~^~~~~~ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: ../inst/include/bvhar/src/bayes/triangular/triangular.h:43:92: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 43 | own_id(params._own_id), grp_id(params._grp_id), grp_vec(params._grp_vec), num_grp(grp_id.size()), | ~~~~~~~~^~~~~~ 65 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I../inst/include -DEIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS -DBOOST_ENABLE_ASSERT_HANDLER -DUSE_RCPP -I'/Users/ripley/R/Library/BH/include' -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -I'/Users/ripley/R/Library/RcppSpdlog/include' -I'/Users/ripley/R/Library/RcppThread/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c utils.cpp -o utils.o In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: In file included from ../inst/include/bvhar/src/bayes/triangular/forecaster.h:5: ../inst/include/bvhar/src/bayes/triangular/../forecaster.h:338:26: error: use of undeclared identifier 'fmt' 338 | std::string log_name = fmt::format("Chain {} / Window {}", chain + 1, window + 1); | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:31:31: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 31 | dim(dim), dim_exogen(exogen.cols()), nrow_exogen(dim_exogen * (lag + 1)), num_exogen(dim * nrow_exogen), | ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:74:99: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 74 | : BayesForecaster(step, response_mat, ord, records.coef_record.rows(), seed), | ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:76:16: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 76 | dim(response.cols()), | ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:78:32: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 78 | num_coef(records.coef_record.cols()), | ~~~~~~~~~~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:599:55: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 599 | Eigen::MatrixXd har_trans = build_vhar(response_mat.cols(), week, month, include_mean); | ~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:677:9: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 677 | dim(y.cols()), include_mean(include_mean), stable_filter(stable), sparse(sparse), sv(sv), level(level) { | ~~~^~~~~~ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:6: ../inst/include/bvhar/src/bayes/triangular/spillover.h:24:32: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 24 | num_coef(records.coef_record.cols()), num_sim(records.coef_record.rows()), | ~~~~~~~~~~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/spillover.h:24:69: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 24 | num_coef(records.coef_record.cols()), num_sim(records.coef_record.rows()), | ~~~~~~~~~~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/spillover.h:281:34: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 281 | : num_horizon(y.rows() - window + 1), win_size(window), lag(lag), step(step), | ~~~~~~~~~~~~~~~~~~~^~~ ../inst/include/bvhar/src/bayes/triangular/spillover.h:303:34: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 303 | : num_horizon(y.rows() - window + 1), win_size(window), lag(month), step(step), | ~~~~~~~~~~~~~~~~~~~^~~ ../inst/include/bvhar/src/bayes/triangular/spillover.h:311:26: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 311 | har_trans(build_vhar(y.cols(), week, month, include_mean)) { | ~~~~~~~~~~ ~~^~~~~~ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:28: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:1: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Core:330: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/products/GeneralBlockPanelKernel.h:2355:29: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 2355 | psize = pack = left & ~1; | ~ ~~~~~^~~~ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/products/TriangularSolverMatrix.h:162:13: note: in instantiation of member function 'Eigen::internal::gemm_pack_lhs, 6, 2, __attribute__((neon_vector_type(2))) double, 1>::operator()' requested here 162 | pack_lhs(blockA, tri.getSubMapper(startTarget,startBlock), actualPanelWidth, lengthTarget); | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/SolveTriangular.h:102:9: note: in instantiation of member function 'Eigen::internal::triangular_solve_matrix::run' requested here 102 | ::run(size, othersize, &actualLhs.coeffRef(0,0), actualLhs.outerStride(), &rhs.coeffRef(0,0), rhs.innerStride(), rhs.outerStride(), blocking); | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/SolveTriangular.h:182:18: note: in instantiation of member function 'Eigen::internal::triangular_solver_selector>, Eigen::Matrix, 1, 2>::run' requested here 182 | Side, Mode>::run(derived().nestedExpression(), otherCopy); | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/TriangularMatrix.h:522:14: note: in instantiation of function template specialization 'Eigen::TriangularViewImpl>, 2, Eigen::Dense>::solveInPlace<1, Eigen::Matrix>' requested here 522 | { return solveInPlace(other); } | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/TriangularMatrix.h:552:13: note: in instantiation of function template specialization 'Eigen::TriangularViewImpl>, 2, Eigen::Dense>::solveInPlace>' requested here 552 | this->solveInPlace(dst); | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/Solve.h:127:17: note: (skipping 7 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 127 | solve.dec()._solve_impl(solve.rhs(), m_result); | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:890:46: note: in instantiation of member function 'Eigen::internal::Assignment, Eigen::CwiseBinaryOp, const Eigen::Matrix, const Eigen::Solve>, 2>, Eigen::Product, Eigen::Matrix>>>, Eigen::internal::assign_op>::run' requested here 890 | Assignment::run(actualDst, src, func); | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:797:17: note: in instantiation of function template specialization 'Eigen::internal::call_assignment_no_alias, Eigen::CwiseBinaryOp, const Eigen::Matrix, const Eigen::Solve>, 2>, Eigen::Product, Eigen::Matrix>>>, Eigen::internal::assign_op>' requested here 797 | internal::call_assignment_no_alias(this->derived(), other.derived(), internal::assign_op()); | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:594:7: note: in instantiation of function template specialization 'Eigen::PlainObjectBase>::_set_noalias, const Eigen::Matrix, const Eigen::Solve>, 2>, Eigen::Product, Eigen::Matrix>>>>' requested here 594 | _set_noalias(other); | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/Matrix.h:423:9: note: in instantiation of function template specialization 'Eigen::PlainObjectBase>::PlainObjectBase, const Eigen::Matrix, const Eigen::Solve>, 2>, Eigen::Product, Eigen::Matrix>>>>' requested here 423 | : Base(other.derived()) | ^ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:59:10: note: in instantiation of function template specialization 'Eigen::Matrix::Matrix, const Eigen::Matrix, const Eigen::Solve>, 2>, Eigen::Product, Eigen::Matrix>>>>' requested here 59 | return mat_mean + mat_scale_u.llt().matrixU().solve(mat_norm * chol_scale_v); // M + LT^(-1) X U_v ~ MN(M, LT^(-1) L^(-1) = U, U_vT U_v = V) | ^ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:5: In file included from ../inst/include/bvhar/src/math/design.h:4: In file included from ../inst/include/bvhar/src/math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:26: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCore:61: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable] 273 | Index count = 0; | ^ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:5: In file included from ../inst/include/bvhar/src/math/design.h:4: In file included from ../inst/include/bvhar/src/math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseLU:35: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable] 78 | Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable] 79 | Index nsuper_et = 0; // Number of relaxed snodes in the original etree | ^ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:5: In file included from ../inst/include/bvhar/src/math/design.h:4: In file included from ../inst/include/bvhar/src/math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/IterativeLinearSolvers:44: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h:163:54: warning: implicit conversion turns string literal into bool: 'const char[20]' to 'bool' [-Wstring-conversion] 163 | const FactorType& matrixL() const { eigen_assert("m_factorizationIsOk"); return m_L; } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/math/../core/eigen.h:8:9: note: expanded from macro 'eigen_assert' 8 | if (!(x)) { STOP("Eigen assertion failed: " #x); } | ~ ^ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:5: In file included from ../inst/include/bvhar/src/math/design.h:4: In file included from ../inst/include/bvhar/src/math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/IterativeLinearSolvers:44: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h:166:53: warning: implicit conversion turns string literal into bool: 'const char[20]' to 'bool' [-Wstring-conversion] 166 | const VectorRx& scalingS() const { eigen_assert("m_factorizationIsOk"); return m_scale; } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/math/../core/eigen.h:8:9: note: expanded from macro 'eigen_assert' 8 | if (!(x)) { STOP("Eigen assertion failed: " #x); } | ~ ^ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:5: In file included from ../inst/include/bvhar/src/math/design.h:4: In file included from ../inst/include/bvhar/src/math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/IterativeLinearSolvers:44: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h:169:64: warning: implicit conversion turns string literal into bool: 'const char[15]' to 'bool' [-Wstring-conversion] 169 | const PermutationType& permutationP() const { eigen_assert("m_analysisIsOk"); return m_perm; } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/math/../core/eigen.h:8:9: note: expanded from macro 'eigen_assert' 8 | if (!(x)) { STOP("Eigen assertion failed: " #x); } | ~ ^ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:5: In file included from ../inst/include/bvhar/src/math/design.h:4: In file included from ../inst/include/bvhar/src/math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable] 72 | Index replacements = 0; | ^ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:5: In file included from ../inst/include/bvhar/src/math/design.h:4: In file included from ../inst/include/bvhar/src/math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:45: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable] 246 | int count = 0; | ^ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:5: In file included from ../inst/include/bvhar/src/math/design.h:4: In file included from ../inst/include/bvhar/src/math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:5: ../inst/include/bvhar/src/math/design.h:9:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 9 | int num_design = y.rows() - var_lag; // s = n - p | ~~~~~~~~~~ ~~~~~~~~~^~~~~~~~~ ../inst/include/bvhar/src/math/design.h:10:15: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 10 | int dim = y.cols(); // m: dimension of the multivariate time series | ~~~ ~~^~~~~~ ../inst/include/bvhar/src/math/design.h:19:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 19 | int num_design = y.rows() - var_lag; // s = n - p | ~~~~~~~~~~ ~~~~~~~~~^~~~~~~~~ ../inst/include/bvhar/src/math/design.h:20:15: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 20 | int dim = y.cols(); // m: dimension of the multivariate time series | ~~~ ~~^~~~~~ ../inst/include/bvhar/src/math/design.h:36:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 36 | int x_dim = exogen.cols(); | ~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/math/design.h:45:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 45 | int num_design = y.rows() - var_lag; // n = T - p | ~~~~~~~~~~ ~~~~~~~~~^~~~~~~~~ ../inst/include/bvhar/src/math/design.h:46:15: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 46 | int dim = y.cols(); | ~~~ ~~^~~~~~ ../inst/include/bvhar/src/math/design.h:47:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 47 | int x_dim = exogen.cols(); | ~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/math/design.h:103:19: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 103 | int dim = sigma.size(); | ~~~ ~~~~~~^~~~~~ ../inst/include/bvhar/src/math/design.h:123:19: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 123 | int dim = sigma.size(); | ~~~ ~~~~~~^~~~~~ ../inst/include/bvhar/src/math/design.h:124:25: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 124 | int var_lag = lag_seq.size(); | ~~~~~~~ ~~~~~~~~^~~~~~ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:6: ../inst/include/bvhar/src/math/structural.h:14:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 14 | int dim = coef_mat.cols(); | ~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/math/structural.h:15:28: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 15 | int dim_design = coef_mat.rows(); | ~~~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/math/structural.h:23:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 23 | int dim = coef_mat.cols(); | ~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/math/structural.h:24:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 24 | int dim_design = har_trans.cols(); | ~~~~~~~~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/math/structural.h:25:42: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 25 | int dim_exogen_design = coef_mat.rows() - har_trans.rows(); | ~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/math/structural.h:29:32: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 29 | int dim_har = coef_mat.rows() - dim_exogen_design; | ~~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/math/structural.h:60:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 60 | int dim = var_coef.cols(); // m | ~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/math/structural.h:87:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 87 | int dim = var_covmat.cols(); // num_rows = num_cols | ~~~ ~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/math/structural.h:106:20: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 106 | int dim = cov_mat.cols(); // dimension of time series | ~~~ ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/math/structural.h:118:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 118 | int dim = vhar_coef.cols(); // dimension of time series | ~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/math/structural.h:145:25: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 145 | int dim = vhar_covmat.cols(); // num_rows = num_cols | ~~~ ~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/math/structural.h:164:20: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 164 | int dim = cov_mat.cols(); // dimension of time series | ~~~ ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/math/structural.h:176:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 176 | int dim = cov_mat.cols(); | ~~~ ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/math/structural.h:178:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 178 | int step = vma_coef.rows() / dim; // h-step | ~~~~ ~~~~~~~~~~~~~~~~^~~~~ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:7: ../inst/include/bvhar/src/math/random.h:10:17: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 10 | int dim = sig.cols(); | ~~~ ~~~~^~~~~~ ../inst/include/bvhar/src/math/random.h:26:17: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 26 | int dim = sig.cols(); | ~~~ ~~~~^~~~~~ ../inst/include/bvhar/src/math/random.h:48:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 48 | int num_rows = mat_mean.rows(); | ~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/math/random.h:49:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 49 | int num_cols = mat_mean.cols(); | ~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/math/random.h:74:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 74 | int dim = mat_scale.cols(); | ~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/math/random.h:131:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 131 | int dim = mat_scale.cols(); | ~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/math/random.h:160:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 160 | int num_rows = mat_mean.rows(); | ~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/math/random.h:161:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 161 | int num_cols = mat_mean.cols(); | ~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/math/random.h:178:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 178 | int dim = mat_scale.cols(); | ~~~ ~~~~~~~~~~^~~~~~ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:8: In file included from ../inst/include/bvhar/src/bayes/misc/draw.h:4: ../inst/include/bvhar/src/bayes/misc/./coef_helper.h:35:16: warning: implicit conversion turns string literal into bool: 'const char[33]' to 'bool' [-Wstring-conversion] 35 | eigen_assert("LLT failed in precision sampler."); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/math/../core/eigen.h:8:9: note: expanded from macro 'eigen_assert' 8 | if (!(x)) { STOP("Eigen assertion failed: " #x); } | ~ ^ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:8: In file included from ../inst/include/bvhar/src/bayes/misc/draw.h:4: ../inst/include/bvhar/src/bayes/misc/./coef_helper.h:19:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 19 | int dim = prior_mean.size(); | ~~~ ~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./coef_helper.h:96:32: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 96 | int num_design = ortho_latent.rows(); | ~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:8: In file included from ../inst/include/bvhar/src/bayes/misc/draw.h:5: ../inst/include/bvhar/src/bayes/misc/./sv_helper.h:18:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 18 | int num_design = sv_vec.size(); // h_i1, ..., h_in for i = 1, .., k | ~~~~~~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./sv_helper.h:75:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 75 | int dim = init_sv.size(); | ~~~ ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./sv_helper.h:76:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 76 | int num_design = h1.rows(); | ~~~~~~~~~~ ~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./sv_helper.h:100:16: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 100 | int dim = h1.size(); | ~~~ ~~~^~~~~~ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:8: In file included from ../inst/include/bvhar/src/bayes/misc/draw.h:6: ../inst/include/bvhar/src/bayes/misc/./minn_helper.h:112:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 112 | int num_coef = coef.size(); | ~~~~~~~~ ~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./minn_helper.h:157:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 157 | int num_coef = coef.size(); | ~~~~~~~~ ~~~~~^~~~~~ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:8: In file included from ../inst/include/bvhar/src/bayes/misc/draw.h:7: ../inst/include/bvhar/src/bayes/misc/./ssvs_helper.h:32:32: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 32 | int num_latent = slab_weight.size(); | ~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./ssvs_helper.h:51:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 51 | int num_latent = param_obs.size(); | ~~~~~~~~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./ssvs_helper.h:70:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 70 | int num_grp = grp_id.size(); | ~~~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./ssvs_helper.h:71:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 71 | int num_latent = param_obs.size(); | ~~~~~~~~~~ ~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./ssvs_helper.h:76:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 76 | mn_size = global_id.count(); | ~ ~~~~~~~~~~^~~~~~~ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:8: In file included from ../inst/include/bvhar/src/bayes/misc/draw.h:8: ../inst/include/bvhar/src/bayes/misc/./hs_helper.h:18:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 18 | int dim = coef_vec.size(); | ~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./hs_helper.h:43:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 43 | int num_grp = grp_id.size(); | ~~~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./hs_helper.h:44:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 44 | int num_coef = coef_vec.size(); | ~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./hs_helper.h:49:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 49 | mn_size = global_id.count(); | ~ ~~~~~~~~~~^~~~~~~ ../inst/include/bvhar/src/bayes/misc/./hs_helper.h:66:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 66 | int num_grp = grp_id.size(); | ~~~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./hs_helper.h:67:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 67 | int num_coef = coef_vec.size(); | ~~~~~~~~ ~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./hs_helper.h:72:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 72 | mn_size = group_id.count(); | ~ ~~~~~~~~~^~~~~~~ ../inst/include/bvhar/src/bayes/misc/./hs_helper.h:91:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 91 | int dim = hyperparam.size(); | ~~~ ~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./hs_helper.h:111:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 111 | int dim = coef_vec.size(); | ~~~ ~~~~~~~~~^~~~~~ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:8: In file included from ../inst/include/bvhar/src/bayes/misc/draw.h:9: ../inst/include/bvhar/src/bayes/misc/./ng_helper.h:87:24: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 87 | int num_grp = grp_id.size(); | ~~~~~~~ ~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./ng_helper.h:88:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 88 | int num_coef = local_param.size(); | ~~~~~~~~ ~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./ng_helper.h:93:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 93 | mn_size = group_id.count(); | ~ ~~~~~~~~~^~~~~~~ ../inst/include/bvhar/src/bayes/misc/./ng_helper.h:108:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 108 | int num_coef = local_param.size(); | ~~~~~~~~ ~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./ng_helper.h:132:30: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 132 | int num_coef = local_param.size(); | ~~~~~~~~ ~~~~~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./ng_helper.h:137:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 137 | mn_size = group_id.count(); | ~ ~~~~~~~~~^~~~~~~ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:8: In file included from ../inst/include/bvhar/src/bayes/misc/draw.h:10: ../inst/include/bvhar/src/bayes/misc/./dl_helper.h:74:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 74 | mn_size = group_id.count(); | ~ ~~~~~~~~~^~~~~~~ ../inst/include/bvhar/src/bayes/misc/./dl_helper.h:103:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 103 | mn_size = group_id.count(); | ~ ~~~~~~~~~^~~~~~~ ../inst/include/bvhar/src/bayes/misc/./dl_helper.h:126:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 126 | int num_coef = local_param.size(); | ~~~~~~~~ ~~~~~~~~~~~~^~~~~~ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:8: In file included from ../inst/include/bvhar/src/bayes/misc/draw.h:11: ../inst/include/bvhar/src/bayes/misc/./gdp_helper.h:45:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 45 | int num_coef = coef.size(); | ~~~~~~~~ ~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./gdp_helper.h:48:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 48 | mn_size = group_id.count(); | ~ ~~~~~~~~~^~~~~~~ ../inst/include/bvhar/src/bayes/misc/./gdp_helper.h:65:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 65 | int num_coef = coef.size(); | ~~~~~~~~ ~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/misc/./gdp_helper.h:70:22: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 70 | int num_coef = coef.size(); | ~~~~~~~~ ~~~~~^~~~~~ utils.cpp:176:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 176 | int dim = y_dummy.cols(); // m | ~~~ ~~~~~~~~^~~~~~ utils.cpp:177:28: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 177 | int dim_design = x_dummy.cols(); // k | ~~~~~~~~~~ ~~~~~~~~^~~~~~ utils.cpp:181:49: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 181 | int prior_shape = x_dummy.rows() - dim_design + 2; | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ utils.cpp:203:17: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 203 | int dim = sig.cols(); | ~~~ ~~~~^~~~~~ utils.cpp:235:16: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 235 | int dim = sig.cols(); | ~~~ ~~~~^~~~~~ utils.cpp:258:17: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 258 | int dim = sig.cols(); | ~~~ ~~~~^~~~~~ utils.cpp:386:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 386 | int dim = sig_error.cols(); // m: dimension of time series | ~~~ ~~~~~~~~~~^~~~~~ utils.cpp:387:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 387 | int dim_design = var_coef.rows(); // k = mp + 1 (const) or mp (none) | ~~~~~~~~~~ ~~~~~~~~~^~~~~~ utils.cpp:443:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 443 | int dim = sig_error.cols(); | ~~~ ~~~~~~~~~~^~~~~~ utils.cpp:444:29: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 444 | int dim_design = var_coef.rows(); | ~~~~~~~~~~ ~~~~~~~~~^~~~~~ utils.cpp:501:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 501 | int dim = sig_error.cols(); // m: dimension of time series | ~~~ ~~~~~~~~~~^~~~~~ utils.cpp:502:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 502 | int num_har = vhar_coef.rows(); // 3m + 1 (const) or 3m (none) | ~~~~~~~ ~~~~~~~~~~^~~~~~ utils.cpp:575:23: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 575 | int dim = sig_error.cols(); // m: dimension of time series | ~~~ ~~~~~~~~~~^~~~~~ utils.cpp:576:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 576 | int num_har = vhar_coef.rows(); // 3m + 1 (const) or 3m (none) | ~~~~~~~ ~~~~~~~~~~^~~~~~ utils.cpp:901:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 901 | int dim = coef_mat.cols(); | ~~~ ~~~~~~~~~^~~~~~ utils.cpp:926:21: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 926 | int dim = coef_mat.cols(); | ~~~ ~~~~~~~~~^~~~~~ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:93:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_plain_dense>' requested here 93 | return eigen_wrap_plain_dense( obj, typename is_dense::type() ) ; | ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:99:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_is_plain>' requested here 99 | return eigen_wrap_is_plain( obj.eval(), Rcpp::traits::true_type() ) ; | ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:110:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_is_plain, -1, -1, true>>' requested here 110 | return eigen_wrap_is_plain( obj, | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:776:39: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap, -1, -1, true>>' requested here 776 | return ::Rcpp::RcppEigen::eigen_wrap(object); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:787:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_eigen, -1, -1, true>>' requested here 787 | return wrap_dispatch_eigen(object, typename traits::is_eigen_base::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:807:20: note: (skipping 5 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 807 | return wrap_dispatch_unknown_importable(object, typename ::Rcpp::traits::is_importer::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:512:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element__dispatch, -1, -1, true>>>' requested here 512 | replace_element__dispatch( typename traits::is_named::type(), | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1169:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element, -1, -1, true>>>' requested here 1169 | replace_element(it, names, index, t); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1146:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element_impl, -1, -1, true>>, Rcpp::traits::named_object>>' requested here 1146 | replace_element_impl(it, names, index, t...); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1126:16: note: in instantiation of function template specialization 'Rcpp::Vector<19>::create__dispatch, -1, -1, true>>, Rcpp::traits::named_object>>' requested here 1126 | return create__dispatch( typename traits::integral_constant::create, -1, -1, true>>, Rcpp::traits::named_object>>' requested here 230 | LIST res = CREATE_LIST( | ^ ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/././commondefs.h:44:39: note: expanded from macro 'CREATE_LIST' 44 | #define CREATE_LIST(...) Rcpp::List::create(__VA_ARGS__) | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:93:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_plain_dense>' requested here 93 | return eigen_wrap_plain_dense( obj, typename is_dense::type() ) ; | ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:110:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_is_plain>' requested here 110 | return eigen_wrap_is_plain( obj, | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:776:39: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap>' requested here 776 | return ::Rcpp::RcppEigen::eigen_wrap(object); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:787:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_eigen>' requested here 787 | return wrap_dispatch_eigen(object, typename traits::is_eigen_base::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:807:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_unknown_importable>' requested here 807 | return wrap_dispatch_unknown_importable(object, typename ::Rcpp::traits::is_importer::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap_end.h:30:25: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch>' requested here 30 | return internal::wrap_dispatch( object, typename ::Rcpp::traits::wrap_type_traits::wrap_category() ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/generic_proxy.h:59:22: note: in instantiation of function template specialization 'Rcpp::wrap>' requested here 59 | set(Shield(wrap(rhs))) ; | ^ ../inst/include/bvhar/src/bayes/triangular/triangular.h:125:30: note: in instantiation of function template specialization 'Rcpp::internal::generic_proxy<19>::operator=>' requested here 125 | ACCESS_LIST(record, res) = thin_record(CAST(ACCESS_LIST(record, res)), num_iter, num_burn, thin); | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/common.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/./eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:4: ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/common.h:446:26: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 446 | int num_rows = x.size() / num_cols; | ~~~~~~~~ ~~~~~~~~~^~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:55:14: note: in instantiation of function template specialization 'bvhar::unvectorize, -1, 1>>' requested here 55 | coef_mat = unvectorize(coef_record.tail(num_exogen), dim); | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:4: ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/common.h:446:26: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 446 | int num_rows = x.size() / num_cols; | ~~~~~~~~ ~~~~~~~~~^~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:211:33: note: in instantiation of function template specialization 'bvhar::unvectorize, 1>, 1>>>' requested here 211 | coef_mat.topRows(nrow_coef) = unvectorize(reg_record->coef_record.row(i).head(num_alpha).transpose(), dim); | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:4: ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/common.h:446:26: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 446 | int num_rows = x.size() / num_cols; | ~~~~~~~~ ~~~~~~~~~^~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/spillover.h:51:15: note: in instantiation of function template specialization 'bvhar::unvectorize, 1>>>' requested here 51 | coef_mat = unvectorize(reg_record->coef_record.row(i).transpose(), dim); | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:349:38: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 349 | num_sim = reg_record->coef_record.rows(); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVharForecaster<>::CtaVharForecaster' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:524:29: note: in instantiation of function template specialization 'std::make_unique, bvhar::LdltRecords &, int &, const Eigen::Matrix &, Eigen::Matrix &, int &, bool &, bool &, unsigned int, bool &, std::optional>, 0>' requested here 524 | forecaster_ptr[i] = std::make_unique>( | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:577:26: note: in instantiation of function template specialization 'bvhar::initialize_ctaforecaster' requested here 577 | auto temp_forecaster = initialize_ctaforecaster( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaForecastRun<>::CtaForecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ triangular.cpp:143:25: note: in instantiation of function template specialization 'std::make_unique, int &, int &, int &, Eigen::Matrix &, bool &, double &, Rcpp::Vector<19> &, Eigen::Matrix &, bool &, bool &, int &, 0>' requested here 143 | auto forecaster = std::make_unique>( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:307:38: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 307 | num_sim = reg_record->coef_record.rows(); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVarForecaster<>::CtaVarForecaster' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:531:29: note: in instantiation of function template specialization 'std::make_unique, bvhar::LdltRecords &, int &, const Eigen::Matrix &, int &, bool &, bool &, unsigned int, bool &, std::optional>, 0>' requested here 531 | forecaster_ptr[i] = std::make_unique>( | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:577:26: note: in instantiation of function template specialization 'bvhar::initialize_ctaforecaster' requested here 577 | auto temp_forecaster = initialize_ctaforecaster( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaForecastRun<>::CtaForecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ triangular.cpp:143:25: note: in instantiation of function template specialization 'std::make_unique, int &, int &, int &, Eigen::Matrix &, bool &, double &, Rcpp::Vector<19> &, Eigen::Matrix &, bool &, bool &, int &, 0>' requested here 143 | auto forecaster = std::make_unique>( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:4: In file included from ../inst/include/bvhar/src/bayes/triangular/triangular.h:9: In file included from ../inst/include/bvhar/src/bayes/triangular/./config.h:10: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/draw.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/./coef_helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././helper.h:4: In file included from ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/random.h:4: ../inst/include/bvhar/src/bayes/triangular/./../misc/././../../math/../core/common.h:446:26: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 446 | int num_rows = x.size() / num_cols; | ~~~~~~~~ ~~~~~~~~~^~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:436:18: note: in instantiation of function template specialization 'bvhar::unvectorize>' requested here 436 | activity_graph(unvectorize(reg_record->computeActivity(level), dim)) { | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVharSelectForecaster<>::CtaVharSelectForecaster' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:538:29: note: in instantiation of function template specialization 'std::make_unique, bvhar::LdltRecords &, double &, int &, const Eigen::Matrix &, Eigen::Matrix &, int &, bool &, bool &, unsigned int, bool &, std::optional>, 0>' requested here 538 | forecaster_ptr[i] = std::make_unique>( | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:577:26: note: in instantiation of function template specialization 'bvhar::initialize_ctaforecaster' requested here 577 | auto temp_forecaster = initialize_ctaforecaster( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaForecastRun<>::CtaForecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ triangular.cpp:143:25: note: in instantiation of function template specialization 'std::make_unique, int &, int &, int &, Eigen::Matrix &, bool &, double &, Rcpp::Vector<19> &, Eigen::Matrix &, bool &, bool &, int &, 0>' requested here 143 | auto forecaster = std::make_unique>( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:672:6: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 671 | : McmcOutForecastRun( | ~~~~~~~~~~~~~~~~~~ 672 | y.rows(), lag, | ~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:829:4: note: in instantiation of member function 'bvhar::CtaOutforecastRun<>::CtaOutforecastRun' requested here 829 | : CtaOutforecastRun( | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1053:4: note: in instantiation of member function 'bvhar::CtaRollforecastRun<>::CtaRollforecastRun' requested here 1053 | : BaseOutForecast( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVarforecastRun<>::CtaVarforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1326:15: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1326 | return std::make_unique>( | ^ triangular.cpp:248:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 248 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:677:9: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 677 | dim(y.cols()), include_mean(include_mean), stable_filter(stable), sparse(sparse), sv(sv), level(level) { | ~~^~~~~~ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: In file included from ../inst/include/bvhar/src/bayes/triangular/forecaster.h:5: ../inst/include/bvhar/src/bayes/triangular/../forecaster.h:223:44: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 223 | : num_window(num_window), num_test(y_test.rows()), num_horizon(num_test - step + 1), step(step), | ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:671:4: note: in instantiation of member function 'bvhar::McmcOutForecastRun<>::McmcOutForecastRun' requested here 671 | : McmcOutForecastRun( | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:829:4: note: in instantiation of member function 'bvhar::CtaOutforecastRun<>::CtaOutforecastRun' requested here 829 | : CtaOutforecastRun( | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1053:4: note: in instantiation of member function 'bvhar::CtaRollforecastRun<>::CtaRollforecastRun' requested here 1053 | : BaseOutForecast( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVarforecastRun<>::CtaVarforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1326:15: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1326 | return std::make_unique>( | ^ triangular.cpp:248:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 248 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:672:6: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 671 | : McmcOutForecastRun( | ~~~~~~~~~~~~~~~~~~ 672 | y.rows(), lag, | ~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:829:4: note: in instantiation of member function 'bvhar::CtaOutforecastRun::CtaOutforecastRun' requested here 829 | : CtaOutforecastRun( | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1053:4: note: in instantiation of member function 'bvhar::CtaRollforecastRun::CtaRollforecastRun' requested here 1053 | : BaseOutForecast( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVarforecastRun::CtaVarforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1336:15: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1336 | return std::make_unique>( | ^ triangular.cpp:248:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 248 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:677:9: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 677 | dim(y.cols()), include_mean(include_mean), stable_filter(stable), sparse(sparse), sv(sv), level(level) { | ~~^~~~~~ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: In file included from ../inst/include/bvhar/src/bayes/triangular/forecaster.h:5: ../inst/include/bvhar/src/bayes/triangular/../forecaster.h:223:44: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 223 | : num_window(num_window), num_test(y_test.rows()), num_horizon(num_test - step + 1), step(step), | ~~~~~~~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:671:4: note: in instantiation of member function 'bvhar::McmcOutForecastRun, Eigen::Matrix, false>::McmcOutForecastRun' requested here 671 | : McmcOutForecastRun( | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:829:4: note: in instantiation of member function 'bvhar::CtaOutforecastRun::CtaOutforecastRun' requested here 829 | : CtaOutforecastRun( | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1053:4: note: in instantiation of member function 'bvhar::CtaRollforecastRun::CtaRollforecastRun' requested here 1053 | : BaseOutForecast( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVarforecastRun::CtaVarforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1336:15: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1336 | return std::make_unique>( | ^ triangular.cpp:248:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 248 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1273:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 1273 | int dim_exogen = (*lag_exogen + 1) * roll_exogen_mat[window]->cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1177:2: note: in instantiation of member function 'bvhar::CtaVharforecastRun<>::buildDesign' requested here 1177 | CtaVharforecastRun( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVharforecastRun<>::CtaVharforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1381:15: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1381 | return std::make_unique>( | ^ triangular.cpp:317:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 317 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1273:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 1273 | int dim_exogen = (*lag_exogen + 1) * roll_exogen_mat[window]->cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1177:2: note: in instantiation of member function 'bvhar::CtaVharforecastRun::buildDesign' requested here 1177 | CtaVharforecastRun( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVharforecastRun::CtaVharforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1391:15: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1391 | return std::make_unique>( | ^ triangular.cpp:317:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 317 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1273:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 1273 | int dim_exogen = (*lag_exogen + 1) * roll_exogen_mat[window]->cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1177:2: note: in instantiation of member function 'bvhar::CtaVharforecastRun::buildDesign' requested here 1177 | CtaVharforecastRun( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVharforecastRun::CtaVharforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1401:15: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1401 | return std::make_unique>( | ^ triangular.cpp:317:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 317 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1273:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 1273 | int dim_exogen = (*lag_exogen + 1) * roll_exogen_mat[window]->cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1177:2: note: in instantiation of member function 'bvhar::CtaVharforecastRun::buildDesign' requested here 1177 | CtaVharforecastRun( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVharforecastRun::CtaVharforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1411:14: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1411 | return std::make_unique>( | ^ triangular.cpp:317:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 317 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:349:38: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 349 | num_sim = reg_record->coef_record.rows(); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVharForecaster::CtaVharForecaster' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:524:29: note: in instantiation of function template specialization 'std::make_unique, bvhar::SvRecords &, int &, const Eigen::Matrix &, Eigen::Matrix &, int &, bool &, bool &, unsigned int, bool &, std::optional>, 0>' requested here 524 | forecaster_ptr[i] = std::make_unique>( | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:577:26: note: in instantiation of function template specialization 'bvhar::initialize_ctaforecaster' requested here 577 | auto temp_forecaster = initialize_ctaforecaster( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaForecastRun::CtaForecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ triangular.cpp:372:25: note: in instantiation of function template specialization 'std::make_unique, int &, int &, int &, Eigen::Matrix &, bool &, double &, Rcpp::Vector<19> &, Eigen::Matrix &, bool &, bool &, int &, bool &, 0>' requested here 372 | auto forecaster = std::make_unique>( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:307:38: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 307 | num_sim = reg_record->coef_record.rows(); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVarForecaster::CtaVarForecaster' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:531:29: note: in instantiation of function template specialization 'std::make_unique, bvhar::SvRecords &, int &, const Eigen::Matrix &, int &, bool &, bool &, unsigned int, bool &, std::optional>, 0>' requested here 531 | forecaster_ptr[i] = std::make_unique>( | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:577:26: note: in instantiation of function template specialization 'bvhar::initialize_ctaforecaster' requested here 577 | auto temp_forecaster = initialize_ctaforecaster( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaForecastRun::CtaForecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ triangular.cpp:372:25: note: in instantiation of function template specialization 'std::make_unique, int &, int &, int &, Eigen::Matrix &, bool &, double &, Rcpp::Vector<19> &, Eigen::Matrix &, bool &, bool &, int &, bool &, 0>' requested here 372 | auto forecaster = std::make_unique>( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:672:6: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 671 | : McmcOutForecastRun( | ~~~~~~~~~~~~~~~~~~ 672 | y.rows(), lag, | ~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:829:4: note: in instantiation of member function 'bvhar::CtaOutforecastRun::CtaOutforecastRun' requested here 829 | : CtaOutforecastRun( | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1053:4: note: in instantiation of member function 'bvhar::CtaRollforecastRun::CtaRollforecastRun' requested here 1053 | : BaseOutForecast( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVarforecastRun::CtaVarforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1326:15: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1326 | return std::make_unique>( | ^ triangular.cpp:479:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 479 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:677:9: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 677 | dim(y.cols()), include_mean(include_mean), stable_filter(stable), sparse(sparse), sv(sv), level(level) { | ~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:672:6: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 671 | : McmcOutForecastRun( | ~~~~~~~~~~~~~~~~~~ 672 | y.rows(), lag, | ~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:829:4: note: in instantiation of member function 'bvhar::CtaOutforecastRun::CtaOutforecastRun' requested here 829 | : CtaOutforecastRun( | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1053:4: note: in instantiation of member function 'bvhar::CtaRollforecastRun::CtaRollforecastRun' requested here 1053 | : BaseOutForecast( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVarforecastRun::CtaVarforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1336:15: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1336 | return std::make_unique>( | ^ triangular.cpp:479:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 479 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:677:9: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 677 | dim(y.cols()), include_mean(include_mean), stable_filter(stable), sparse(sparse), sv(sv), level(level) { | ~~^~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1273:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 1273 | int dim_exogen = (*lag_exogen + 1) * roll_exogen_mat[window]->cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1177:2: note: in instantiation of member function 'bvhar::CtaVharforecastRun::buildDesign' requested here 1177 | CtaVharforecastRun( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVharforecastRun::CtaVharforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1381:15: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1381 | return std::make_unique>( | ^ triangular.cpp:548:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 548 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1273:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 1273 | int dim_exogen = (*lag_exogen + 1) * roll_exogen_mat[window]->cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1177:2: note: in instantiation of member function 'bvhar::CtaVharforecastRun::buildDesign' requested here 1177 | CtaVharforecastRun( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVharforecastRun::CtaVharforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1391:15: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1391 | return std::make_unique>( | ^ triangular.cpp:548:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 548 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1273:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 1273 | int dim_exogen = (*lag_exogen + 1) * roll_exogen_mat[window]->cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1177:2: note: in instantiation of member function 'bvhar::CtaVharforecastRun::buildDesign' requested here 1177 | CtaVharforecastRun( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVharforecastRun::CtaVharforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1401:15: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1401 | return std::make_unique>( | ^ triangular.cpp:548:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 548 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1273:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 1273 | int dim_exogen = (*lag_exogen + 1) * roll_exogen_mat[window]->cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1177:2: note: in instantiation of member function 'bvhar::CtaVharforecastRun::buildDesign' requested here 1177 | CtaVharforecastRun( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVharforecastRun::CtaVharforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1411:14: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1411 | return std::make_unique>( | ^ triangular.cpp:548:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 548 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1273:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 1273 | int dim_exogen = (*lag_exogen + 1) * roll_exogen_mat[window]->cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1177:2: note: in instantiation of member function 'bvhar::CtaVharforecastRun::buildDesign' requested here 1177 | CtaVharforecastRun( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVharforecastRun::CtaVharforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1381:15: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1381 | return std::make_unique>( | ^ triangular.cpp:686:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 686 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1273:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 1273 | int dim_exogen = (*lag_exogen + 1) * roll_exogen_mat[window]->cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1177:2: note: in instantiation of member function 'bvhar::CtaVharforecastRun::buildDesign' requested here 1177 | CtaVharforecastRun( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVharforecastRun::CtaVharforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1391:15: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1391 | return std::make_unique>( | ^ triangular.cpp:686:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 686 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1273:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 1273 | int dim_exogen = (*lag_exogen + 1) * roll_exogen_mat[window]->cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1177:2: note: in instantiation of member function 'bvhar::CtaVharforecastRun::buildDesign' requested here 1177 | CtaVharforecastRun( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVharforecastRun::CtaVharforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1401:15: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1401 | return std::make_unique>( | ^ triangular.cpp:686:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 686 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1273:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 1273 | int dim_exogen = (*lag_exogen + 1) * roll_exogen_mat[window]->cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1177:2: note: in instantiation of member function 'bvhar::CtaVharforecastRun::buildDesign' requested here 1177 | CtaVharforecastRun( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVharforecastRun::CtaVharforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1411:14: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1411 | return std::make_unique>( | ^ triangular.cpp:686:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 686 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1273:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 1273 | int dim_exogen = (*lag_exogen + 1) * roll_exogen_mat[window]->cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1177:2: note: in instantiation of member function 'bvhar::CtaVharforecastRun::buildDesign' requested here 1177 | CtaVharforecastRun( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVharforecastRun::CtaVharforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1381:15: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1381 | return std::make_unique>( | ^ triangular.cpp:824:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 824 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1273:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 1273 | int dim_exogen = (*lag_exogen + 1) * roll_exogen_mat[window]->cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1177:2: note: in instantiation of member function 'bvhar::CtaVharforecastRun::buildDesign' requested here 1177 | CtaVharforecastRun( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVharforecastRun::CtaVharforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1391:15: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1391 | return std::make_unique>( | ^ triangular.cpp:824:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 824 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1273:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 1273 | int dim_exogen = (*lag_exogen + 1) * roll_exogen_mat[window]->cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1177:2: note: in instantiation of member function 'bvhar::CtaVharforecastRun::buildDesign' requested here 1177 | CtaVharforecastRun( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVharforecastRun::CtaVharforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1401:15: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1401 | return std::make_unique>( | ^ triangular.cpp:824:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 824 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ In file included from triangular.cpp:1: In file included from ../inst/include/bvhar/triangular:5: ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1273:39: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' [-Wshorten-64-to-32] 1273 | int dim_exogen = (*lag_exogen + 1) * roll_exogen_mat[window]->cols(); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1177:2: note: in instantiation of member function 'bvhar::CtaVharforecastRun::buildDesign' requested here 1177 | CtaVharforecastRun( | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:767:30: note: in instantiation of member function 'bvhar::CtaVharforecastRun::CtaVharforecastRun' requested here 767 | return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); | ^ ../inst/include/bvhar/src/bayes/triangular/forecaster.h:1411:14: note: in instantiation of function template specialization 'std::make_unique, const Eigen::Matrix &, int &, int &, int &, int &, int &, int &, bool &, double &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, Rcpp::Vector<19> &, Rcpp::Vector<19> &, int &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, bool &, int &, const Eigen::Matrix &, bool &, const Eigen::Matrix &, const Eigen::Matrix &, bool &, int &, const bool &, std::optional> &, std::optional> &, std::optional &, std::optional> &, std::optional &, 0>' requested here 1411 | return std::make_unique>( | ^ triangular.cpp:824:27: note: in instantiation of function template specialization 'bvhar::initialize_ctaoutforecaster' requested here 824 | auto forecaster = bvhar::initialize_ctaoutforecaster( | ^ 145 warnings and 2 errors generated. make[1]: *** [triangular.o] Error 1 In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:5: In file included from ../inst/include/bvhar/src/math/design.h:4: In file included from ../inst/include/bvhar/src/math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:93:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_plain_dense>' requested here 93 | return eigen_wrap_plain_dense( obj, typename is_dense::type() ) ; | ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:110:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_is_plain>' requested here 110 | return eigen_wrap_is_plain( obj, | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:776:39: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap>' requested here 776 | return ::Rcpp::RcppEigen::eigen_wrap(object); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:787:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_eigen>' requested here 787 | return wrap_dispatch_eigen(object, typename traits::is_eigen_base::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:807:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_unknown_importable>' requested here 807 | return wrap_dispatch_unknown_importable(object, typename ::Rcpp::traits::is_importer::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap_end.h:30:25: note: (skipping 4 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) 30 | return internal::wrap_dispatch( object, typename ::Rcpp::traits::wrap_type_traits::wrap_category() ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:512:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element__dispatch>>' requested here 512 | replace_element__dispatch( typename traits::is_named::type(), | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1169:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element>>' requested here 1169 | replace_element(it, names, index, t); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1146:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element_impl>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>' requested here 1146 | replace_element_impl(it, names, index, t...); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1126:16: note: in instantiation of function template specialization 'Rcpp::Vector<19>::create__dispatch>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>' requested here 1126 | return create__dispatch( typename traits::integral_constant::create>, Rcpp::traits::named_object>, Rcpp::traits::named_object>, Rcpp::traits::named_object>' requested here 185 | return Rcpp::List::create( | ^ In file included from utils.cpp:2: In file included from ../inst/include/bvhar/utils:5: In file included from ../inst/include/bvhar/src/math/design.h:4: In file included from ../inst/include/bvhar/src/math/../core/eigen.h:11: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ 98 warnings generated. make[1]: Target `all' not remade because of errors. ERROR: compilation failed for package ‘bvhar’ * removing ‘/Users/ripley/R/packages/tests-devel/bvhar.Rcheck/bvhar’