Advertisement
BenjaK

Compiler errors 2

Nov 28th, 2017
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.34 KB | None | 0 0
  1. In file included from test_functions1.cpp:2:
  2. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigen.h:25:
  3. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigenForward.h:30:
  4. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/Dense:1:
  5. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/unsupported/Eigen/../../Eigen/Core:418:
  6. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/Product.h:29:116: error: no type named 'ReturnType' in 'Eigen::ScalarBinaryOpTraits<stan::math::fvar<stan::math::var>, double, Eigen::internal::scalar_product_op<stan::math::fvar<stan::math::var>, double> >'
  7. typedef typename ScalarBinaryOpTraits<typename traits<LhsCleaned>::Scalar, typename traits<RhsCleaned>::Scalar>::ReturnType Scalar;
  8. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
  9. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:462:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::Product<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0> >' requested here
  10. template<typename Derived, typename XprKind = typename traits<Derived>::XprKind>
  11. ^
  12. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/Product.h:122:21: note: in instantiation of default argument for 'dense_xpr_base<Eigen::Product<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0> >' required here
  13. : public internal::dense_xpr_base<Product<Lhs,Rhs,Option> >::type
  14. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/Product.h:148:12: note: in instantiation of template class 'Eigen::internal::dense_product_base<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0, 6>' requested here
  16. : public internal::dense_product_base<Lhs,Rhs,Option>
  17. ^
  18. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/Product.h:71:24: note: in instantiation of template class 'Eigen::ProductImpl<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0, Eigen::Dense>' requested here
  19. class Product : public ProductImpl<_Lhs,_Rhs,Option,
  20. ^
  21. test_functions1.cpp:35:22: note: in instantiation of template class 'Eigen::Product<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0>' requested here
  22. mu(i) = P.row(i) * M.row(i).transpose();
  23. ^
  24. test_functions1.cpp:65:10: note: in instantiation of function template specialization 'prop_to_mean<stan::math::fvar<stan::math::var>, -1, -1>' requested here
  25. mu = prop_to_mean(P, M_);
  26. ^
  27. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/stan/math/mix/mat/functor/hessian.hpp:60:31: note: in instantiation of function template specialization 'test_lpdf::operator()<stan::math::fvar<stan::math::var> >' requested here
  28. fvar<var> fx_fvar = f(x_fvar);
  29. ^
  30. test_functions1.cpp:79:15: note: in instantiation of function template specialization 'stan::math::hessian<test_lpdf>' requested here
  31. stan::math::hessian(f, x, fx, grad_fx, H);
  32. ^
  33. In file included from test_functions1.cpp:2:
  34. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigen.h:25:
  35. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigenForward.h:30:
  36. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/Dense:1:
  37. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/unsupported/Eigen/../../Eigen/Core:418:
  38. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/Product.h:155:5: error: no type named 'CoeffReturnType' in 'Eigen::internal::dense_product_base<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0, 6>'
  39. EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
  40. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  41. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/Macros.h:868:3: note: expanded from macro 'EIGEN_DENSE_PUBLIC_INTERFACE'
  42. EIGEN_GENERIC_PUBLIC_INTERFACE(Derived) \
  43. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  44. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/Macros.h:852:26: note: expanded from macro 'EIGEN_GENERIC_PUBLIC_INTERFACE'
  45. typedef typename Base::CoeffReturnType CoeffReturnType; /*!< \brief The return type for coefficient access. \details Depending on whether the object allows direct coefficient access (e.g. for a MatrixXd), this type is either 'const Scalar&' or simply 'Scalar' for objects that do not allow direct coefficient access. */ \
  46. ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
  47. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/Product.h:71:24: note: in instantiation of template class 'Eigen::ProductImpl<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0, Eigen::Dense>' requested here
  48. class Product : public ProductImpl<_Lhs,_Rhs,Option,
  49. ^
  50. test_functions1.cpp:35:22: note: in instantiation of template class 'Eigen::Product<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0>' requested here
  51. mu(i) = P.row(i) * M.row(i).transpose();
  52. ^
  53. test_functions1.cpp:65:10: note: in instantiation of function template specialization 'prop_to_mean<stan::math::fvar<stan::math::var>, -1, -1>' requested here
  54. mu = prop_to_mean(P, M_);
  55. ^
  56. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/stan/math/mix/mat/functor/hessian.hpp:60:31: note: in instantiation of function template specialization 'test_lpdf::operator()<stan::math::fvar<stan::math::var> >' requested here
  57. fvar<var> fx_fvar = f(x_fvar);
  58. ^
  59. test_functions1.cpp:79:15: note: in instantiation of function template specialization 'stan::math::hessian<test_lpdf>' requested here
  60. stan::math::hessian(f, x, fx, grad_fx, H);
  61. ^
  62. In file included from test_functions1.cpp:2:
  63. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigen.h:25:
  64. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigenForward.h:30:
  65. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/Dense:1:
  66. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/unsupported/Eigen/../../Eigen/Core:418:
  67. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/Product.h:155:5: error: no member named 'SizeAtCompileTime' in 'Eigen::internal::dense_product_base<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0, 6>'
  68. EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
  69. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  70. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/Macros.h:868:3: note: expanded from macro 'EIGEN_DENSE_PUBLIC_INTERFACE'
  71. EIGEN_GENERIC_PUBLIC_INTERFACE(Derived) \
  72. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  73. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/Macros.h:859:35: note: expanded from macro 'EIGEN_GENERIC_PUBLIC_INTERFACE'
  74. SizeAtCompileTime = Base::SizeAtCompileTime, \
  75. ~~~~~~^
  76. In file included from test_functions1.cpp:2:
  77. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigen.h:25:
  78. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigenForward.h:30:
  79. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/Dense:1:
  80. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/unsupported/Eigen/../../Eigen/Core:418:
  81. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/Product.h:155:5: error: no member named 'MaxSizeAtCompileTime' in 'Eigen::internal::dense_product_base<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0, 6>'
  82. EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
  83. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  84. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/Macros.h:868:3: note: expanded from macro 'EIGEN_DENSE_PUBLIC_INTERFACE'
  85. EIGEN_GENERIC_PUBLIC_INTERFACE(Derived) \
  86. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  87. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/Macros.h:860:38: note: expanded from macro 'EIGEN_GENERIC_PUBLIC_INTERFACE'
  88. MaxSizeAtCompileTime = Base::MaxSizeAtCompileTime, \
  89. ~~~~~~^
  90. In file included from test_functions1.cpp:2:
  91. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigen.h:25:
  92. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigenForward.h:30:
  93. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/Dense:1:
  94. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/unsupported/Eigen/../../Eigen/Core:418:
  95. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/Product.h:155:5: error: no member named 'IsVectorAtCompileTime' in 'Eigen::internal::dense_product_base<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0, 6>'
  96. EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
  97. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  98. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/Macros.h:868:3: note: expanded from macro 'EIGEN_DENSE_PUBLIC_INTERFACE'
  99. EIGEN_GENERIC_PUBLIC_INTERFACE(Derived) \
  100. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  101. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/Macros.h:861:39: note: expanded from macro 'EIGEN_GENERIC_PUBLIC_INTERFACE'
  102. IsVectorAtCompileTime = Base::IsVectorAtCompileTime }; \
  103. ~~~~~~^
  104. In file included from test_functions1.cpp:2:
  105. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigen.h:25:
  106. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigenForward.h:30:
  107. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/Dense:1:
  108. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/unsupported/Eigen/../../Eigen/Core:418:
  109. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/Product.h:155:5: error: using declaration refers into 'Base::', which is not a base class of 'ProductImpl<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0, Eigen::Dense>'
  110. EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
  111. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  112. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/Macros.h:868:3: note: expanded from macro 'EIGEN_DENSE_PUBLIC_INTERFACE'
  113. EIGEN_GENERIC_PUBLIC_INTERFACE(Derived) \
  114. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  115. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/Macros.h:862:9: note: expanded from macro 'EIGEN_GENERIC_PUBLIC_INTERFACE'
  116. using Base::derived; \
  117. ^~~~~~
  118. In file included from test_functions1.cpp:2:
  119. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigen.h:25:
  120. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigenForward.h:30:
  121. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/Dense:1:
  122. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/unsupported/Eigen/../../Eigen/Core:418:
  123. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/Product.h:155:5: error: using declaration refers into 'Base::', which is not a base class of 'ProductImpl<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0, Eigen::Dense>'
  124. EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
  125. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  126. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/Macros.h:868:3: note: expanded from macro 'EIGEN_DENSE_PUBLIC_INTERFACE'
  127. EIGEN_GENERIC_PUBLIC_INTERFACE(Derived) \
  128. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  129. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/Macros.h:863:9: note: expanded from macro 'EIGEN_GENERIC_PUBLIC_INTERFACE'
  130. using Base::const_cast_derived;
  131. ^~~~~~
  132. In file included from test_functions1.cpp:2:
  133. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigen.h:25:
  134. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigenForward.h:30:
  135. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/Dense:1:
  136. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/unsupported/Eigen/../../Eigen/Core:418:
  137. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/Product.h:155:5: error: no type named 'PacketScalar' in 'Eigen::internal::dense_product_base<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0, 6>'
  138. EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
  139. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  140. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/Macros.h:869:26: note: expanded from macro 'EIGEN_DENSE_PUBLIC_INTERFACE'
  141. typedef typename Base::PacketScalar PacketScalar;
  142. ~~~~~~~~~~~~~~~^~~~~~~~~~~~
  143. In file included from test_functions1.cpp:2:
  144. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigen.h:25:
  145. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigenForward.h:30:
  146. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/Dense:1:
  147. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/unsupported/Eigen/../../Eigen/Core:418:
  148. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/Product.h:86:5: error: no type named 'CoeffReturnType' in 'Eigen::internal::dense_product_base<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0, 6>'
  149. EIGEN_GENERIC_PUBLIC_INTERFACE(Product)
  150. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  151. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/Macros.h:852:26: note: expanded from macro 'EIGEN_GENERIC_PUBLIC_INTERFACE'
  152. typedef typename Base::CoeffReturnType CoeffReturnType; /*!< \brief The return type for coefficient access. \details Depending on whether the object allows direct coefficient access (e.g. for a MatrixXd), this type is either 'const Scalar&' or simply 'Scalar' for objects that do not allow direct coefficient access. */ \
  153. ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
  154. test_functions1.cpp:35:22: note: in instantiation of template class 'Eigen::Product<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0>' requested here
  155. mu(i) = P.row(i) * M.row(i).transpose();
  156. ^
  157. test_functions1.cpp:65:10: note: in instantiation of function template specialization 'prop_to_mean<stan::math::fvar<stan::math::var>, -1, -1>' requested here
  158. mu = prop_to_mean(P, M_);
  159. ^
  160. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/stan/math/mix/mat/functor/hessian.hpp:60:31: note: in instantiation of function template specialization 'test_lpdf::operator()<stan::math::fvar<stan::math::var> >' requested here
  161. fvar<var> fx_fvar = f(x_fvar);
  162. ^
  163. test_functions1.cpp:79:15: note: in instantiation of function template specialization 'stan::math::hessian<test_lpdf>' requested here
  164. stan::math::hessian(f, x, fx, grad_fx, H);
  165. ^
  166. In file included from test_functions1.cpp:2:
  167. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigen.h:25:
  168. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigenForward.h:30:
  169. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/Dense:1:
  170. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/unsupported/Eigen/../../Eigen/Core:418:
  171. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/Product.h:86:5: error: no member named 'SizeAtCompileTime' in 'Eigen::internal::dense_product_base<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0, 6>'
  172. EIGEN_GENERIC_PUBLIC_INTERFACE(Product)
  173. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  174. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/Macros.h:859:35: note: expanded from macro 'EIGEN_GENERIC_PUBLIC_INTERFACE'
  175. SizeAtCompileTime = Base::SizeAtCompileTime, \
  176. ~~~~~~^
  177. In file included from test_functions1.cpp:2:
  178. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigen.h:25:
  179. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigenForward.h:30:
  180. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/Dense:1:
  181. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/unsupported/Eigen/../../Eigen/Core:418:
  182. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/Product.h:86:5: error: no member named 'MaxSizeAtCompileTime' in 'Eigen::internal::dense_product_base<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0, 6>'
  183. EIGEN_GENERIC_PUBLIC_INTERFACE(Product)
  184. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  185. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/Macros.h:860:38: note: expanded from macro 'EIGEN_GENERIC_PUBLIC_INTERFACE'
  186. MaxSizeAtCompileTime = Base::MaxSizeAtCompileTime, \
  187. ~~~~~~^
  188. In file included from test_functions1.cpp:2:
  189. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigen.h:25:
  190. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigenForward.h:30:
  191. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/Dense:1:
  192. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/unsupported/Eigen/../../Eigen/Core:418:
  193. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/Product.h:86:5: error: no member named 'IsVectorAtCompileTime' in 'Eigen::internal::dense_product_base<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0, 6>'
  194. EIGEN_GENERIC_PUBLIC_INTERFACE(Product)
  195. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  196. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/Macros.h:861:39: note: expanded from macro 'EIGEN_GENERIC_PUBLIC_INTERFACE'
  197. IsVectorAtCompileTime = Base::IsVectorAtCompileTime }; \
  198. ~~~~~~^
  199. In file included from test_functions1.cpp:2:
  200. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigen.h:25:
  201. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigenForward.h:30:
  202. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/Dense:1:
  203. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/unsupported/Eigen/../../Eigen/Core:418:
  204. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/Product.h:86:5: error: using declaration refers into 'Base::', which is not a base class of 'Product<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0>'
  205. EIGEN_GENERIC_PUBLIC_INTERFACE(Product)
  206. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  207. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/Macros.h:862:9: note: expanded from macro 'EIGEN_GENERIC_PUBLIC_INTERFACE'
  208. using Base::derived; \
  209. ^~~~~~
  210. In file included from test_functions1.cpp:2:
  211. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigen.h:25:
  212. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigenForward.h:30:
  213. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/Dense:1:
  214. In file included from /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/unsupported/Eigen/../../Eigen/Core:418:
  215. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/Product.h:86:5: error: using declaration refers into 'Base::', which is not a base class of 'Product<Eigen::Block<const Eigen::Matrix<stan::math::fvar<stan::math::var>, -1, -1, 0, -1, -1>, 1, -1, false>, Eigen::Transpose<const Eigen::Block<const Eigen::Matrix<double, -1, -1, 0, -1, -1>, 1, -1, false> >, 0>'
  216. EIGEN_GENERIC_PUBLIC_INTERFACE(Product)
  217. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  218. /home/bekj9674/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/Macros.h:863:9: note: expanded from macro 'EIGEN_GENERIC_PUBLIC_INTERFACE'
  219. using Base::const_cast_derived;
  220. ^~~~~~
  221. 14 errors generated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement