* installing *source* package ‘RTMB’ ...
** this is package ‘RTMB’ version ‘1.9’
** package ‘RTMB’ 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 -DTMB_EIGEN_DISABLE_WARNINGS -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 RTMB.cpp -o RTMB.o
clang++ -arch x86_64 -std=gnu++20 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -DTMB_EIGEN_DISABLE_WARNINGS -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 RTMB_tape.cpp -o RTMB_tape.o
clang++ -arch x86_64 -std=gnu++20 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -DTMB_EIGEN_DISABLE_WARNINGS -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 -DTMB_EIGEN_DISABLE_WARNINGS -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 TMB.cpp -o TMB.o
clang++ -arch x86_64 -std=gnu++20 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -DTMB_EIGEN_DISABLE_WARNINGS -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 bessel.cpp -o bessel.o
clang++ -arch x86_64 -std=gnu++20 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -DTMB_EIGEN_DISABLE_WARNINGS -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 branching.cpp -o branching.o
In file included from RTMB.cpp:1:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
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 TMB.cpp:2:
In file included from ./TMB.h:38:
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 branching.cpp:2:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
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 RcppExports.cpp:5:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
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 bessel.cpp:2:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
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 RTMB_tape.cpp:1:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
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 RTMB.cpp:1:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
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 
        ^
In file included from TMB.cpp:2:
In file included from ./TMB.h:38:
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 
        ^
In file included from RcppExports.cpp:5:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
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 
        ^
In file included from branching.cpp:2:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
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 
        ^
In file included from RTMB_tape.cpp:1:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
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 
        ^
In file included from bessel.cpp:2:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
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 
        ^
In file included from bessel.cpp:2:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:226:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel.hpp:100:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel_i.cpp:63: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]
               ((alpha == na) ? /* sin(pi * alpha) = 0 */ 0 :
                 ~~~~~ ^  ~~
bessel.cpp:13:17: note: in instantiation of function template specialization 'atomic::bessel_utils::bessel_i<atomic::tiny_ad::variable<1, 2>>' requested here
                bessel_utils::bessel_i(x[0], x[1], 2.) )
                              ^
