Repository navigation
Group distribution-specific helpers under mir.stat.distribution.internal - #390
Merged
Merged
Conversation
Group the extended-precision distribution implementations, probability helpers, and normal rectangle routines under the package that uses them. Narrow their package-qualified declarations to mir.stat.distribution and preserve the public distribution imports. Shared Mahalanobis, linear algebra, and standardization helpers remain in mir.stat.internal. Update the Meson source list, slow-numerics imports, and Windows x86 CI paths. Explicitly register fp_categorical and fp_poisson_mode in Meson alongside the other moved modules. AI-Assisted-By: Codex (GPT-6.2 Astra Medium)
Route the public distance wrappers and multivariate normal density calculations through the existing scalar and batch workspace routines in mir.stat.internal.mahalanobis. This removes the distribution's dependency on mir.stat.distance while preserving both public APIs. Pass factor storage, representation, and triangle directly to the shared routines. Prepared models use their stored lower covariance or precision factor, and batch distance calls retain the caller's summation policy. AI-Assisted-By: Codex (GPT-6.2 Astra Medium)
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Move 47 distribution-specific modules from
mir.stat.internaltomir.stat.distribution.internaland narrow their package-qualified declarations tomir.stat.distribution. Existing public distribution imports continue to work. Update the Meson source list, slow-numerics imports, and Windows x86 CI paths for the move. Meson now also listsfp_categoricalandfp_poisson_modeexplicitly.Keep the shared Mahalanobis implementation in
mir.stat.internal.mahalanobis. The public distance wrappers and multivariate normal density functions now call its scalar and batch workspace routines directly. This removes the distribution’s dependency onmir.stat.distancewhile preserving factor representation, triangle selection, and batch summation policy.Local validation passed:
AI-Assisted-By: Codex (GPT-6.2 Astra Medium)