Skip to content

Fix AD type compatibility issues - #2750

Merged
lballabio merged 6 commits into
lballabio:masterfrom
auto-differentiation-dev:fix/ad-type-compatibility
Aug 28, 2026
Merged

Fix AD type compatibility issues#2750
lballabio merged 6 commits into
lballabio:masterfrom
auto-differentiation-dev:fix/ad-type-compatibility

Conversation

@auto-differentiation-dev

Copy link
Copy Markdown
Contributor

When Real is an AD expression-template type, several recent changes fail to compile: auto deduction from Real arithmetic in TripleBandLinearOp::solve_splitting, conditional operators with two different expression types, std::max initializer-list deduction, list-initialization of std::vector<std::complex<Real>> from a function result, and raw BOOST_CHECK_SMALL/BOOST_CHECK_CLOSE in new tests (switched to the existing QL_CHECK_* wrappers from test-suite/utilities.hpp). No behavior change when Real is double.

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 75.36%. remained the same — auto-differentiation-dev:fix/ad-type-compatibility into lballabio:master

@lballabio
lballabio merged commit e0ff5e6 into lballabio:master Aug 28, 2026
45 checks passed
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.

3 participants