Skip to content

Misc bugs#187

Merged
yixuan merged 1 commit into
yixuan:masterfrom
jschueller:misc
Jul 4, 2026
Merged

Misc bugs#187
yixuan merged 1 commit into
yixuan:masterfrom
jschueller:misc

Conversation

@jschueller

Copy link
Copy Markdown
Contributor
  • SelectionRule.h: Add missing const qualifier on SortEigenvalue::operator() required by std::sort comparator contract
  • SimpleRandom.h: Fix platform-dependent integer overflow in LCG PRNG by using consistent unsigned long casts
  • Arnoldi.h: Fix use-after-move in constructor where op.rows() was called after std::move(op); use m_op.rows() instead
  • PartialSVDSolver.h: Replace raw new/delete with std::unique_ptr to fix exception-safety memory leak and simplify destructor
  • DoubleShiftQR.h: Use Index instead of int for matrix dimensions to avoid narrowing conversion from Eigen::Index

@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.4%. Comparing base (3133be5) to head (772e1bc).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #187    +/-   ##
=======================================
  Coverage    94.4%   94.4%            
=======================================
  Files          49      49            
  Lines        2669    2481   -188     
  Branches      307     307            
=======================================
- Hits         2520    2344   -176     
+ Misses        149     137    -12     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jschueller
jschueller force-pushed the misc branch 2 times, most recently from 32a73b1 to 0e98463 Compare July 3, 2026 14:01
- SelectionRule.h: Add missing const qualifier on SortEigenvalue::operator()
  required by std::sort comparator contract
- SimpleRandom.h: Fix platform-dependent integer overflow in LCG PRNG by
  using consistent unsigned long casts
- Arnoldi.h: Fix use-after-move in constructor where op.rows() was called
  after std::move(op); use m_op.rows() instead
- PartialSVDSolver.h: Replace raw new/delete with std::unique_ptr to fix
  exception-safety memory leak and simplify destructor
- DoubleShiftQR.h: Use Index instead of int for matrix dimensions to avoid
  narrowing conversion from Eigen::Index
@yixuan

yixuan commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Cool. Many thanks!

@yixuan
yixuan merged commit db1d5cc into yixuan:master Jul 4, 2026
12 checks passed
@jschueller
jschueller deleted the misc branch July 4, 2026 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants