ENH: Add vnl_svd engine coverage as itkVnlSVDEngineGTest#6546
Merged
hjmjohnson merged 1 commit intoJul 6, 2026
Merged
Conversation
Adapt the vxl core/vnl/algo/tests/test_svd.cxx cases as an ITK GoogleTest so vnl_svd behavior is exercised in ITK CI, guarding any future change of the underlying SVD engine. Covers Hilbert inversion, least-squares solve, rank/nullspace extraction, identity singular values, recomposition, and nullvector across float/double/complex-float/complex-double.
6fbc9c6 to
f386a36
Compare
Contributor
Member
Author
Downstream forest validation — SVD engine swap is invisible to consumersValidated this change against 13 downstream ITK consumers built on top of Build matrix — 13 consumers vs. this PR's ITK
BRAINSTools SuperBuild reached Functional test results — SVD code paths exercised
Why the risk is bounded
|
Member
|
I can't devote time to carefully reviewing this. |
thewtex
approved these changes
Jul 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adapt the vxl
core/vnl/algo/tests/test_svd.cxxcases as an ITK GoogleTest (itkVnlSVDEngineGTest) sovnl_svdbehavior is exercised directly in ITK CI. ITK relies onvnl_svdthroughout registration and reconstruction, but the vxl test that covers its engine never runs in ITK's build; this makes any future change to the underlying SVD engine (or migration offvnl_svd) reviewable against an in-tree regression net.Coverage
Six cases across float / double / complex-float / complex-double:
solve)U·W·Vᴴrecompositionnullvector()correctnessTesting performed
Built and run locally against current
main(f2c LINPACK svdc engine), macOS arm64, clang: 6/6 pass.pre-commit run --all-filesclean.