* installing *source* package ‘tsgarch’ ...
** this is package ‘tsgarch’ version ‘1.0.3’
** package ‘tsgarch’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
using SDK: ‘MacOSX11.3.1.sdk’
clang++ -arch x86_64 -std=gnu++20 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
clang++ -arch x86_64 -std=gnu++20 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c filters.cpp -o filters.o
clang++ -arch x86_64 -std=gnu++20 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c simulation.cpp -o simulation.o
(cd TMB; /Library/Frameworks/R.framework/Resources/bin/Rscript \
--no-save --no-restore compile.R '')
using C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
using SDK: ‘MacOSX11.3.1.sdk’
clang++ -arch x86_64 -std=gnu++20 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include" -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include" -DTMB_EIGEN_DISABLE_WARNINGS -DTMB_LIB_INIT=R_init_tsgarch_TMBExports -DCPPAD_FRAMEWORK -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c tsgarch_TMBExports.cpp -o tsgarch_TMBExports.o
In file included from simulation.cpp:1:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/Sparse:26:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/SparseCore:61:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable]
Index count = 0;
^
In file included from RcppExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/Sparse:26:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/SparseCore:61:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable]
Index count = 0;
^
In file included from RcppExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/Sparse:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/SparseLU:35:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/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]
Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable]
Index nsuper_et = 0; // Number of relaxed snodes in the original etree
^
In file included from simulation.cpp:1:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/Sparse:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/SparseLU:35:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/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]
Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable]
Index nsuper_et = 0; // Number of relaxed snodes in the original etree
^
In file included from simulation.cpp:1:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:31:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable]
Index replacements = 0;
^
In file included from RcppExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:31:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable]
Index replacements = 0;
^
In file included from RcppExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:37:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/SparseExtra:45:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable]
int count = 0;
^
In file included from simulation.cpp:1:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:37:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/SparseExtra:45:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable]
int count = 0;
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:96:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/Sparse:26:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/SparseCore:61:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable]
Index count = 0;
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:96:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/Sparse:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/SparseLU:35:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/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]
Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable]
Index nsuper_et = 0; // Number of relaxed snodes in the original etree
^
5 warnings generated.
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:105:24: error: use of overloaded operator '!=' is ambiguous (with operand types 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<1, 1>>>::Type' (aka 'atomic::tiny_ad::variable<1, 1>') and 'float')
int a_finite = (a_ != -INFINITY) && (a_ != INFINITY);
~~ ^ ~~~~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:123:5: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<1, 1>>>::setBounds' requested here
setBounds(a_, b_);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:167:25: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<1, 1>>>::Integral' requested here
Integral< Integrand > I(f, a, b, c);
^
./egarchkappa.h:117:25: note: in instantiation of function template specialization 'gauss_kronrod::integrate<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<1, 1>>>' requested here
Float ans = integrate(*this, -INFINITY, INFINITY);
^
./egarchkappa.h:124:18: note: in instantiation of member function 'egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<1, 1>>::marginal' requested here
return f.marginal();
^
./egarchkappa.h:126:37: note: in instantiation of function template specialization 'egarchkappa::eval_egarch_snorm<atomic::tiny_ad::variable<1, 1>>' requested here
TMB_BIND_ATOMIC(egarchsnorm, 1, eval_egarch_snorm(x[0]))
^
./egarchkappa.h:126:21: note: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
TMB_BIND_ATOMIC(egarchsnorm, 1, eval_egarch_snorm(x[0]))
^
./egarchkappa.h:131:29: note: in instantiation of function template specialization 'egarchkappa::egarchsnorm<double>' requested here
return egarchkappa::egarchsnorm(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:258:19: note: in instantiation of function template specialization 'egarchkappa::snorm_egarch_moment<CppAD::AD<double>>' requested here
out = snorm_egarch_moment(skew);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:5: note: candidate function [with other = float]
COMPARISON_OPERATOR(!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate function [with other = float]
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function (with reversed parameter order) [with T = double, V = atomic::tiny_vec<double, 1>]
COMPARISON_OPERATOR_FLIP(==,==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:106:24: error: use of overloaded operator '!=' is ambiguous (with operand types 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<1, 1>>>::Type' (aka 'atomic::tiny_ad::variable<1, 1>') and 'float')
int b_finite = (b_ != -INFINITY) && (b_ != INFINITY);
~~ ^ ~~~~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:5: note: candidate function [with other = float]
COMPARISON_OPERATOR(!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate function [with other = float]
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function (with reversed parameter order) [with T = double, V = atomic::tiny_vec<double, 1>]
COMPARISON_OPERATOR_FLIP(==,==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:536:52: warning: ISO C++20 considers use of overloaded operator '!=' (with operand types 'atomic::tiny_ad::variable<1, 1>' and 'atomic::tiny_ad::variable<1, 1>') to be ambiguous despite there being a unique best viable function with non-reversed arguments [-Wambiguous-reversed-operator]
if (*ier != 0 || (*abserr <= errbnd && *abserr != resabs)
~~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:241:5: note: in instantiation of function template specialization 'gauss_kronrod::rdqagie<atomic::tiny_ad::variable<1, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<1, 1>>>::vectorized_integrand>' requested here
rdqagie(f, ex, bound, inf, epsabs, epsrel, limit, result, abserr, neval, ier,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:127:7: note: in instantiation of function template specialization 'gauss_kronrod::Rdqagi<atomic::tiny_ad::variable<1, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<1, 1>>>::vectorized_integrand>' requested here
Rdqagi(fn, NULL, &bound, &inf, &epsabs, &epsrel, &result, &abserr,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:168:10: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<1, 1>>>::operator()' requested here
return I();
^
./egarchkappa.h:117:25: note: in instantiation of function template specialization 'gauss_kronrod::integrate<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<1, 1>>>' requested here
Float ans = integrate(*this, -INFINITY, INFINITY);
^
./egarchkappa.h:124:18: note: in instantiation of member function 'egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<1, 1>>::marginal' requested here
return f.marginal();
^
./egarchkappa.h:126:37: note: (skipping 4 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
TMB_BIND_ATOMIC(egarchsnorm, 1, eval_egarch_snorm(x[0]))
^
./egarchkappa.h:131:29: note: in instantiation of function template specialization 'egarchkappa::egarchsnorm<double>' requested here
return egarchkappa::egarchsnorm(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:258:19: note: in instantiation of function template specialization 'egarchkappa::snorm_egarch_moment<CppAD::AD<double>>' requested here
out = snorm_egarch_moment(skew);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:5: note: candidate function with non-reversed arguments
COMPARISON_OPERATOR(!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguous candidate function with reversed arguments
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:587:15: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<1, 1>' and 'atomic::tiny_ad::variable<1, 1>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (!(defab1 == error1 || defab2 == error2)) {
~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:587:35: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<1, 1>' and 'atomic::tiny_ad::variable<1, 1>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (!(defab1 == error1 || defab2 == error2)) {
~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:740:17: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<1, 1>' and 'atomic::tiny_ad::variable<1, 1>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (*abserr == oflow) {
~~~~~~~ ^ ~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:5:
./distfun.h:402:15: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<1, 1>' and 'atomic::tiny_ad::variable<1, 1>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (x == Type(0.0)) {
~ ^ ~~~~~~~~~
./distfun.h:491:20: note: in instantiation of function template specialization 'distfun::signbranch<atomic::tiny_ad::variable<1, 1>>' requested here
Type xxi = signbranch(z, skew);
^
./egarchkappa.h:109:39: note: in instantiation of function template specialization 'distfun::fwd_snorm_std<atomic::tiny_ad::variable<1, 1>>' requested here
ans += fabs(u) * distfun::fwd_snorm_std(u, skew, give_log);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:83:37: note: in instantiation of member function 'egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<1, 1>>::operator()' requested here
for(int i=0; i<n; i++) x[i] = f(x[i]);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:1656:5: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<1, 1>>>::vectorized_integrand::operator()' requested here
f(vec, 15, ex); /* -> new vec[] overwriting old vec[] */
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:524:5: note: in instantiation of function template specialization 'gauss_kronrod::rdqk15i<atomic::tiny_ad::variable<1, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<1, 1>>>::vectorized_integrand>' requested here
rdqk15i(f, ex, &boun, inf, &c_b6, &c_b7, result, abserr, &defabs, &resabs);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:241:5: note: (skipping 9 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
rdqagie(f, ex, bound, inf, epsabs, epsrel, limit, result, abserr, neval, ier,
^
./egarchkappa.h:131:29: note: in instantiation of function template specialization 'egarchkappa::egarchsnorm<double>' requested here
return egarchkappa::egarchsnorm(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:258:19: note: in instantiation of function template specialization 'egarchkappa::snorm_egarch_moment<CppAD::AD<double>>' requested here
out = snorm_egarch_moment(skew);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
5 warnings generated.
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:1248:52: warning: ISO C++20 considers use of overloaded operator '!=' (with operand types 'atomic::tiny_ad::variable<1, 1>' and 'atomic::tiny_ad::variable<1, 1>') to be ambiguous despite there being a unique best viable function with non-reversed arguments [-Wambiguous-reversed-operator]
if (*ier != 0 || (*abserr <= errbnd && *abserr != resabs)
~~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:969:5: note: in instantiation of function template specialization 'gauss_kronrod::rdqagse<atomic::tiny_ad::variable<1, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<1, 1>>>::vectorized_integrand>' requested here
rdqagse(f, ex, a, b, epsabs, epsrel, limit, result, abserr, neval, ier,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:130:7: note: in instantiation of function template specialization 'gauss_kronrod::Rdqags<atomic::tiny_ad::variable<1, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<1, 1>>>::vectorized_integrand>' requested here
Rdqags(fn, NULL, &a, &b, &epsabs, &epsrel, &result, &abserr,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:168:10: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<1, 1>>>::operator()' requested here
return I();
^
./egarchkappa.h:117:25: note: in instantiation of function template specialization 'gauss_kronrod::integrate<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<1, 1>>>' requested here
Float ans = integrate(*this, -INFINITY, INFINITY);
^
./egarchkappa.h:124:18: note: in instantiation of member function 'egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<1, 1>>::marginal' requested here
return f.marginal();
^
./egarchkappa.h:126:37: note: (skipping 4 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
TMB_BIND_ATOMIC(egarchsnorm, 1, eval_egarch_snorm(x[0]))
^
./egarchkappa.h:131:29: note: in instantiation of function template specialization 'egarchkappa::egarchsnorm<double>' requested here
return egarchkappa::egarchsnorm(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:258:19: note: in instantiation of function template specialization 'egarchkappa::snorm_egarch_moment<CppAD::AD<double>>' requested here
out = snorm_egarch_moment(skew);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:5: note: candidate function with non-reversed arguments
COMPARISON_OPERATOR(!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguous candidate function with reversed arguments
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:1296:15: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<1, 1>' and 'atomic::tiny_ad::variable<1, 1>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (!(defab1 == error1 || defab2 == error2)) {
~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:1296:35: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<1, 1>' and 'atomic::tiny_ad::variable<1, 1>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (!(defab1 == error1 || defab2 == error2)) {
~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:1445:17: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<1, 1>' and 'atomic::tiny_ad::variable<1, 1>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (*abserr == oflow) goto L115;
~~~~~~~ ^ ~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:105:24: error: use of overloaded operator '!=' is ambiguous (with operand types 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>::Type' (aka 'atomic::tiny_ad::variable<2, 1>') and 'float')
int a_finite = (a_ != -INFINITY) && (a_ != INFINITY);
~~ ^ ~~~~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:123:5: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>::setBounds' requested here
setBounds(a_, b_);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:167:25: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>::Integral' requested here
Integral< Integrand > I(f, a, b, c);
^
./egarchkappa.h:117:25: note: in instantiation of function template specialization 'gauss_kronrod::integrate<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>' requested here
Float ans = integrate(*this, -INFINITY, INFINITY);
^
./egarchkappa.h:124:18: note: in instantiation of member function 'egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>::marginal' requested here
return f.marginal();
^
./egarchkappa.h:126:37: note: in instantiation of function template specialization 'egarchkappa::eval_egarch_snorm<atomic::tiny_ad::variable<2, 1>>' requested here
TMB_BIND_ATOMIC(egarchsnorm, 1, eval_egarch_snorm(x[0]))
^
./egarchkappa.h:126:21: note: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
TMB_BIND_ATOMIC(egarchsnorm, 1, eval_egarch_snorm(x[0]))
^
./egarchkappa.h:131:29: note: in instantiation of function template specialization 'egarchkappa::egarchsnorm<double>' requested here
return egarchkappa::egarchsnorm(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:258:19: note: in instantiation of function template specialization 'egarchkappa::snorm_egarch_moment<CppAD::AD<double>>' requested here
out = snorm_egarch_moment(skew);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:5: note: candidate function [with other = float]
COMPARISON_OPERATOR(!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate function [with other = float]
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function (with reversed parameter order) [with T = atomic::tiny_ad::variable<1, 1>, V = atomic::tiny_vec<atomic::tiny_ad::variable<1, 1>, 1>]
COMPARISON_OPERATOR_FLIP(==,==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:106:24: error: use of overloaded operator '!=' is ambiguous (with operand types 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>::Type' (aka 'atomic::tiny_ad::variable<2, 1>') and 'float')
int b_finite = (b_ != -INFINITY) && (b_ != INFINITY);
~~ ^ ~~~~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:5: note: candidate function [with other = float]
COMPARISON_OPERATOR(!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate function [with other = float]
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function (with reversed parameter order) [with T = atomic::tiny_ad::variable<1, 1>, V = atomic::tiny_vec<atomic::tiny_ad::variable<1, 1>, 1>]
COMPARISON_OPERATOR_FLIP(==,==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:536:52: warning: ISO C++20 considers use of overloaded operator '!=' (with operand types 'atomic::tiny_ad::variable<2, 1>' and 'atomic::tiny_ad::variable<2, 1>') to be ambiguous despite there being a unique best viable function with non-reversed arguments [-Wambiguous-reversed-operator]
if (*ier != 0 || (*abserr <= errbnd && *abserr != resabs)
~~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:241:5: note: in instantiation of function template specialization 'gauss_kronrod::rdqagie<atomic::tiny_ad::variable<2, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>::vectorized_integrand>' requested here
rdqagie(f, ex, bound, inf, epsabs, epsrel, limit, result, abserr, neval, ier,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:127:7: note: in instantiation of function template specialization 'gauss_kronrod::Rdqagi<atomic::tiny_ad::variable<2, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>::vectorized_integrand>' requested here
Rdqagi(fn, NULL, &bound, &inf, &epsabs, &epsrel, &result, &abserr,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:168:10: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>::operator()' requested here
return I();
^
./egarchkappa.h:117:25: note: in instantiation of function template specialization 'gauss_kronrod::integrate<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>' requested here
Float ans = integrate(*this, -INFINITY, INFINITY);
^
./egarchkappa.h:124:18: note: in instantiation of member function 'egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>::marginal' requested here
return f.marginal();
^
./egarchkappa.h:126:37: note: (skipping 4 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
TMB_BIND_ATOMIC(egarchsnorm, 1, eval_egarch_snorm(x[0]))
^
./egarchkappa.h:131:29: note: in instantiation of function template specialization 'egarchkappa::egarchsnorm<double>' requested here
return egarchkappa::egarchsnorm(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:258:19: note: in instantiation of function template specialization 'egarchkappa::snorm_egarch_moment<CppAD::AD<double>>' requested here
out = snorm_egarch_moment(skew);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:5: note: candidate function with non-reversed arguments
COMPARISON_OPERATOR(!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguous candidate function with reversed arguments
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:587:15: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<2, 1>' and 'atomic::tiny_ad::variable<2, 1>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (!(defab1 == error1 || defab2 == error2)) {
~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:587:35: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<2, 1>' and 'atomic::tiny_ad::variable<2, 1>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (!(defab1 == error1 || defab2 == error2)) {
~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:740:17: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<2, 1>' and 'atomic::tiny_ad::variable<2, 1>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (*abserr == oflow) {
~~~~~~~ ^ ~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:5:
./distfun.h:402:15: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<2, 1>' and 'atomic::tiny_ad::variable<2, 1>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (x == Type(0.0)) {
~ ^ ~~~~~~~~~
./distfun.h:491:20: note: in instantiation of function template specialization 'distfun::signbranch<atomic::tiny_ad::variable<2, 1>>' requested here
Type xxi = signbranch(z, skew);
^
./egarchkappa.h:109:39: note: in instantiation of function template specialization 'distfun::fwd_snorm_std<atomic::tiny_ad::variable<2, 1>>' requested here
ans += fabs(u) * distfun::fwd_snorm_std(u, skew, give_log);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:83:37: note: in instantiation of member function 'egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>::operator()' requested here
for(int i=0; i<n; i++) x[i] = f(x[i]);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:1656:5: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>::vectorized_integrand::operator()' requested here
f(vec, 15, ex); /* -> new vec[] overwriting old vec[] */
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:524:5: note: in instantiation of function template specialization 'gauss_kronrod::rdqk15i<atomic::tiny_ad::variable<2, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>::vectorized_integrand>' requested here
rdqk15i(f, ex, &boun, inf, &c_b6, &c_b7, result, abserr, &defabs, &resabs);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:241:5: note: (skipping 9 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
rdqagie(f, ex, bound, inf, epsabs, epsrel, limit, result, abserr, neval, ier,
^
./egarchkappa.h:131:29: note: in instantiation of function template specialization 'egarchkappa::egarchsnorm<double>' requested here
return egarchkappa::egarchsnorm(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:258:19: note: in instantiation of function template specialization 'egarchkappa::snorm_egarch_moment<CppAD::AD<double>>' requested here
out = snorm_egarch_moment(skew);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:25: error: use of overloaded operator '!=' is ambiguous (with operand types 'const atomic::tiny_ad::variable<1, 1>' and 'const atomic::tiny_ad::variable<2, 1>')
COMPARISON_OPERATOR(!=)
~~~~~~~~~~~~~~~~~~~~^~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:63:21: note: expanded from macro 'COMPARISON_OPERATOR'
return (value OP x); \
~~~~~ ^ ~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:536:52: note: in instantiation of function template specialization 'atomic::tiny_ad::ad<atomic::tiny_ad::variable<1, 1>, atomic::tiny_vec<atomic::tiny_ad::variable<1, 1>, 1>>::operator!=<atomic::tiny_ad::variable<2, 1>>' requested here
if (*ier != 0 || (*abserr <= errbnd && *abserr != resabs)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:241:5: note: in instantiation of function template specialization 'gauss_kronrod::rdqagie<atomic::tiny_ad::variable<2, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>::vectorized_integrand>' requested here
rdqagie(f, ex, bound, inf, epsabs, epsrel, limit, result, abserr, neval, ier,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:127:7: note: in instantiation of function template specialization 'gauss_kronrod::Rdqagi<atomic::tiny_ad::variable<2, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>::vectorized_integrand>' requested here
Rdqagi(fn, NULL, &bound, &inf, &epsabs, &epsrel, &result, &abserr,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:168:10: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>::operator()' requested here
return I();
^
./egarchkappa.h:117:25: note: in instantiation of function template specialization 'gauss_kronrod::integrate<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>' requested here
Float ans = integrate(*this, -INFINITY, INFINITY);
^
./egarchkappa.h:124:18: note: (skipping 5 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
return f.marginal();
^
./egarchkappa.h:131:29: note: in instantiation of function template specialization 'egarchkappa::egarchsnorm<double>' requested here
return egarchkappa::egarchsnorm(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:258:19: note: in instantiation of function template specialization 'egarchkappa::snorm_egarch_moment<CppAD::AD<double>>' requested here
out = snorm_egarch_moment(skew);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:5: note: candidate function [with other = atomic::tiny_ad::variable<2, 1>]
COMPARISON_OPERATOR(!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate function [with other = atomic::tiny_ad::variable<2, 1>]
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate function (with reversed parameter order) [with other = atomic::tiny_ad::variable<1, 1>]
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:25: error: use of overloaded operator '==' is ambiguous (with operand types 'const atomic::tiny_ad::variable<1, 1>' and 'const atomic::tiny_ad::variable<2, 1>')
COMPARISON_OPERATOR(==)
~~~~~~~~~~~~~~~~~~~~^~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:63:21: note: expanded from macro 'COMPARISON_OPERATOR'
return (value OP x); \
~~~~~ ^ ~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:587:15: note: in instantiation of function template specialization 'atomic::tiny_ad::ad<atomic::tiny_ad::variable<1, 1>, atomic::tiny_vec<atomic::tiny_ad::variable<1, 1>, 1>>::operator==<atomic::tiny_ad::variable<2, 1>>' requested here
if (!(defab1 == error1 || defab2 == error2)) {
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:241:5: note: in instantiation of function template specialization 'gauss_kronrod::rdqagie<atomic::tiny_ad::variable<2, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>::vectorized_integrand>' requested here
rdqagie(f, ex, bound, inf, epsabs, epsrel, limit, result, abserr, neval, ier,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:127:7: note: in instantiation of function template specialization 'gauss_kronrod::Rdqagi<atomic::tiny_ad::variable<2, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>::vectorized_integrand>' requested here
Rdqagi(fn, NULL, &bound, &inf, &epsabs, &epsrel, &result, &abserr,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:168:10: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>::operator()' requested here
return I();
^
./egarchkappa.h:117:25: note: in instantiation of function template specialization 'gauss_kronrod::integrate<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>' requested here
Float ans = integrate(*this, -INFINITY, INFINITY);
^
./egarchkappa.h:124:18: note: (skipping 5 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
return f.marginal();
^
./egarchkappa.h:131:29: note: in instantiation of function template specialization 'egarchkappa::egarchsnorm<double>' requested here
return egarchkappa::egarchsnorm(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:258:19: note: in instantiation of function template specialization 'egarchkappa::snorm_egarch_moment<CppAD::AD<double>>' requested here
out = snorm_egarch_moment(skew);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate function [with other = atomic::tiny_ad::variable<2, 1>]
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate function (with reversed parameter order) [with other = atomic::tiny_ad::variable<1, 1>]
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:1248:52: error: invalid operands to binary expression ('atomic::tiny_ad::variable<2, 1>' and 'atomic::tiny_ad::variable<2, 1>')
if (*ier != 0 || (*abserr <= errbnd && *abserr != resabs)
~~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:969:5: note: in instantiation of function template specialization 'gauss_kronrod::rdqagse<atomic::tiny_ad::variable<2, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>::vectorized_integrand>' requested here
rdqagse(f, ex, a, b, epsabs, epsrel, limit, result, abserr, neval, ier,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:130:7: note: in instantiation of function template specialization 'gauss_kronrod::Rdqags<atomic::tiny_ad::variable<2, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>::vectorized_integrand>' requested here
Rdqags(fn, NULL, &a, &b, &epsabs, &epsrel, &result, &abserr,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:168:10: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>::operator()' requested here
return I();
^
./egarchkappa.h:117:25: note: in instantiation of function template specialization 'gauss_kronrod::integrate<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>>' requested here
Float ans = integrate(*this, -INFINITY, INFINITY);
^
./egarchkappa.h:124:18: note: in instantiation of member function 'egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<2, 1>>::marginal' requested here
return f.marginal();
^
./egarchkappa.h:126:37: note: (skipping 4 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
TMB_BIND_ATOMIC(egarchsnorm, 1, eval_egarch_snorm(x[0]))
^
./egarchkappa.h:131:29: note: in instantiation of function template specialization 'egarchkappa::egarchsnorm<double>' requested here
return egarchkappa::egarchsnorm(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:258:19: note: in instantiation of function template specialization 'egarchkappa::snorm_egarch_moment<CppAD::AD<double>>' requested here
out = snorm_egarch_moment(skew);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function template not viable: no known conversion from 'atomic::tiny_ad::variable<2, 1>' to 'const double' for 1st argument
COMPARISON_OPERATOR_FLIP(==,==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:218:3: note: candidate function template not viable: no known conversion from 'atomic::tiny_ad::variable<2, 1>' to 'const double' for 1st argument
COMPARISON_OPERATOR_FLIP(!=,!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function (with reversed parameter order) template not viable: no known conversion from 'atomic::tiny_ad::variable<2, 1>' to 'const double' for 1st argument
COMPARISON_OPERATOR_FLIP(==,==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:5: note: candidate template ignored: substitution failure [with other = atomic::tiny_ad::variable<2, 1>]
COMPARISON_OPERATOR(!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate template ignored: substitution failure [with other = atomic::tiny_ad::variable<2, 1>]
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate template ignored: substitution failure [with other = atomic::tiny_ad::variable<2, 1>]
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:1296:15: error: invalid operands to binary expression ('atomic::tiny_ad::variable<2, 1>' and 'atomic::tiny_ad::variable<2, 1>')
if (!(defab1 == error1 || defab2 == error2)) {
~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function template not viable: no known conversion from 'atomic::tiny_ad::variable<2, 1>' to 'const double' for 1st argument
COMPARISON_OPERATOR_FLIP(==,==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function (with reversed parameter order) template not viable: no known conversion from 'atomic::tiny_ad::variable<2, 1>' to 'const double' for 1st argument
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate template ignored: substitution failure [with other = atomic::tiny_ad::variable<2, 1>]
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate template ignored: substitution failure [with other = atomic::tiny_ad::variable<2, 1>]
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:1445:17: error: invalid operands to binary expression ('atomic::tiny_ad::variable<2, 1>' and 'atomic::tiny_ad::variable<2, 1>')
if (*abserr == oflow) goto L115;
~~~~~~~ ^ ~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function template not viable: no known conversion from 'atomic::tiny_ad::variable<2, 1>' to 'const double' for 1st argument
COMPARISON_OPERATOR_FLIP(==,==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function (with reversed parameter order) template not viable: no known conversion from 'atomic::tiny_ad::variable<2, 1>' to 'const double' for 1st argument
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate template ignored: substitution failure [with other = atomic::tiny_ad::variable<2, 1>]
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate template ignored: substitution failure [with other = atomic::tiny_ad::variable<2, 1>]
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:105:24: error: use of overloaded operator '!=' is ambiguous (with operand types 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>::Type' (aka 'atomic::tiny_ad::variable<3, 1>') and 'float')
int a_finite = (a_ != -INFINITY) && (a_ != INFINITY);
~~ ^ ~~~~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:123:5: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>::setBounds' requested here
setBounds(a_, b_);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:167:25: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>::Integral' requested here
Integral< Integrand > I(f, a, b, c);
^
./egarchkappa.h:117:25: note: in instantiation of function template specialization 'gauss_kronrod::integrate<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>' requested here
Float ans = integrate(*this, -INFINITY, INFINITY);
^
./egarchkappa.h:124:18: note: in instantiation of member function 'egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>::marginal' requested here
return f.marginal();
^
./egarchkappa.h:126:37: note: in instantiation of function template specialization 'egarchkappa::eval_egarch_snorm<atomic::tiny_ad::variable<3, 1>>' requested here
TMB_BIND_ATOMIC(egarchsnorm, 1, eval_egarch_snorm(x[0]))
^
./egarchkappa.h:126:21: note: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
TMB_BIND_ATOMIC(egarchsnorm, 1, eval_egarch_snorm(x[0]))
^
./egarchkappa.h:131:29: note: in instantiation of function template specialization 'egarchkappa::egarchsnorm<double>' requested here
return egarchkappa::egarchsnorm(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:258:19: note: in instantiation of function template specialization 'egarchkappa::snorm_egarch_moment<CppAD::AD<double>>' requested here
out = snorm_egarch_moment(skew);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:5: note: candidate function [with other = float]
COMPARISON_OPERATOR(!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate function [with other = float]
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function (with reversed parameter order) [with T = atomic::tiny_ad::variable<2, 1>, V = atomic::tiny_vec<atomic::tiny_ad::variable<2, 1>, 1>]
COMPARISON_OPERATOR_FLIP(==,==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:106:24: error: use of overloaded operator '!=' is ambiguous (with operand types 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>::Type' (aka 'atomic::tiny_ad::variable<3, 1>') and 'float')
int b_finite = (b_ != -INFINITY) && (b_ != INFINITY);
~~ ^ ~~~~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:5: note: candidate function [with other = float]
COMPARISON_OPERATOR(!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate function [with other = float]
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function (with reversed parameter order) [with T = atomic::tiny_ad::variable<2, 1>, V = atomic::tiny_vec<atomic::tiny_ad::variable<2, 1>, 1>]
COMPARISON_OPERATOR_FLIP(==,==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:536:52: warning: ISO C++20 considers use of overloaded operator '!=' (with operand types 'atomic::tiny_ad::variable<3, 1>' and 'atomic::tiny_ad::variable<3, 1>') to be ambiguous despite there being a unique best viable function with non-reversed arguments [-Wambiguous-reversed-operator]
if (*ier != 0 || (*abserr <= errbnd && *abserr != resabs)
~~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:241:5: note: in instantiation of function template specialization 'gauss_kronrod::rdqagie<atomic::tiny_ad::variable<3, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>::vectorized_integrand>' requested here
rdqagie(f, ex, bound, inf, epsabs, epsrel, limit, result, abserr, neval, ier,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:127:7: note: in instantiation of function template specialization 'gauss_kronrod::Rdqagi<atomic::tiny_ad::variable<3, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>::vectorized_integrand>' requested here
Rdqagi(fn, NULL, &bound, &inf, &epsabs, &epsrel, &result, &abserr,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:168:10: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>::operator()' requested here
return I();
^
./egarchkappa.h:117:25: note: in instantiation of function template specialization 'gauss_kronrod::integrate<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>' requested here
Float ans = integrate(*this, -INFINITY, INFINITY);
^
./egarchkappa.h:124:18: note: in instantiation of member function 'egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>::marginal' requested here
return f.marginal();
^
./egarchkappa.h:126:37: note: (skipping 4 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
TMB_BIND_ATOMIC(egarchsnorm, 1, eval_egarch_snorm(x[0]))
^
./egarchkappa.h:131:29: note: in instantiation of function template specialization 'egarchkappa::egarchsnorm<double>' requested here
return egarchkappa::egarchsnorm(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:258:19: note: in instantiation of function template specialization 'egarchkappa::snorm_egarch_moment<CppAD::AD<double>>' requested here
out = snorm_egarch_moment(skew);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:5: note: candidate function with non-reversed arguments
COMPARISON_OPERATOR(!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguous candidate function with reversed arguments
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:587:15: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<3, 1>' and 'atomic::tiny_ad::variable<3, 1>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (!(defab1 == error1 || defab2 == error2)) {
~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:587:35: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<3, 1>' and 'atomic::tiny_ad::variable<3, 1>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (!(defab1 == error1 || defab2 == error2)) {
~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:740:17: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<3, 1>' and 'atomic::tiny_ad::variable<3, 1>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (*abserr == oflow) {
~~~~~~~ ^ ~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:5:
./distfun.h:402:15: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<3, 1>' and 'atomic::tiny_ad::variable<3, 1>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (x == Type(0.0)) {
~ ^ ~~~~~~~~~
./distfun.h:491:20: note: in instantiation of function template specialization 'distfun::signbranch<atomic::tiny_ad::variable<3, 1>>' requested here
Type xxi = signbranch(z, skew);
^
./egarchkappa.h:109:39: note: in instantiation of function template specialization 'distfun::fwd_snorm_std<atomic::tiny_ad::variable<3, 1>>' requested here
ans += fabs(u) * distfun::fwd_snorm_std(u, skew, give_log);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:83:37: note: in instantiation of member function 'egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>::operator()' requested here
for(int i=0; i<n; i++) x[i] = f(x[i]);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:1656:5: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>::vectorized_integrand::operator()' requested here
f(vec, 15, ex); /* -> new vec[] overwriting old vec[] */
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:524:5: note: in instantiation of function template specialization 'gauss_kronrod::rdqk15i<atomic::tiny_ad::variable<3, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>::vectorized_integrand>' requested here
rdqk15i(f, ex, &boun, inf, &c_b6, &c_b7, result, abserr, &defabs, &resabs);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:241:5: note: (skipping 9 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
rdqagie(f, ex, bound, inf, epsabs, epsrel, limit, result, abserr, neval, ier,
^
./egarchkappa.h:131:29: note: in instantiation of function template specialization 'egarchkappa::egarchsnorm<double>' requested here
return egarchkappa::egarchsnorm(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:258:19: note: in instantiation of function template specialization 'egarchkappa::snorm_egarch_moment<CppAD::AD<double>>' requested here
out = snorm_egarch_moment(skew);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:25: error: use of overloaded operator '!=' is ambiguous (with operand types 'const atomic::tiny_ad::variable<2, 1>' and 'const atomic::tiny_ad::variable<3, 1>')
COMPARISON_OPERATOR(!=)
~~~~~~~~~~~~~~~~~~~~^~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:63:21: note: expanded from macro 'COMPARISON_OPERATOR'
return (value OP x); \
~~~~~ ^ ~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:536:52: note: in instantiation of function template specialization 'atomic::tiny_ad::ad<atomic::tiny_ad::variable<2, 1>, atomic::tiny_vec<atomic::tiny_ad::variable<2, 1>, 1>>::operator!=<atomic::tiny_ad::variable<3, 1>>' requested here
if (*ier != 0 || (*abserr <= errbnd && *abserr != resabs)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:241:5: note: in instantiation of function template specialization 'gauss_kronrod::rdqagie<atomic::tiny_ad::variable<3, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>::vectorized_integrand>' requested here
rdqagie(f, ex, bound, inf, epsabs, epsrel, limit, result, abserr, neval, ier,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:127:7: note: in instantiation of function template specialization 'gauss_kronrod::Rdqagi<atomic::tiny_ad::variable<3, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>::vectorized_integrand>' requested here
Rdqagi(fn, NULL, &bound, &inf, &epsabs, &epsrel, &result, &abserr,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:168:10: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>::operator()' requested here
return I();
^
./egarchkappa.h:117:25: note: in instantiation of function template specialization 'gauss_kronrod::integrate<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>' requested here
Float ans = integrate(*this, -INFINITY, INFINITY);
^
./egarchkappa.h:124:18: note: (skipping 5 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
return f.marginal();
^
./egarchkappa.h:131:29: note: in instantiation of function template specialization 'egarchkappa::egarchsnorm<double>' requested here
return egarchkappa::egarchsnorm(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:258:19: note: in instantiation of function template specialization 'egarchkappa::snorm_egarch_moment<CppAD::AD<double>>' requested here
out = snorm_egarch_moment(skew);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:5: note: candidate function [with other = atomic::tiny_ad::variable<3, 1>]
COMPARISON_OPERATOR(!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate function [with other = atomic::tiny_ad::variable<3, 1>]
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate function (with reversed parameter order) [with other = atomic::tiny_ad::variable<2, 1>]
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:25: error: use of overloaded operator '==' is ambiguous (with operand types 'const atomic::tiny_ad::variable<2, 1>' and 'const atomic::tiny_ad::variable<3, 1>')
COMPARISON_OPERATOR(==)
~~~~~~~~~~~~~~~~~~~~^~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:63:21: note: expanded from macro 'COMPARISON_OPERATOR'
return (value OP x); \
~~~~~ ^ ~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:587:15: note: in instantiation of function template specialization 'atomic::tiny_ad::ad<atomic::tiny_ad::variable<2, 1>, atomic::tiny_vec<atomic::tiny_ad::variable<2, 1>, 1>>::operator==<atomic::tiny_ad::variable<3, 1>>' requested here
if (!(defab1 == error1 || defab2 == error2)) {
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:241:5: note: in instantiation of function template specialization 'gauss_kronrod::rdqagie<atomic::tiny_ad::variable<3, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>::vectorized_integrand>' requested here
rdqagie(f, ex, bound, inf, epsabs, epsrel, limit, result, abserr, neval, ier,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:127:7: note: in instantiation of function template specialization 'gauss_kronrod::Rdqagi<atomic::tiny_ad::variable<3, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>::vectorized_integrand>' requested here
Rdqagi(fn, NULL, &bound, &inf, &epsabs, &epsrel, &result, &abserr,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:168:10: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>::operator()' requested here
return I();
^
./egarchkappa.h:117:25: note: in instantiation of function template specialization 'gauss_kronrod::integrate<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>' requested here
Float ans = integrate(*this, -INFINITY, INFINITY);
^
./egarchkappa.h:124:18: note: (skipping 5 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
return f.marginal();
^
./egarchkappa.h:131:29: note: in instantiation of function template specialization 'egarchkappa::egarchsnorm<double>' requested here
return egarchkappa::egarchsnorm(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:258:19: note: in instantiation of function template specialization 'egarchkappa::snorm_egarch_moment<CppAD::AD<double>>' requested here
out = snorm_egarch_moment(skew);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate function [with other = atomic::tiny_ad::variable<3, 1>]
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate function (with reversed parameter order) [with other = atomic::tiny_ad::variable<2, 1>]
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:1248:52: error: invalid operands to binary expression ('atomic::tiny_ad::variable<3, 1>' and 'atomic::tiny_ad::variable<3, 1>')
if (*ier != 0 || (*abserr <= errbnd && *abserr != resabs)
~~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:969:5: note: in instantiation of function template specialization 'gauss_kronrod::rdqagse<atomic::tiny_ad::variable<3, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>::vectorized_integrand>' requested here
rdqagse(f, ex, a, b, epsabs, epsrel, limit, result, abserr, neval, ier,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:130:7: note: in instantiation of function template specialization 'gauss_kronrod::Rdqags<atomic::tiny_ad::variable<3, 1>, gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>::vectorized_integrand>' requested here
Rdqags(fn, NULL, &a, &b, &epsabs, &epsrel, &result, &abserr,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:168:10: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>::operator()' requested here
return I();
^
./egarchkappa.h:117:25: note: in instantiation of function template specialization 'gauss_kronrod::integrate<egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>>' requested here
Float ans = integrate(*this, -INFINITY, INFINITY);
^
./egarchkappa.h:124:18: note: in instantiation of member function 'egarchkappa::struct_egarch_snorm<atomic::tiny_ad::variable<3, 1>>::marginal' requested here
return f.marginal();
^
./egarchkappa.h:126:37: note: (skipping 4 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
TMB_BIND_ATOMIC(egarchsnorm, 1, eval_egarch_snorm(x[0]))
^
./egarchkappa.h:131:29: note: in instantiation of function template specialization 'egarchkappa::egarchsnorm<double>' requested here
return egarchkappa::egarchsnorm(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:258:19: note: in instantiation of function template specialization 'egarchkappa::snorm_egarch_moment<CppAD::AD<double>>' requested here
out = snorm_egarch_moment(skew);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function template not viable: no known conversion from 'atomic::tiny_ad::variable<3, 1>' to 'const double' for 1st argument
COMPARISON_OPERATOR_FLIP(==,==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:218:3: note: candidate function template not viable: no known conversion from 'atomic::tiny_ad::variable<3, 1>' to 'const double' for 1st argument
COMPARISON_OPERATOR_FLIP(!=,!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function (with reversed parameter order) template not viable: no known conversion from 'atomic::tiny_ad::variable<3, 1>' to 'const double' for 1st argument
COMPARISON_OPERATOR_FLIP(==,==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:5: note: candidate template ignored: substitution failure [with other = atomic::tiny_ad::variable<3, 1>]
COMPARISON_OPERATOR(!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate template ignored: substitution failure [with other = atomic::tiny_ad::variable<3, 1>]
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate template ignored: substitution failure [with other = atomic::tiny_ad::variable<3, 1>]
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:1296:15: error: invalid operands to binary expression ('atomic::tiny_ad::variable<3, 1>' and 'atomic::tiny_ad::variable<3, 1>')
if (!(defab1 == error1 || defab2 == error2)) {
~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function template not viable: no known conversion from 'atomic::tiny_ad::variable<3, 1>' to 'const double' for 1st argument
COMPARISON_OPERATOR_FLIP(==,==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function (with reversed parameter order) template not viable: no known conversion from 'atomic::tiny_ad::variable<3, 1>' to 'const double' for 1st argument
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate template ignored: substitution failure [with other = atomic::tiny_ad::variable<3, 1>]
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate template ignored: substitution failure [with other = atomic::tiny_ad::variable<3, 1>]
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:1445:17: error: invalid operands to binary expression ('atomic::tiny_ad::variable<3, 1>' and 'atomic::tiny_ad::variable<3, 1>')
if (*abserr == oflow) goto L115;
~~~~~~~ ^ ~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function template not viable: no known conversion from 'atomic::tiny_ad::variable<3, 1>' to 'const double' for 1st argument
COMPARISON_OPERATOR_FLIP(==,==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function (with reversed parameter order) template not viable: no known conversion from 'atomic::tiny_ad::variable<3, 1>' to 'const double' for 1st argument
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate template ignored: substitution failure [with other = atomic::tiny_ad::variable<3, 1>]
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate template ignored: substitution failure [with other = atomic::tiny_ad::variable<3, 1>]
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:105:24: error: use of overloaded operator '!=' is ambiguous (with operand types 'gauss_kronrod::Integral<egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<1, 2>>>::Type' (aka 'atomic::tiny_ad::variable<1, 2>') and 'float')
int a_finite = (a_ != -INFINITY) && (a_ != INFINITY);
~~ ^ ~~~~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:123:5: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<1, 2>>>::setBounds' requested here
setBounds(a_, b_);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:167:25: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<1, 2>>>::Integral' requested here
Integral< Integrand > I(f, a, b, c);
^
./egarchkappa.h:84:25: note: in instantiation of function template specialization 'gauss_kronrod::integrate<egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<1, 2>>>' requested here
Float ans = integrate(*this, -INFINITY, INFINITY);
^
./egarchkappa.h:91:18: note: in instantiation of member function 'egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<1, 2>>::marginal' requested here
return f.marginal();
^
./egarchkappa.h:93:37: note: in instantiation of function template specialization 'egarchkappa::eval_egarch_sstd<atomic::tiny_ad::variable<1, 2>>' requested here
TMB_BIND_ATOMIC(egarchsstd, 11, eval_egarch_sstd(x[0], x[1]))
^
./egarchkappa.h:93:21: note: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
TMB_BIND_ATOMIC(egarchsstd, 11, eval_egarch_sstd(x[0], x[1]))
^
./egarchkappa.h:98:33: note: in instantiation of function template specialization 'egarchkappa::egarchsstd<double>' requested here
return egarchkappa::egarchsstd(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:261:19: note: in instantiation of function template specialization 'egarchkappa::sstd_egarch_moment<CppAD::AD<double>>' requested here
out = sstd_egarch_moment(skew, shape);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:5: note: candidate function [with other = float]
COMPARISON_OPERATOR(!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate function [with other = float]
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function (with reversed parameter order) [with T = double, V = atomic::tiny_vec<double, 2>]
COMPARISON_OPERATOR_FLIP(==,==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:106:24: error: use of overloaded operator '!=' is ambiguous (with operand types 'gauss_kronrod::Integral<egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<1, 2>>>::Type' (aka 'atomic::tiny_ad::variable<1, 2>') and 'float')
int b_finite = (b_ != -INFINITY) && (b_ != INFINITY);
~~ ^ ~~~~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:5: note: candidate function [with other = float]
COMPARISON_OPERATOR(!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate function [with other = float]
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function (with reversed parameter order) [with T = double, V = atomic::tiny_vec<double, 2>]
COMPARISON_OPERATOR_FLIP(==,==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:536:52: warning: ISO C++20 considers use of overloaded operator '!=' (with operand types 'atomic::tiny_ad::variable<1, 2>' and 'atomic::tiny_ad::variable<1, 2>') to be ambiguous despite there being a unique best viable function with non-reversed arguments [-Wambiguous-reversed-operator]
if (*ier != 0 || (*abserr <= errbnd && *abserr != resabs)
~~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:241:5: note: in instantiation of function template specialization 'gauss_kronrod::rdqagie<atomic::tiny_ad::variable<1, 2>, gauss_kronrod::Integral<egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<1, 2>>>::vectorized_integrand>' requested here
rdqagie(f, ex, bound, inf, epsabs, epsrel, limit, result, abserr, neval, ier,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:127:7: note: in instantiation of function template specialization 'gauss_kronrod::Rdqagi<atomic::tiny_ad::variable<1, 2>, gauss_kronrod::Integral<egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<1, 2>>>::vectorized_integrand>' requested here
Rdqagi(fn, NULL, &bound, &inf, &epsabs, &epsrel, &result, &abserr,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:168:10: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<1, 2>>>::operator()' requested here
return I();
^
./egarchkappa.h:84:25: note: in instantiation of function template specialization 'gauss_kronrod::integrate<egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<1, 2>>>' requested here
Float ans = integrate(*this, -INFINITY, INFINITY);
^
./egarchkappa.h:91:18: note: in instantiation of member function 'egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<1, 2>>::marginal' requested here
return f.marginal();
^
./egarchkappa.h:93:37: note: (skipping 4 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
TMB_BIND_ATOMIC(egarchsstd, 11, eval_egarch_sstd(x[0], x[1]))
^
./egarchkappa.h:98:33: note: in instantiation of function template specialization 'egarchkappa::egarchsstd<double>' requested here
return egarchkappa::egarchsstd(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:261:19: note: in instantiation of function template specialization 'egarchkappa::sstd_egarch_moment<CppAD::AD<double>>' requested here
out = sstd_egarch_moment(skew, shape);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:5: note: candidate function with non-reversed arguments
COMPARISON_OPERATOR(!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguous candidate function with reversed arguments
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:587:15: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<1, 2>' and 'atomic::tiny_ad::variable<1, 2>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (!(defab1 == error1 || defab2 == error2)) {
~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:587:35: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<1, 2>' and 'atomic::tiny_ad::variable<1, 2>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (!(defab1 == error1 || defab2 == error2)) {
~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:740:17: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<1, 2>' and 'atomic::tiny_ad::variable<1, 2>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (*abserr == oflow) {
~~~~~~~ ^ ~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:5:
./distfun.h:402:15: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<1, 2>' and 'atomic::tiny_ad::variable<1, 2>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (x == Type(0.0)) {
~ ^ ~~~~~~~~~
./distfun.h:453:20: note: in instantiation of function template specialization 'distfun::signbranch<atomic::tiny_ad::variable<1, 2>>' requested here
Type xxi = signbranch(z, skew);
^
./egarchkappa.h:76:39: note: in instantiation of function template specialization 'distfun::fwd_sstd_std<atomic::tiny_ad::variable<1, 2>>' requested here
ans += fabs(u) * distfun::fwd_sstd_std(u, skew, shape, give_log);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:83:37: note: in instantiation of member function 'egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<1, 2>>::operator()' requested here
for(int i=0; i<n; i++) x[i] = f(x[i]);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:1656:5: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<1, 2>>>::vectorized_integrand::operator()' requested here
f(vec, 15, ex); /* -> new vec[] overwriting old vec[] */
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:524:5: note: in instantiation of function template specialization 'gauss_kronrod::rdqk15i<atomic::tiny_ad::variable<1, 2>, gauss_kronrod::Integral<egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<1, 2>>>::vectorized_integrand>' requested here
rdqk15i(f, ex, &boun, inf, &c_b6, &c_b7, result, abserr, &defabs, &resabs);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:241:5: note: (skipping 9 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
rdqagie(f, ex, bound, inf, epsabs, epsrel, limit, result, abserr, neval, ier,
^
./egarchkappa.h:98:33: note: in instantiation of function template specialization 'egarchkappa::egarchsstd<double>' requested here
return egarchkappa::egarchsstd(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:261:19: note: in instantiation of function template specialization 'egarchkappa::sstd_egarch_moment<CppAD::AD<double>>' requested here
out = sstd_egarch_moment(skew, shape);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:1248:52: warning: ISO C++20 considers use of overloaded operator '!=' (with operand types 'atomic::tiny_ad::variable<1, 2>' and 'atomic::tiny_ad::variable<1, 2>') to be ambiguous despite there being a unique best viable function with non-reversed arguments [-Wambiguous-reversed-operator]
if (*ier != 0 || (*abserr <= errbnd && *abserr != resabs)
~~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:969:5: note: in instantiation of function template specialization 'gauss_kronrod::rdqagse<atomic::tiny_ad::variable<1, 2>, gauss_kronrod::Integral<egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<1, 2>>>::vectorized_integrand>' requested here
rdqagse(f, ex, a, b, epsabs, epsrel, limit, result, abserr, neval, ier,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:130:7: note: in instantiation of function template specialization 'gauss_kronrod::Rdqags<atomic::tiny_ad::variable<1, 2>, gauss_kronrod::Integral<egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<1, 2>>>::vectorized_integrand>' requested here
Rdqags(fn, NULL, &a, &b, &epsabs, &epsrel, &result, &abserr,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:168:10: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<1, 2>>>::operator()' requested here
return I();
^
./egarchkappa.h:84:25: note: in instantiation of function template specialization 'gauss_kronrod::integrate<egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<1, 2>>>' requested here
Float ans = integrate(*this, -INFINITY, INFINITY);
^
./egarchkappa.h:91:18: note: in instantiation of member function 'egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<1, 2>>::marginal' requested here
return f.marginal();
^
./egarchkappa.h:93:37: note: (skipping 4 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
TMB_BIND_ATOMIC(egarchsstd, 11, eval_egarch_sstd(x[0], x[1]))
^
./egarchkappa.h:98:33: note: in instantiation of function template specialization 'egarchkappa::egarchsstd<double>' requested here
return egarchkappa::egarchsstd(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:261:19: note: in instantiation of function template specialization 'egarchkappa::sstd_egarch_moment<CppAD::AD<double>>' requested here
out = sstd_egarch_moment(skew, shape);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:5: note: candidate function with non-reversed arguments
COMPARISON_OPERATOR(!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguous candidate function with reversed arguments
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:1296:15: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<1, 2>' and 'atomic::tiny_ad::variable<1, 2>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (!(defab1 == error1 || defab2 == error2)) {
~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:1296:35: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<1, 2>' and 'atomic::tiny_ad::variable<1, 2>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (!(defab1 == error1 || defab2 == error2)) {
~~~~~~ ^ ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:40:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.cpp:1445:17: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<1, 2>' and 'atomic::tiny_ad::variable<1, 2>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (*abserr == oflow) goto L115;
~~~~~~~ ^ ~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
In file included from tsgarch_TMBExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:227:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:105:24: error: use of overloaded operator '!=' is ambiguous (with operand types 'gauss_kronrod::Integral<egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<2, 2>>>::Type' (aka 'atomic::tiny_ad::variable<2, 2>') and 'float')
int a_finite = (a_ != -INFINITY) && (a_ != INFINITY);
~~ ^ ~~~~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:123:5: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<2, 2>>>::setBounds' requested here
setBounds(a_, b_);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/integrate/integrate.hpp:167:25: note: in instantiation of member function 'gauss_kronrod::Integral<egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<2, 2>>>::Integral' requested here
Integral< Integrand > I(f, a, b, c);
^
./egarchkappa.h:84:25: note: in instantiation of function template specialization 'gauss_kronrod::integrate<egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<2, 2>>>' requested here
Float ans = integrate(*this, -INFINITY, INFINITY);
^
./egarchkappa.h:91:18: note: in instantiation of member function 'egarchkappa::struct_egarch_sstd<atomic::tiny_ad::variable<2, 2>>::marginal' requested here
return f.marginal();
^
./egarchkappa.h:93:37: note: in instantiation of function template specialization 'egarchkappa::eval_egarch_sstd<atomic::tiny_ad::variable<2, 2>>' requested here
TMB_BIND_ATOMIC(egarchsstd, 11, eval_egarch_sstd(x[0], x[1]))
^
./egarchkappa.h:93:21: note: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
TMB_BIND_ATOMIC(egarchsstd, 11, eval_egarch_sstd(x[0], x[1]))
^
./egarchkappa.h:98:33: note: in instantiation of function template specialization 'egarchkappa::egarchsstd<double>' requested here
return egarchkappa::egarchsstd(CppAD::vector<Type>(args))[0];
^
./egarchkappa.h:261:19: note: in instantiation of function template specialization 'egarchkappa::sstd_egarch_moment<CppAD::AD<double>>' requested here
out = sstd_egarch_moment(skew, shape);
^
./egarchfun.hpp:97:31: note: in instantiation of function template specialization 'egarchkappa::egarch_moment_func<CppAD::AD<double>>' requested here
Type kappa = egarchkappa::egarch_moment_func(distribution(0), distribution(1), distribution(2), dclass);
^
tsgarch_TMBExports.cpp:30:14: note: in instantiation of function template specialization 'egarchfun<CppAD::AD<double>>' requested here
return egarchfun(this);
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1312:6: note: in instantiation of member function 'objective_function<CppAD::AD<double>>::operator()' requested here
F(); // Run through user template (modifies reportvector)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:70:5: note: candidate function [with other = float]
COMPARISON_OPERATOR(!=)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:69:5: note: candidate function [with other = float]
COMPARISON_OPERATOR(==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:62:10: note: expanded from macro 'COMPARISON_OPERATOR'
bool operator OP (const other &x) const{ \
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:217:3: note: candidate function (with reversed parameter order) [with T = atomic::tiny_ad::variable<1, 2>, V = atomic::tiny_vec<atomic::tiny_ad::variable<1, 2>, 2>]
COMPARISON_OPERATOR_FLIP(==,==)
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/tiny_ad/tiny_ad.hpp:210:8: note: expanded from macro 'COMPARISON_OPERATOR_FLIP'
bool operator OP1 (const double &x, const ad<T, V> &y) { \
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
31 warnings and 20 errors generated.
make[1]: *** [tsgarch_TMBExports.o] Error 1
Error in TMB::compile(file = paste0(tmb_name, ".cpp"), PKG_CXXFLAGS = tmb_flags, :
Compilation failed
Execution halted
make: *** [tmblib] Error 1
ERROR: compilation failed for package ‘tsgarch’
* removing ‘/Volumes/Builds/packages/big-sur-x86_64/results/4.6/tsgarch.Rcheck/tsgarch’