Control: tags -1 + confirmed patch

Hi,

The attached patches fix this bug, I will upload a new version with them as soon as Eigen 5.x reaches unstable.

Best wishes,

--
Pierre
Description: building against Eigen 5.0.1
Author: Pierre Gruet <[email protected]>
Bug-Debian: https://bugs.debian.org/1136332
Forwarded: no
Last-Update: 2026-07-23

--- a/test/SVD.cpp
+++ b/test/SVD.cpp
@@ -47,7 +47,8 @@
     // SVD solver from Eigen
     // Requires dense matrices
     Matrix mat_dense = Matrix(mat);
-    Eigen::JacobiSVD<Matrix> svd(mat, Eigen::ComputeThinU | Eigen::ComputeThinV);
+    const Eigen::MatrixXd matX(mat);
+    Eigen::JacobiSVD<Matrix, Eigen::ComputeThinU | Eigen::ComputeThinV> svd(matX);
     Vector svals_eigen = svd.singularValues();
     Matrix U_eigen = svd.matrixU();
     Matrix V_eigen = svd.matrixV();
Description: for the test GenEigsRealShift, more iterations are needed to be
 successful
Author: Pierre Gruet <[email protected]>
Forwarded: no
Last-Update: 2026-07-23

--- a/test/GenEigsRealShift.cpp
+++ b/test/GenEigsRealShift.cpp
@@ -39,8 +39,8 @@
 void run_test(const MatType& mat, Solver& eigs, SortRule selection, bool allow_fail = false)
 {
     eigs.init();
-    // maxit = 500 to reduce running time for failed cases
-    int nconv = eigs.compute(selection, 500);
+    // maxit = 1000 to reduce running time for failed cases
+    int nconv = eigs.compute(selection, 1000);
     int niter = eigs.num_iterations();
     int nops = eigs.num_operations();
 

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to