From 903d23cbfbee812406685dcf760db4ae89c7083e Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Fri, 17 May 2024 16:21:13 +0200 Subject: [PATCH] Eigen matrix doesn't support iterators --- test/boost_math_issue_1131.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/boost_math_issue_1131.cpp b/test/boost_math_issue_1131.cpp index 7cc11f8a0..57d0eb9d0 100644 --- a/test/boost_math_issue_1131.cpp +++ b/test/boost_math_issue_1131.cpp @@ -6,18 +6,18 @@ #include #include #include +#include using boost::multiprecision::cpp_bin_float_100; int main() { - Eigen::Matrix A = Eigen::Matrix::Identity(3,3); Eigen::EigenSolver es; es.compute(A, /*computeEigenvectors=*/ false); auto eigs = es.eigenvalues(); - for (auto eig : eigs) { - std::cout << eig << "\n"; + for (std::size_t i = 0; i < eigs.size(); ++i) { + std::cout << eigs[i] << "\n"; } return 0;