bessel.cpp:11:1: note: in instantiation of function template specialization 'atomic::bessel_i_expoEval<1, 2, 2, 9>::operator()<const double, double>' requested here
TMB_BIND_ATOMIC(bessel_i_expo,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:172:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    NAME ## Eval<order, ninput, noutput, mask>()(tx, ty);               \
    ^
<scratch space>:80:1: note: expanded from here
bessel_i_expoEval
^
bessel.cpp:11:1: note: in instantiation of function template specialization 'atomic::bessel_i_expoOp<1, 2, 2, 9>::eval<const double, double>' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:261:10: note: expanded from macro 'TMB_BIND_ATOMIC'
    foo1.eval(&x[0], &y[0]);                                            \
         ^
bessel.cpp:11:17: note: in instantiation of function template specialization 'atomic::bessel_i_expo<void>' requested here
TMB_BIND_ATOMIC(bessel_i_expo,
                ^
bessel.cpp:29:18: note: in instantiation of function template specialization 'atomic::bessel_i_expo<void>' requested here
  return atomic::bessel_i_expo(args)[0];
                 ^
bessel.cpp:60:35: note: in instantiation of function template specialization 'besselI_expo<TMBad::global::ad_aug>' requested here
                                  besselI_expo(X1[i % n1], X2[i % n2]) :
                                  ^
/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 bessel.cpp:2:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:226:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel.hpp:100:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel_i.cpp:63:17: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<2, 2>' and 'atomic::tiny_ad::variable<2, 2>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
               ((alpha == na) ? /* sin(pi * alpha) = 0 */ 0 :
                 ~~~~~ ^  ~~
bessel.cpp:13:17: note: in instantiation of function template specialization 'atomic::bessel_utils::bessel_i<atomic::tiny_ad::variable<2, 2>>' requested here
                bessel_utils::bessel_i(x[0], x[1], 2.) )
                              ^
bessel.cpp:11:1: note: in instantiation of function template specialization 'atomic::bessel_i_expoEval<2, 2, 4, 9>::operator()<const double, double>' requested here
TMB_BIND_ATOMIC(bessel_i_expo,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:172:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    NAME ## Eval<order, ninput, noutput, mask>()(tx, ty);               \
    ^
<scratch space>:80:1: note: expanded from here
bessel_i_expoEval
^
bessel.cpp:11:1: note: in instantiation of function template specialization 'atomic::bessel_i_expoOp<2, 2, 4, 9>::eval<const double, double>' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:195:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    eval(&(x(0)), &(ans(0)));                                           \
    ^
bessel.cpp:11:1: note: in instantiation of member function 'atomic::bessel_i_expoOp<2, 2, 4, 9>::operator()' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:215:10: note: expanded from macro 'TMB_BIND_ATOMIC'
    ty = foo(tx);                                                       \
         ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:1762:21: note: in instantiation of function template specialization 'atomic::bessel_i_expoOp<1, 2, 2, 9>::reverse<double>' requested here
      OperatorBase::reverse(args);
                    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:2155:50: note: (skipping 12 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    void reverse(ReverseArgs<Scalar> &args) { Op.reverse(args); }
                                                 ^
bessel.cpp:11:1: note: in instantiation of function template specialization 'TMBad::global::getOperator<atomic::bessel_i_expoOp<0, 2, 1, 9>>' requested here
TMB_BIND_ATOMIC(bessel_i_expo,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:176:51: note: expanded from macro 'TMB_BIND_ATOMIC'
    TMBad::OperatorPure* pOp = TMBad::get_glob()->getOperator<NAME ## Op>(); \
                                                  ^
bessel.cpp:11:1: note: in instantiation of member function 'atomic::bessel_i_expoOp<0, 2, 1, 9>::add_to_tape' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:182:12: note: expanded from macro 'TMB_BIND_ATOMIC'
    return add_to_tape(x);                                              \
           ^
note: in instantiation of member function 'atomic::bessel_i_expoOp<0, 2, 1, 9>::operator()' requested here
bessel.cpp:29:18: note: in instantiation of function template specialization 'atomic::bessel_i_expo<void>' requested here
  return atomic::bessel_i_expo(args)[0];
                 ^
bessel.cpp:60:35: note: in instantiation of function template specialization 'besselI_expo<TMBad::global::ad_aug>' requested here
                                  besselI_expo(X1[i % n1], X2[i % n2]) :
                                  ^
/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:69:25: error: use of overloaded operator '==' is ambiguous (with operand types 'const atomic::tiny_ad::variable<1, 2>' and 'const atomic::tiny_ad::variable<2, 2>')
    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/bessel/bessel_i.cpp:63:17: note: in instantiation of function template specialization 'atomic::tiny_ad::ad<atomic::tiny_ad::variable<1, 2>, atomic::tiny_vec<atomic::tiny_ad::variable<1, 2>, 2>>::operator==<atomic::tiny_ad::variable<2, 2>>' requested here
               ((alpha == na) ? /* sin(pi * alpha) = 0 */ 0 :
                       ^
bessel.cpp:13:17: note: in instantiation of function template specialization 'atomic::bessel_utils::bessel_i<atomic::tiny_ad::variable<2, 2>>' requested here
                bessel_utils::bessel_i(x[0], x[1], 2.) )
                              ^
bessel.cpp:11:1: note: in instantiation of function template specialization 'atomic::bessel_i_expoEval<2, 2, 4, 9>::operator()<const double, double>' requested here
TMB_BIND_ATOMIC(bessel_i_expo,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:172:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    NAME ## Eval<order, ninput, noutput, mask>()(tx, ty);               \
    ^
<scratch space>:80:1: note: expanded from here
bessel_i_expoEval
^
bessel.cpp:11:1: note: in instantiation of function template specialization 'atomic::bessel_i_expoOp<2, 2, 4, 9>::eval<const double, double>' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:195:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    eval(&(x(0)), &(ans(0)));                                           \
    ^
bessel.cpp:11:1: note: in instantiation of member function 'atomic::bessel_i_expoOp<2, 2, 4, 9>::operator()' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:215:10: note: expanded from macro 'TMB_BIND_ATOMIC'
    ty = foo(tx);                                                       \
         ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:1762:21: note: (skipping 13 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
      OperatorBase::reverse(args);
                    ^
bessel.cpp:11:1: note: in instantiation of function template specialization 'TMBad::global::getOperator<atomic::bessel_i_expoOp<0, 2, 1, 9>>' requested here
TMB_BIND_ATOMIC(bessel_i_expo,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:176:51: note: expanded from macro 'TMB_BIND_ATOMIC'
    TMBad::OperatorPure* pOp = TMBad::get_glob()->getOperator<NAME ## Op>(); \
                                                  ^
bessel.cpp:11:1: note: in instantiation of member function 'atomic::bessel_i_expoOp<0, 2, 1, 9>::add_to_tape' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:182:12: note: expanded from macro 'TMB_BIND_ATOMIC'
    return add_to_tape(x);                                              \
           ^
note: in instantiation of member function 'atomic::bessel_i_expoOp<0, 2, 1, 9>::operator()' requested here
bessel.cpp:29:18: note: in instantiation of function template specialization 'atomic::bessel_i_expo<void>' requested here
  return atomic::bessel_i_expo(args)[0];
                 ^
bessel.cpp:60:35: note: in instantiation of function template specialization 'besselI_expo<TMBad::global::ad_aug>' requested here
                                  besselI_expo(X1[i % n1], X2[i % n2]) :
                                  ^
/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, 2>]
    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, 2>]
/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 bessel.cpp:2:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:226:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel.hpp:100:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel_i.cpp:63:17: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'atomic::tiny_ad::variable<3, 2>' and 'atomic::tiny_ad::variable<3, 2>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
               ((alpha == na) ? /* sin(pi * alpha) = 0 */ 0 :
                 ~~~~~ ^  ~~
bessel.cpp:13:17: note: in instantiation of function template specialization 'atomic::bessel_utils::bessel_i<atomic::tiny_ad::variable<3, 2>>' requested here
                bessel_utils::bessel_i(x[0], x[1], 2.) )
                              ^
bessel.cpp:11:1: note: in instantiation of function template specialization 'atomic::bessel_i_expoEval<3, 2, 8, 9>::operator()<const double, double>' requested here
TMB_BIND_ATOMIC(bessel_i_expo,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:172:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    NAME ## Eval<order, ninput, noutput, mask>()(tx, ty);               \
    ^
<scratch space>:80:1: note: expanded from here
bessel_i_expoEval
^
bessel.cpp:11:1: note: in instantiation of function template specialization 'atomic::bessel_i_expoOp<3, 2, 8, 9>::eval<const double, double>' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:195:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    eval(&(x(0)), &(ans(0)));                                           \
    ^
bessel.cpp:11:1: note: in instantiation of member function 'atomic::bessel_i_expoOp<3, 2, 8, 9>::operator()' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:215:10: note: expanded from macro 'TMB_BIND_ATOMIC'
    ty = foo(tx);                                                       \
         ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:1762:21: note: in instantiation of function template specialization 'atomic::bessel_i_expoOp<2, 2, 4, 9>::reverse<double>' requested here
      OperatorBase::reverse(args);
                    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:2155:50: note: (skipping 20 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    void reverse(ReverseArgs<Scalar> &args) { Op.reverse(args); }
                                                 ^
bessel.cpp:11:1: note: in instantiation of function template specialization 'TMBad::global::getOperator<atomic::bessel_i_expoOp<0, 2, 1, 9>>' requested here
TMB_BIND_ATOMIC(bessel_i_expo,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:176:51: note: expanded from macro 'TMB_BIND_ATOMIC'
    TMBad::OperatorPure* pOp = TMBad::get_glob()->getOperator<NAME ## Op>(); \
                                                  ^
bessel.cpp:11:1: note: in instantiation of member function 'atomic::bessel_i_expoOp<0, 2, 1, 9>::add_to_tape' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:182:12: note: expanded from macro 'TMB_BIND_ATOMIC'
    return add_to_tape(x);                                              \
           ^
note: in instantiation of member function 'atomic::bessel_i_expoOp<0, 2, 1, 9>::operator()' requested here
bessel.cpp:29:18: note: in instantiation of function template specialization 'atomic::bessel_i_expo<void>' requested here
  return atomic::bessel_i_expo(args)[0];
                 ^
bessel.cpp:60:35: note: in instantiation of function template specialization 'besselI_expo<TMBad::global::ad_aug>' requested here
                                  besselI_expo(X1[i % n1], X2[i % n2]) :
                                  ^
/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:69:25: error: use of overloaded operator '==' is ambiguous (with operand types 'const atomic::tiny_ad::variable<2, 2>' and 'const atomic::tiny_ad::variable<3, 2>')
    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/bessel/bessel_i.cpp:63:17: note: in instantiation of function template specialization 'atomic::tiny_ad::ad<atomic::tiny_ad::variable<2, 2>, atomic::tiny_vec<atomic::tiny_ad::variable<2, 2>, 2>>::operator==<atomic::tiny_ad::variable<3, 2>>' requested here
               ((alpha == na) ? /* sin(pi * alpha) = 0 */ 0 :
                       ^
bessel.cpp:13:17: note: in instantiation of function template specialization 'atomic::bessel_utils::bessel_i<atomic::tiny_ad::variable<3, 2>>' requested here
                bessel_utils::bessel_i(x[0], x[1], 2.) )
                              ^
bessel.cpp:11:1: note: in instantiation of function template specialization 'atomic::bessel_i_expoEval<3, 2, 8, 9>::operator()<const double, double>' requested here
TMB_BIND_ATOMIC(bessel_i_expo,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:172:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    NAME ## Eval<order, ninput, noutput, mask>()(tx, ty);               \
    ^
<scratch space>:80:1: note: expanded from here
bessel_i_expoEval
^
bessel.cpp:11:1: note: in instantiation of function template specialization 'atomic::bessel_i_expoOp<3, 2, 8, 9>::eval<const double, double>' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:195:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    eval(&(x(0)), &(ans(0)));                                           \
    ^
bessel.cpp:11:1: note: in instantiation of member function 'atomic::bessel_i_expoOp<3, 2, 8, 9>::operator()' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:215:10: note: expanded from macro 'TMB_BIND_ATOMIC'
    ty = foo(tx);                                                       \
         ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:1762:21: note: (skipping 21 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
      OperatorBase::reverse(args);
                    ^
bessel.cpp:11:1: note: in instantiation of function template specialization 'TMBad::global::getOperator<atomic::bessel_i_expoOp<0, 2, 1, 9>>' requested here
TMB_BIND_ATOMIC(bessel_i_expo,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:176:51: note: expanded from macro 'TMB_BIND_ATOMIC'
    TMBad::OperatorPure* pOp = TMBad::get_glob()->getOperator<NAME ## Op>(); \
                                                  ^
bessel.cpp:11:1: note: in instantiation of member function 'atomic::bessel_i_expoOp<0, 2, 1, 9>::add_to_tape' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:182:12: note: expanded from macro 'TMB_BIND_ATOMIC'
    return add_to_tape(x);                                              \
           ^
note: in instantiation of member function 'atomic::bessel_i_expoOp<0, 2, 1, 9>::operator()' requested here
bessel.cpp:29:18: note: in instantiation of function template specialization 'atomic::bessel_i_expo<void>' requested here
  return atomic::bessel_i_expo(args)[0];
                 ^
bessel.cpp:60:35: note: in instantiation of function template specialization 'besselI_expo<TMBad::global::ad_aug>' requested here
                                  besselI_expo(X1[i % n1], X2[i % n2]) :
                                  ^
/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, 2>]
    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, 2>]
/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 bessel.cpp:2:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:226:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel.hpp:73:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel_j.cpp:63:22: 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]
               ((alpha      == na ) ? 0 : bessel_y<Float>(x, -alpha) * sinpi(alpha)));
                 ~~~~~      ^  ~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:48:17: note: in instantiation of function template specialization 'atomic::bessel_utils::bessel_j<atomic::tiny_ad::variable<1, 2>>' requested here
                bessel_utils::bessel_j(x[0], x[1]) )
                              ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of function template specialization 'atomic::bessel_jEval<1, 2, 2, 9>::operator()<const double, double>' requested here
TMB_BIND_ATOMIC(bessel_j,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:172:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    NAME ## Eval<order, ninput, noutput, mask>()(tx, ty);               \
    ^
<scratch space>:18:1: note: expanded from here
bessel_jEval
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of function template specialization 'atomic::bessel_jOp<1, 2, 2, 9>::eval<const double, double>' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:261:10: note: expanded from macro 'TMB_BIND_ATOMIC'
    foo1.eval(&x[0], &y[0]);                                            \
         ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:17: note: in instantiation of function template specialization 'atomic::bessel_j<void>' requested here
TMB_BIND_ATOMIC(bessel_j,
                ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/distributions_R.hpp:516:22: note: in instantiation of function template specialization 'atomic::bessel_j<void>' requested here
  Type ans = atomic::bessel_j(tx)[0];
                     ^
bessel.cpp:76:34: note: in instantiation of function template specialization 'besselJ<TMBad::global::ad_aug>' requested here
  for (int i=0; i<n; i++) Y[i] = besselJ(X1[i % n1], X2[i % n2]);
                                 ^
/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 bessel.cpp:2:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:226:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel.hpp:74:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel_y.cpp:62:22: 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]
               ((alpha      == na ) ? 0 : bessel_j<Float>(x, -alpha) * sinpi(alpha)));
                 ~~~~~      ^  ~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel_j.cpp:63:36: note: in instantiation of function template specialization 'atomic::bessel_utils::bessel_y<atomic::tiny_ad::variable<1, 2>>' requested here
               ((alpha      == na ) ? 0 : bessel_y<Float>(x, -alpha) * sinpi(alpha)));
                                          ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:48:17: note: in instantiation of function template specialization 'atomic::bessel_utils::bessel_j<atomic::tiny_ad::variable<1, 2>>' requested here
                bessel_utils::bessel_j(x[0], x[1]) )
                              ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of function template specialization 'atomic::bessel_jEval<1, 2, 2, 9>::operator()<const double, double>' requested here
TMB_BIND_ATOMIC(bessel_j,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:172:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    NAME ## Eval<order, ninput, noutput, mask>()(tx, ty);               \
    ^
<scratch space>:18:1: note: expanded from here
bessel_jEval
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of function template specialization 'atomic::bessel_jOp<1, 2, 2, 9>::eval<const double, double>' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:261:10: note: expanded from macro 'TMB_BIND_ATOMIC'
    foo1.eval(&x[0], &y[0]);                                            \
         ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:17: note: in instantiation of function template specialization 'atomic::bessel_j<void>' requested here
TMB_BIND_ATOMIC(bessel_j,
                ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/distributions_R.hpp:516:22: note: in instantiation of function template specialization 'atomic::bessel_j<void>' requested here
  Type ans = atomic::bessel_j(tx)[0];
                     ^
bessel.cpp:76:34: note: in instantiation of function template specialization 'besselJ<TMBad::global::ad_aug>' requested here
  for (int i=0; i<n; i++) Y[i] = besselJ(X1[i % n1], X2[i % n2]);
                                 ^
/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 bessel.cpp:2:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:226:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel.hpp:73:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel_j.cpp:63:22: error: invalid operands to binary expression ('atomic::tiny_ad::variable<2, 2>' and 'atomic::tiny_ad::variable<2, 2>')
               ((alpha      == na ) ? 0 : bessel_y<Float>(x, -alpha) * sinpi(alpha)));
                 ~~~~~      ^  ~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:48:17: note: in instantiation of function template specialization 'atomic::bessel_utils::bessel_j<atomic::tiny_ad::variable<2, 2>>' requested here
                bessel_utils::bessel_j(x[0], x[1]) )
                              ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of function template specialization 'atomic::bessel_jEval<2, 2, 4, 9>::operator()<const double, double>' requested here
TMB_BIND_ATOMIC(bessel_j,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:172:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    NAME ## Eval<order, ninput, noutput, mask>()(tx, ty);               \
    ^
<scratch space>:18:1: note: expanded from here
bessel_jEval
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of function template specialization 'atomic::bessel_jOp<2, 2, 4, 9>::eval<const double, double>' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:195:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    eval(&(x(0)), &(ans(0)));                                           \
    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of member function 'atomic::bessel_jOp<2, 2, 4, 9>::operator()' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:215:10: note: expanded from macro 'TMB_BIND_ATOMIC'
    ty = foo(tx);                                                       \
         ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:1762:21: note: in instantiation of function template specialization 'atomic::bessel_jOp<1, 2, 2, 9>::reverse<double>' requested here
      OperatorBase::reverse(args);
                    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:2155:50: note: (skipping 12 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    void reverse(ReverseArgs<Scalar> &args) { Op.reverse(args); }
                                                 ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of function template specialization 'TMBad::global::getOperator<atomic::bessel_jOp<0, 2, 1, 9>>' requested here
TMB_BIND_ATOMIC(bessel_j,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:176:51: note: expanded from macro 'TMB_BIND_ATOMIC'
    TMBad::OperatorPure* pOp = TMBad::get_glob()->getOperator<NAME ## Op>(); \
                                                  ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of member function 'atomic::bessel_jOp<0, 2, 1, 9>::add_to_tape' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:182:12: note: expanded from macro 'TMB_BIND_ATOMIC'
    return add_to_tape(x);                                              \
           ^
note: in instantiation of member function 'atomic::bessel_jOp<0, 2, 1, 9>::operator()' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/distributions_R.hpp:516:22: note: in instantiation of function template specialization 'atomic::bessel_j<void>' requested here
  Type ans = atomic::bessel_j(tx)[0];
                     ^
bessel.cpp:76:34: note: in instantiation of function template specialization 'besselJ<TMBad::global::ad_aug>' requested here
  for (int i=0; i<n; i++) Y[i] = besselJ(X1[i % n1], X2[i % n2]);
                                 ^
/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, 2>' 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/Rcpp/include/Rcpp/complex.h:68:13: note: candidate function not viable: no known conversion from 'atomic::tiny_ad::variable<2, 2>' to 'const Rcomplex' for 1st argument
inline bool operator==( const Rcomplex& a, const Rcomplex& b) {
            ^
/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, 2>' 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/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__Vector.h:118:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
operator==(
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__Vector.h:118:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__primitive.h:211:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
operator==(
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__primitive.h:211:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__primitive.h:231:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
operator==(
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__primitive.h:231:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
/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, 2>]
    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, 2>]
/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 bessel.cpp:2:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:226:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:48:3: error: no matching function for call to 'bessel_j'
                bessel_utils::bessel_j(x[0], x[1]) )
                ^~~~~~~~~~~~~~~~~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:152:14: note: expanded from macro 'TMB_BIND_ATOMIC'
    tyref = (CALL).getDeriv();                                          \
             ^~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of function template specialization 'atomic::bessel_jEval<2, 2, 4, 9>::operator()<double, double>' requested here
TMB_BIND_ATOMIC(bessel_j,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:172:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    NAME ## Eval<order, ninput, noutput, mask>()(tx, ty);               \
    ^
<scratch space>:18:1: note: expanded from here
bessel_jEval
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of function template specialization 'atomic::bessel_jOp<2, 2, 4, 9>::eval<double, double>' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:205:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    eval(x, &(args.y(0)));                                              \
    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:1758:21: note: in instantiation of member function 'atomic::bessel_jOp<2, 2, 4, 9>::forward' requested here
      OperatorBase::forward(args);
                    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:2154:50: note: in instantiation of function template specialization 'TMBad::global::AddForwardMarkReverseMark<TMBad::global::AddIncrementDecrement<TMBad::global::AddDependencies<TMBad::global::AddInputSizeOutputSize<atomic::bessel_jOp<2, 2, 4, 9>>>>>::forward<double>' requested here
    void forward(ForwardArgs<Scalar> &args) { Op.forward(args); }
                                                 ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:2152:18: note: in instantiation of member function 'TMBad::global::Complete<atomic::bessel_jOp<2, 2, 4, 9>>::forward' requested here
    INHERIT_CTOR(Complete, Op)
                 ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:702:40: note: (skipping 18 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    static CompleteOperator *pOp = new CompleteOperator();
                                       ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of function template specialization 'TMBad::global::getOperator<atomic::bessel_jOp<0, 2, 1, 9>>' requested here
TMB_BIND_ATOMIC(bessel_j,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:176:51: note: expanded from macro 'TMB_BIND_ATOMIC'
    TMBad::OperatorPure* pOp = TMBad::get_glob()->getOperator<NAME ## Op>(); \
                                                  ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of member function 'atomic::bessel_jOp<0, 2, 1, 9>::add_to_tape' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:182:12: note: expanded from macro 'TMB_BIND_ATOMIC'
    return add_to_tape(x);                                              \
           ^
note: in instantiation of member function 'atomic::bessel_jOp<0, 2, 1, 9>::operator()' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/distributions_R.hpp:516:22: note: in instantiation of function template specialization 'atomic::bessel_j<void>' requested here
  Type ans = atomic::bessel_j(tx)[0];
                     ^
bessel.cpp:76:34: note: in instantiation of function template specialization 'besselJ<TMBad::global::ad_aug>' requested here
  for (int i=0; i<n; i++) Y[i] = besselJ(X1[i % n1], X2[i % n2]);
                                 ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel_j.cpp:42:7: note: candidate template ignored: substitution failure [with Float = atomic::tiny_ad::variable<2, 2>]
Float bessel_j(Float x, Float alpha)
      ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel_j.cpp:63:22: error: invalid operands to binary expression ('atomic::tiny_ad::variable<3, 2>' and 'atomic::tiny_ad::variable<3, 2>')
               ((alpha      == na ) ? 0 : bessel_y<Float>(x, -alpha) * sinpi(alpha)));
                 ~~~~~      ^  ~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:48:17: note: in instantiation of function template specialization 'atomic::bessel_utils::bessel_j<atomic::tiny_ad::variable<3, 2>>' requested here
                bessel_utils::bessel_j(x[0], x[1]) )
                              ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of function template specialization 'atomic::bessel_jEval<3, 2, 8, 9>::operator()<const double, double>' requested here
TMB_BIND_ATOMIC(bessel_j,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:172:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    NAME ## Eval<order, ninput, noutput, mask>()(tx, ty);               \
    ^
<scratch space>:18:1: note: expanded from here
bessel_jEval
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of function template specialization 'atomic::bessel_jOp<3, 2, 8, 9>::eval<const double, double>' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:195:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    eval(&(x(0)), &(ans(0)));                                           \
    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of member function 'atomic::bessel_jOp<3, 2, 8, 9>::operator()' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:215:10: note: expanded from macro 'TMB_BIND_ATOMIC'
    ty = foo(tx);                                                       \
         ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:1762:21: note: in instantiation of function template specialization 'atomic::bessel_jOp<2, 2, 4, 9>::reverse<double>' requested here
      OperatorBase::reverse(args);
                    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:2155:50: note: (skipping 20 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    void reverse(ReverseArgs<Scalar> &args) { Op.reverse(args); }
                                                 ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of function template specialization 'TMBad::global::getOperator<atomic::bessel_jOp<0, 2, 1, 9>>' requested here
TMB_BIND_ATOMIC(bessel_j,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:176:51: note: expanded from macro 'TMB_BIND_ATOMIC'
    TMBad::OperatorPure* pOp = TMBad::get_glob()->getOperator<NAME ## Op>(); \
                                                  ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of member function 'atomic::bessel_jOp<0, 2, 1, 9>::add_to_tape' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:182:12: note: expanded from macro 'TMB_BIND_ATOMIC'
    return add_to_tape(x);                                              \
           ^
note: in instantiation of member function 'atomic::bessel_jOp<0, 2, 1, 9>::operator()' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/distributions_R.hpp:516:22: note: in instantiation of function template specialization 'atomic::bessel_j<void>' requested here
  Type ans = atomic::bessel_j(tx)[0];
                     ^
bessel.cpp:76:34: note: in instantiation of function template specialization 'besselJ<TMBad::global::ad_aug>' requested here
  for (int i=0; i<n; i++) Y[i] = besselJ(X1[i % n1], X2[i % n2]);
                                 ^
/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, 2>' 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/Rcpp/include/Rcpp/complex.h:68:13: note: candidate function not viable: no known conversion from 'atomic::tiny_ad::variable<3, 2>' to 'const Rcomplex' for 1st argument
inline bool operator==( const Rcomplex& a, const Rcomplex& b) {
            ^
/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, 2>' 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/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__Vector.h:118:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
operator==(
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__Vector.h:118:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__primitive.h:211:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
operator==(
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__primitive.h:211:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__primitive.h:231:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
operator==(
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__primitive.h:231:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
/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, 2>]
    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, 2>]
/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 bessel.cpp:2:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:226:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:48:3: error: no matching function for call to 'bessel_j'
                bessel_utils::bessel_j(x[0], x[1]) )
                ^~~~~~~~~~~~~~~~~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:152:14: note: expanded from macro 'TMB_BIND_ATOMIC'
    tyref = (CALL).getDeriv();                                          \
             ^~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of function template specialization 'atomic::bessel_jEval<3, 2, 8, 9>::operator()<double, double>' requested here
TMB_BIND_ATOMIC(bessel_j,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:172:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    NAME ## Eval<order, ninput, noutput, mask>()(tx, ty);               \
    ^
<scratch space>:18:1: note: expanded from here
bessel_jEval
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of function template specialization 'atomic::bessel_jOp<3, 2, 8, 9>::eval<double, double>' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:205:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    eval(x, &(args.y(0)));                                              \
    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:1758:21: note: in instantiation of member function 'atomic::bessel_jOp<3, 2, 8, 9>::forward' requested here
      OperatorBase::forward(args);
                    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:2154:50: note: in instantiation of function template specialization 'TMBad::global::AddForwardMarkReverseMark<TMBad::global::AddIncrementDecrement<TMBad::global::AddDependencies<TMBad::global::AddInputSizeOutputSize<atomic::bessel_jOp<3, 2, 8, 9>>>>>::forward<double>' requested here
    void forward(ForwardArgs<Scalar> &args) { Op.forward(args); }
                                                 ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:2152:18: note: in instantiation of member function 'TMBad::global::Complete<atomic::bessel_jOp<3, 2, 8, 9>>::forward' requested here
    INHERIT_CTOR(Complete, Op)
                 ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:702:40: note: (skipping 26 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    static CompleteOperator *pOp = new CompleteOperator();
                                       ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of function template specialization 'TMBad::global::getOperator<atomic::bessel_jOp<0, 2, 1, 9>>' requested here
TMB_BIND_ATOMIC(bessel_j,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:176:51: note: expanded from macro 'TMB_BIND_ATOMIC'
    TMBad::OperatorPure* pOp = TMBad::get_glob()->getOperator<NAME ## Op>(); \
                                                  ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:46:1: note: in instantiation of member function 'atomic::bessel_jOp<0, 2, 1, 9>::add_to_tape' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:182:12: note: expanded from macro 'TMB_BIND_ATOMIC'
    return add_to_tape(x);                                              \
           ^
note: in instantiation of member function 'atomic::bessel_jOp<0, 2, 1, 9>::operator()' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/distributions_R.hpp:516:22: note: in instantiation of function template specialization 'atomic::bessel_j<void>' requested here
  Type ans = atomic::bessel_j(tx)[0];
                     ^
bessel.cpp:76:34: note: in instantiation of function template specialization 'besselJ<TMBad::global::ad_aug>' requested here
  for (int i=0; i<n; i++) Y[i] = besselJ(X1[i % n1], X2[i % n2]);
                                 ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel_j.cpp:42:7: note: candidate template ignored: substitution failure [with Float = atomic::tiny_ad::variable<3, 2>]
Float bessel_j(Float x, Float alpha)
      ^
In file included from bessel.cpp:2:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:226:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel.hpp:74:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel_y.cpp:62:22: error: invalid operands to binary expression ('atomic::tiny_ad::variable<2, 2>' and 'atomic::tiny_ad::variable<2, 2>')
               ((alpha      == na ) ? 0 : bessel_j<Float>(x, -alpha) * sinpi(alpha)));
                 ~~~~~      ^  ~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:56:17: note: in instantiation of function template specialization 'atomic::bessel_utils::bessel_y<atomic::tiny_ad::variable<2, 2>>' requested here
                bessel_utils::bessel_y(x[0], x[1]) )
                              ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:54:1: note: in instantiation of function template specialization 'atomic::bessel_yEval<2, 2, 4, 9>::operator()<const double, double>' requested here
TMB_BIND_ATOMIC(bessel_y,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:172:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    NAME ## Eval<order, ninput, noutput, mask>()(tx, ty);               \
    ^
<scratch space>:39:1: note: expanded from here
bessel_yEval
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:54:1: note: in instantiation of function template specialization 'atomic::bessel_yOp<2, 2, 4, 9>::eval<const double, double>' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:195:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    eval(&(x(0)), &(ans(0)));                                           \
    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:54:1: note: in instantiation of member function 'atomic::bessel_yOp<2, 2, 4, 9>::operator()' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:215:10: note: expanded from macro 'TMB_BIND_ATOMIC'
    ty = foo(tx);                                                       \
         ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:1762:21: note: in instantiation of function template specialization 'atomic::bessel_yOp<1, 2, 2, 9>::reverse<double>' requested here
      OperatorBase::reverse(args);
                    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:2155:50: note: (skipping 12 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    void reverse(ReverseArgs<Scalar> &args) { Op.reverse(args); }
                                                 ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:54:1: note: in instantiation of function template specialization 'TMBad::global::getOperator<atomic::bessel_yOp<0, 2, 1, 9>>' requested here
TMB_BIND_ATOMIC(bessel_y,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:176:51: note: expanded from macro 'TMB_BIND_ATOMIC'
    TMBad::OperatorPure* pOp = TMBad::get_glob()->getOperator<NAME ## Op>(); \
                                                  ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:54:1: note: in instantiation of member function 'atomic::bessel_yOp<0, 2, 1, 9>::add_to_tape' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:182:12: note: expanded from macro 'TMB_BIND_ATOMIC'
    return add_to_tape(x);                                              \
           ^
note: in instantiation of member function 'atomic::bessel_yOp<0, 2, 1, 9>::operator()' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/distributions_R.hpp:531:22: note: in instantiation of function template specialization 'atomic::bessel_y<void>' requested here
  Type ans = atomic::bessel_y(tx)[0];
                     ^
bessel.cpp:91:34: note: in instantiation of function template specialization 'besselY<TMBad::global::ad_aug>' requested here
  for (int i=0; i<n; i++) Y[i] = besselY(X1[i % n1], X2[i % n2]);
                                 ^
/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, 2>' 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/Rcpp/include/Rcpp/complex.h:68:13: note: candidate function not viable: no known conversion from 'atomic::tiny_ad::variable<2, 2>' to 'const Rcomplex' for 1st argument
inline bool operator==( const Rcomplex& a, const Rcomplex& b) {
            ^
/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, 2>' 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/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__Vector.h:118:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
operator==(
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__Vector.h:118:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__primitive.h:211:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
operator==(
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__primitive.h:211:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__primitive.h:231:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
operator==(
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__primitive.h:231:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
/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, 2>]
    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, 2>]
/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 bessel.cpp:2:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:226:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:56:3: error: no matching function for call to 'bessel_y'
                bessel_utils::bessel_y(x[0], x[1]) )
                ^~~~~~~~~~~~~~~~~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:152:14: note: expanded from macro 'TMB_BIND_ATOMIC'
    tyref = (CALL).getDeriv();                                          \
             ^~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:54:1: note: in instantiation of function template specialization 'atomic::bessel_yEval<2, 2, 4, 9>::operator()<double, double>' requested here
TMB_BIND_ATOMIC(bessel_y,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:172:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    NAME ## Eval<order, ninput, noutput, mask>()(tx, ty);               \
    ^
<scratch space>:39:1: note: expanded from here
bessel_yEval
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:54:1: note: in instantiation of function template specialization 'atomic::bessel_yOp<2, 2, 4, 9>::eval<double, double>' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:205:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    eval(x, &(args.y(0)));                                              \
    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:1758:21: note: in instantiation of member function 'atomic::bessel_yOp<2, 2, 4, 9>::forward' requested here
      OperatorBase::forward(args);
                    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:2154:50: note: in instantiation of function template specialization 'TMBad::global::AddForwardMarkReverseMark<TMBad::global::AddIncrementDecrement<TMBad::global::AddDependencies<TMBad::global::AddInputSizeOutputSize<atomic::bessel_yOp<2, 2, 4, 9>>>>>::forward<double>' requested here
    void forward(ForwardArgs<Scalar> &args) { Op.forward(args); }
                                                 ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:2152:18: note: in instantiation of member function 'TMBad::global::Complete<atomic::bessel_yOp<2, 2, 4, 9>>::forward' requested here
    INHERIT_CTOR(Complete, Op)
                 ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:702:40: note: (skipping 18 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    static CompleteOperator *pOp = new CompleteOperator();
                                       ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:54:1: note: in instantiation of function template specialization 'TMBad::global::getOperator<atomic::bessel_yOp<0, 2, 1, 9>>' requested here
TMB_BIND_ATOMIC(bessel_y,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:176:51: note: expanded from macro 'TMB_BIND_ATOMIC'
    TMBad::OperatorPure* pOp = TMBad::get_glob()->getOperator<NAME ## Op>(); \
                                                  ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:54:1: note: in instantiation of member function 'atomic::bessel_yOp<0, 2, 1, 9>::add_to_tape' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:182:12: note: expanded from macro 'TMB_BIND_ATOMIC'
    return add_to_tape(x);                                              \
           ^
note: in instantiation of member function 'atomic::bessel_yOp<0, 2, 1, 9>::operator()' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/distributions_R.hpp:531:22: note: in instantiation of function template specialization 'atomic::bessel_y<void>' requested here
  Type ans = atomic::bessel_y(tx)[0];
                     ^
bessel.cpp:91:34: note: in instantiation of function template specialization 'besselY<TMBad::global::ad_aug>' requested here
  for (int i=0; i<n; i++) Y[i] = besselY(X1[i % n1], X2[i % n2]);
                                 ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel_y.cpp:41:7: note: candidate template ignored: substitution failure [with Float = atomic::tiny_ad::variable<2, 2>]
Float bessel_y(Float x, Float alpha)
      ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel_y.cpp:62:22: error: invalid operands to binary expression ('atomic::tiny_ad::variable<3, 2>' and 'atomic::tiny_ad::variable<3, 2>')
               ((alpha      == na ) ? 0 : bessel_j<Float>(x, -alpha) * sinpi(alpha)));
                 ~~~~~      ^  ~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:56:17: note: in instantiation of function template specialization 'atomic::bessel_utils::bessel_y<atomic::tiny_ad::variable<3, 2>>' requested here
                bessel_utils::bessel_y(x[0], x[1]) )
                              ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:54:1: note: in instantiation of function template specialization 'atomic::bessel_yEval<3, 2, 8, 9>::operator()<const double, double>' requested here
TMB_BIND_ATOMIC(bessel_y,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:172:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    NAME ## Eval<order, ninput, noutput, mask>()(tx, ty);               \
    ^
<scratch space>:39:1: note: expanded from here
bessel_yEval
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:54:1: note: in instantiation of function template specialization 'atomic::bessel_yOp<3, 2, 8, 9>::eval<const double, double>' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:195:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    eval(&(x(0)), &(ans(0)));                                           \
    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:54:1: note: in instantiation of member function 'atomic::bessel_yOp<3, 2, 8, 9>::operator()' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:215:10: note: expanded from macro 'TMB_BIND_ATOMIC'
    ty = foo(tx);                                                       \
         ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:1762:21: note: in instantiation of function template specialization 'atomic::bessel_yOp<2, 2, 4, 9>::reverse<double>' requested here
      OperatorBase::reverse(args);
                    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:2155:50: note: (skipping 20 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    void reverse(ReverseArgs<Scalar> &args) { Op.reverse(args); }
                                                 ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:54:1: note: in instantiation of function template specialization 'TMBad::global::getOperator<atomic::bessel_yOp<0, 2, 1, 9>>' requested here
TMB_BIND_ATOMIC(bessel_y,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:176:51: note: expanded from macro 'TMB_BIND_ATOMIC'
    TMBad::OperatorPure* pOp = TMBad::get_glob()->getOperator<NAME ## Op>(); \
                                                  ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:54:1: note: in instantiation of member function 'atomic::bessel_yOp<0, 2, 1, 9>::add_to_tape' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:182:12: note: expanded from macro 'TMB_BIND_ATOMIC'
    return add_to_tape(x);                                              \
           ^
note: in instantiation of member function 'atomic::bessel_yOp<0, 2, 1, 9>::operator()' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/distributions_R.hpp:531:22: note: in instantiation of function template specialization 'atomic::bessel_y<void>' requested here
  Type ans = atomic::bessel_y(tx)[0];
                     ^
bessel.cpp:91:34: note: in instantiation of function template specialization 'besselY<TMBad::global::ad_aug>' requested here
  for (int i=0; i<n; i++) Y[i] = besselY(X1[i % n1], X2[i % n2]);
                                 ^
/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, 2>' 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/Rcpp/include/Rcpp/complex.h:68:13: note: candidate function not viable: no known conversion from 'atomic::tiny_ad::variable<3, 2>' to 'const Rcomplex' for 1st argument
inline bool operator==( const Rcomplex& a, const Rcomplex& b) {
            ^
/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, 2>' 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/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__Vector.h:118:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
operator==(
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__Vector.h:118:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__primitive.h:211:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
operator==(
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__primitive.h:211:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__primitive.h:231:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
operator==(
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/sugar/operators/logical_operators__Vector__primitive.h:231:1: note: candidate template ignored: could not match 'VectorBase' against 'variable'
/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, 2>]
    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, 2>]
/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 bessel.cpp:2:
In file included from ./RTMB.h:6:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:226:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:56:3: error: no matching function for call to 'bessel_y'
                bessel_utils::bessel_y(x[0], x[1]) )
                ^~~~~~~~~~~~~~~~~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:152:14: note: expanded from macro 'TMB_BIND_ATOMIC'
    tyref = (CALL).getDeriv();                                          \
             ^~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:54:1: note: in instantiation of function template specialization 'atomic::bessel_yEval<3, 2, 8, 9>::operator()<double, double>' requested here
TMB_BIND_ATOMIC(bessel_y,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:172:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    NAME ## Eval<order, ninput, noutput, mask>()(tx, ty);               \
    ^
<scratch space>:39:1: note: expanded from here
bessel_yEval
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:54:1: note: in instantiation of function template specialization 'atomic::bessel_yOp<3, 2, 8, 9>::eval<double, double>' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:205:5: note: expanded from macro 'TMB_BIND_ATOMIC'
    eval(x, &(args.y(0)));                                              \
    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:1758:21: note: in instantiation of member function 'atomic::bessel_yOp<3, 2, 8, 9>::forward' requested here
      OperatorBase::forward(args);
                    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:2154:50: note: in instantiation of function template specialization 'TMBad::global::AddForwardMarkReverseMark<TMBad::global::AddIncrementDecrement<TMBad::global::AddDependencies<TMBad::global::AddInputSizeOutputSize<atomic::bessel_yOp<3, 2, 8, 9>>>>>::forward<double>' requested here
    void forward(ForwardArgs<Scalar> &args) { Op.forward(args); }
                                                 ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:2152:18: note: in instantiation of member function 'TMBad::global::Complete<atomic::bessel_yOp<3, 2, 8, 9>>::forward' requested here
    INHERIT_CTOR(Complete, Op)
                 ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:702:40: note: (skipping 26 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    static CompleteOperator *pOp = new CompleteOperator();
                                       ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:54:1: note: in instantiation of function template specialization 'TMBad::global::getOperator<atomic::bessel_yOp<0, 2, 1, 9>>' requested here
TMB_BIND_ATOMIC(bessel_y,
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:176:51: note: expanded from macro 'TMB_BIND_ATOMIC'
    TMBad::OperatorPure* pOp = TMBad::get_glob()->getOperator<NAME ## Op>(); \
                                                  ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/atomic.hpp:54:1: note: in instantiation of member function 'atomic::bessel_yOp<0, 2, 1, 9>::add_to_tape' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/mask.hpp:182:12: note: expanded from macro 'TMB_BIND_ATOMIC'
    return add_to_tape(x);                                              \
           ^
note: in instantiation of member function 'atomic::bessel_yOp<0, 2, 1, 9>::operator()' requested here
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/distributions_R.hpp:531:22: note: in instantiation of function template specialization 'atomic::bessel_y<void>' requested here
  Type ans = atomic::bessel_y(tx)[0];
                     ^
bessel.cpp:91:34: note: in instantiation of function template specialization 'besselY<TMBad::global::ad_aug>' requested here
  for (int i=0; i<n; i++) Y[i] = besselY(X1[i % n1], X2[i % n2]);
                                 ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tiny_ad/bessel/bessel_y.cpp:41:7: note: candidate template ignored: substitution failure [with Float = atomic::tiny_ad::variable<3, 2>]
Float bessel_y(Float x, Float alpha)
      ^
8 warnings and 10 errors generated.
make: *** [bessel.o] Error 1
make: *** Waiting for unfinished jobs....
3 warnings generated.
3 warnings generated.
3 warnings generated.
In file included from TMB.cpp:2:
In file included from ./TMB.h:38:
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:28:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/SparseCholesky:34:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseCholesky/SimplicialCholesky_impl.h:150:12: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'Eigen::SimplicialCholeskyBase<Eigen::SimplicialLLT<Eigen::SparseMatrix<atomic::tiny_ad::variable<1, 1>, 0>, 1, Eigen::AMDOrdering<int>>>::RealScalar' (aka 'atomic::tiny_ad::variable<1, 1>') and 'Eigen::SimplicialCholeskyBase<Eigen::SimplicialLLT<Eigen::SparseMatrix<atomic::tiny_ad::variable<1, 1>, 0>, 1, Eigen::AMDOrdering<int>>>::RealScalar') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
      if(d == RealScalar(0))
         ~ ^  ~~~~~~~~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseCholesky/SimplicialCholesky.h:210:7: note: in instantiation of function template specialization 'Eigen::SimplicialCholeskyBase<Eigen::SimplicialLLT<Eigen::SparseMatrix<atomic::tiny_ad::variable<1, 1>, 0>, 1, Eigen::AMDOrdering<int>>>::factorize_preordered<false>' requested here
      factorize_preordered<DoLDLT>(*pmat);
      ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseCholesky/SimplicialCholesky.h:374:22: note: in instantiation of function template specialization 'Eigen::SimplicialCholeskyBase<Eigen::SimplicialLLT<Eigen::SparseMatrix<atomic::tiny_ad::variable<1, 1>, 0>, 1, Eigen::AMDOrdering<int>>>::compute<false>' requested here
      Base::template compute<false>(matrix);
                     ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseCholesky/SimplicialCholesky.h:97:17: note: in instantiation of member function 'Eigen::SimplicialLLT<Eigen::SparseMatrix<atomic::tiny_ad::variable<1, 1>, 0>, 1, Eigen::AMDOrdering<int>>::compute' requested here
      derived().compute(matrix);
                ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseCholesky/SimplicialCholesky.h:357:11: note: in instantiation of member function 'Eigen::SimplicialCholeskyBase<Eigen::SimplicialLLT<Eigen::SparseMatrix<atomic::tiny_ad::variable<1, 1>, 0>, 1, Eigen::AMDOrdering<int>>>::SimplicialCholeskyBase' requested here
        : Base(matrix) {}
          ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:1935:9: note: in instantiation of member function 'Eigen::SimplicialLLT<Eigen::SparseMatrix<atomic::tiny_ad::variable<1, 1>, 0>, 1, Eigen::AMDOrdering<int>>::SimplicialLLT' requested here
      : __value_(_VSTD::forward<_Args>(_VSTD::get<_Indexes>(__args))...) {}
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: (skipping 10 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmbutils/newton.hpp:1332:46: note: in instantiation of function template specialization 'TMBad::global::Complete<newton::LogDetOperator<>>::Complete<Eigen::SparseMatrix<double, 0>, std::shared_ptr<Eigen::SimplicialLLT<Eigen::SparseMatrix<double, 0>, 1, Eigen::AMDOrdering<int>>>>' requested here
  TMBad::global::Complete<LogDetOperator<> > LD(pattern<double>(H), ptr->llt);
                                             ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmbutils/newton.hpp:1452:12: note: in instantiation of function template specialization 'newton::log_determinant<TMBad::global::ad_aug>' requested here
      .5 * log_determinant( hessian(),
           ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmbutils/newton.hpp:1555:18: note: in instantiation of member function 'newton::NewtonSolver<newton::slice<>, TMBad::global::ad_aug, newton::jacobian_sparse_t<>>::Laplace' requested here
      return opt.Laplace();
                 ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmbutils/newton.hpp:1600:11: note: in instantiation of function template specialization 'newton::Laplace<newton::slice<>, TMBad::global::ad_aug>' requested here
    T y = Laplace(*this, start, cfg);
          ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmbutils/newton.hpp:1610:12: note: in instantiation of member function 'newton::slice<>::Laplace_' requested here
  return S.Laplace_(cfg);
           ^
/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{    \
         ^
3 warnings generated.
In file included from TMB.cpp:2:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:128:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/TMBad.hpp:6:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/graph_transform.hpp:10:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/integrate.hpp:146:50: warning: ISO C++20 considers use of overloaded operator '!=' (with operand types 'TMBad::adaptive<TMBad::global::ad_aug>' and 'TMBad::adaptive<TMBad::global::ad_aug>') 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) || *abserr == 0.)
                                         ~~~~~~~ ^  ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/integrate.hpp:72:3: note: in instantiation of function template specialization 'TMBad::rdqagie<TMBad::adaptive<TMBad::global::ad_aug>, TMBad::Integral<TMBad::logIntegrate_t<>>::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/TMBad/integrate.hpp:1076:7: note: in instantiation of function template specialization 'TMBad::Rdqagi<TMBad::adaptive<TMBad::global::ad_aug>, TMBad::Integral<TMBad::logIntegrate_t<>>::vectorized_integrand>' requested here
      Rdqagi(fn, NULL, &bound, &inf, &epsabs, &epsrel, &result, &abserr, &neval,
      ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/integrate.hpp:1117:10: note: in instantiation of member function 'TMBad::Integral<TMBad::logIntegrate_t<>>::operator()' requested here
  return I();
         ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/graph_transform.hpp:296:15: note: in instantiation of function template specialization 'TMBad::integrate<TMBad::logIntegrate_t<>>' requested here
    Float I = integrate(*this);
              ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/graph_transform.hpp:391:21: note: in instantiation of member function 'TMBad::logIntegrate_t<>::operator()' requested here
      taped_integral(boundary_vars2)[0].Dependent();
                    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/graph_transform.hpp:398:7: note: in instantiation of member function 'TMBad::integrate_subgraph<TMBad::ADFun<>>::try_integrate_variable' requested here
      try_integrate_variable(random[i]);
      ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/TMBad.hpp:963:20: note: in instantiation of member function 'TMBad::integrate_subgraph<TMBad::ADFun<>>::gk' requested here
    ans.glob = i_s.gk();
                   ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1585:19: note: in instantiation of member function 'TMBad::ADFun<>::marginal_gk' requested here
      *pf = pf -> marginal_gk(random, cfg);
                  ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:3092:8: note: candidate function with non-reversed arguments
  bool operator!=(const T &other) const {
       ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:3089:8: note: ambiguous candidate function with reversed arguments
  bool operator==(const T &other) const {
       ^
In file included from TMB.cpp:2:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:128:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/TMBad.hpp:6:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/graph_transform.hpp:10:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/integrate.hpp:185:18: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'TMBad::adaptive<TMBad::global::ad_aug>' and 'TMBad::adaptive<TMBad::global::ad_aug>') 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/TMBad/global.hpp:3089:8: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
  bool operator==(const T &other) const {
       ^
In file included from TMB.cpp:2:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:128:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/TMBad.hpp:6:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/graph_transform.hpp:10:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/integrate.hpp:185:38: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'TMBad::adaptive<TMBad::global::ad_aug>' and 'TMBad::adaptive<TMBad::global::ad_aug>') 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/TMBad/global.hpp:3089:8: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
  bool operator==(const T &other) const {
       ^
In file included from TMB.cpp:2:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:128:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/TMBad.hpp:6:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/graph_transform.hpp:10:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/integrate.hpp:303:15: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'TMBad::adaptive<TMBad::global::ad_aug>' and 'TMBad::adaptive<TMBad::global::ad_aug>') 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/TMBad/global.hpp:3089:8: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
  bool operator==(const T &other) const {
       ^
In file included from TMB.cpp:2:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:128:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/TMBad.hpp:6:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/graph_transform.hpp:285:29: warning: ISO C++20 considers use of overloaded operator '!=' (with operand types 'TMBad::adaptive<TMBad::global::ad_aug>' and 'TMBad::adaptive<TMBad::global::ad_aug>') to be ambiguous despite there being a unique best viable function with non-reversed arguments [-Wambiguous-reversed-operator]
    if (cfg.nan2zero && ans != ans) ans = 0;
                        ~~~ ^  ~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/integrate.hpp:1019:42: note: in instantiation of member function 'TMBad::logIntegrate_t<>::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/TMBad/integrate.hpp:657:3: note: in instantiation of member function 'TMBad::Integral<TMBad::logIntegrate_t<>>::vectorized_integrand::operator()' requested here
  f(vec, 15, ex);
  ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/integrate.hpp:136:3: note: in instantiation of function template specialization 'TMBad::rdqk15i<TMBad::adaptive<TMBad::global::ad_aug>, TMBad::Integral<TMBad::logIntegrate_t<>>::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/TMBad/integrate.hpp:72:3: note: in instantiation of function template specialization 'TMBad::rdqagie<TMBad::adaptive<TMBad::global::ad_aug>, TMBad::Integral<TMBad::logIntegrate_t<>>::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/TMBad/integrate.hpp:1076:7: note: in instantiation of function template specialization 'TMBad::Rdqagi<TMBad::adaptive<TMBad::global::ad_aug>, TMBad::Integral<TMBad::logIntegrate_t<>>::vectorized_integrand>' requested here
      Rdqagi(fn, NULL, &bound, &inf, &epsabs, &epsrel, &result, &abserr, &neval,
      ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/integrate.hpp:1117:10: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
  return I();
         ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/graph_transform.hpp:296:15: note: in instantiation of function template specialization 'TMBad::integrate<TMBad::logIntegrate_t<>>' requested here
    Float I = integrate(*this);
              ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/graph_transform.hpp:391:21: note: in instantiation of member function 'TMBad::logIntegrate_t<>::operator()' requested here
      taped_integral(boundary_vars2)[0].Dependent();
                    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/graph_transform.hpp:398:7: note: in instantiation of member function 'TMBad::integrate_subgraph<TMBad::ADFun<>>::try_integrate_variable' requested here
      try_integrate_variable(random[i]);
      ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/TMBad.hpp:963:20: note: in instantiation of member function 'TMBad::integrate_subgraph<TMBad::ADFun<>>::gk' requested here
    ans.glob = i_s.gk();
                   ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1585:19: note: in instantiation of member function 'TMBad::ADFun<>::marginal_gk' requested here
      *pf = pf -> marginal_gk(random, cfg);
                  ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:3092:8: note: candidate function with non-reversed arguments
  bool operator!=(const T &other) const {
       ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:3089:8: note: ambiguous candidate function with reversed arguments
  bool operator==(const T &other) const {
       ^
In file included from TMB.cpp:2:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:128:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/TMBad.hpp:6:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/graph_transform.hpp:10:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/integrate.hpp:428:50: warning: ISO C++20 considers use of overloaded operator '!=' (with operand types 'TMBad::adaptive<TMBad::global::ad_aug>' and 'TMBad::adaptive<TMBad::global::ad_aug>') 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) || *abserr == 0.)
                                         ~~~~~~~ ^  ~~~~~~
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/integrate.hpp:366:3: note: in instantiation of function template specialization 'TMBad::rdqagse<TMBad::adaptive<TMBad::global::ad_aug>, TMBad::Integral<TMBad::logIntegrate_t<>>::vectorized_integrand>' requested here
  rdqagse(f, ex, a, b, epsabs, epsrel, limit, result, abserr, neval, ier, work,
  ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/integrate.hpp:1079:7: note: in instantiation of function template specialization 'TMBad::Rdqags<TMBad::adaptive<TMBad::global::ad_aug>, TMBad::Integral<TMBad::logIntegrate_t<>>::vectorized_integrand>' requested here
      Rdqags(fn, NULL, &a, &b, &epsabs, &epsrel, &result, &abserr, &neval, &ier,
      ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/integrate.hpp:1117:10: note: in instantiation of member function 'TMBad::Integral<TMBad::logIntegrate_t<>>::operator()' requested here
  return I();
         ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/graph_transform.hpp:296:15: note: in instantiation of function template specialization 'TMBad::integrate<TMBad::logIntegrate_t<>>' requested here
    Float I = integrate(*this);
              ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/graph_transform.hpp:391:21: note: in instantiation of member function 'TMBad::logIntegrate_t<>::operator()' requested here
      taped_integral(boundary_vars2)[0].Dependent();
                    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/graph_transform.hpp:398:7: note: in instantiation of member function 'TMBad::integrate_subgraph<TMBad::ADFun<>>::try_integrate_variable' requested here
      try_integrate_variable(random[i]);
      ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/TMBad.hpp:963:20: note: in instantiation of member function 'TMBad::integrate_subgraph<TMBad::ADFun<>>::gk' requested here
    ans.glob = i_s.gk();
                   ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/tmb_core.hpp:1585:19: note: in instantiation of member function 'TMBad::ADFun<>::marginal_gk' requested here
      *pf = pf -> marginal_gk(random, cfg);
                  ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:3092:8: note: candidate function with non-reversed arguments
  bool operator!=(const T &other) const {
       ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/global.hpp:3089:8: note: ambiguous candidate function with reversed arguments
  bool operator==(const T &other) const {
       ^
In file included from TMB.cpp:2:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:128:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/TMBad.hpp:6:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/graph_transform.hpp:10:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/integrate.hpp:464:18: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'TMBad::adaptive<TMBad::global::ad_aug>' and 'TMBad::adaptive<TMBad::global::ad_aug>') 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/TMBad/global.hpp:3089:8: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
  bool operator==(const T &other) const {
       ^
In file included from TMB.cpp:2:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:128:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/TMBad.hpp:6:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/graph_transform.hpp:10:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/integrate.hpp:464:38: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'TMBad::adaptive<TMBad::global::ad_aug>' and 'TMBad::adaptive<TMBad::global::ad_aug>') 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/TMBad/global.hpp:3089:8: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
  bool operator==(const T &other) const {
       ^
In file included from TMB.cpp:2:
In file included from ./TMB.h:38:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMB.hpp:128:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/TMBad.hpp:6:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/graph_transform.hpp:10:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/TMB/include/TMBad/integrate.hpp:578:15: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'TMBad::adaptive<TMBad::global::ad_aug>' and 'TMBad::adaptive<TMBad::global::ad_aug>') 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/TMBad/global.hpp:3089:8: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
  bool operator==(const T &other) const {
       ^
13 warnings generated.
ERROR: compilation failed for package ‘RTMB’
* removing ‘/Volumes/Builds/packages/big-sur-x86_64/results/4.6/RTMB.Rcheck/RTMB’