Skip to content

[codex] add von Mises-Fisher multiplication example#1888

Merged
FlorianPfaff merged 1 commit intomainfrom
codex/vmf-multiplication-example
Apr 27, 2026
Merged

[codex] add von Mises-Fisher multiplication example#1888
FlorianPfaff merged 1 commit intomainfrom
codex/vmf-multiplication-example

Conversation

@FlorianPfaff
Copy link
Copy Markdown
Owner

Summary

  • Added examples/basic/von_mises_fisher_multiplication.py to demonstrate multiplying two von Mises-Fisher distributions on S^2.
  • The example verifies the analytic natural-parameter product and checks that the normalized product density is proportional to the pointwise product of the factors.

Validation

  • PYTHONPATH=src python examples/basic/von_mises_fisher_multiplication.py
  • PYTHONPATH=src python -m pytest tests/distributions/test_von_mises_fisher_distribution.py
  • PYTHONPATH=src PYRECEST_BACKEND=pytorch python examples/basic/von_mises_fisher_multiplication.py
  • PYTHONPATH=src PYRECEST_BACKEND=pytorch python -m pytest tests/distributions/test_von_mises_fisher_distribution.py
  • PYTHONPATH=src PYRECEST_BACKEND=jax python examples/basic/von_mises_fisher_multiplication.py
  • PYTHONPATH=src PYRECEST_BACKEND=jax python -m pytest tests/distributions/test_von_mises_fisher_distribution.py

Note: the PyTorch test run emitted existing NumPy 2 deprecation warnings from von_mises_fisher_distribution.py; all tests passed.

@github-actions
Copy link
Copy Markdown
Contributor

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ COPYPASTE jscpd yes no no 19.5s
✅ JSON prettier 2 0 0 0 0.39s
✅ JSON v8r 2 0 0 2.28s
✅ MARKDOWN markdownlint 2 0 0 0 0.67s
✅ MARKDOWN markdown-table-formatter 2 0 0 0 0.2s
✅ PYTHON bandit 415 0 0 6.28s
✅ PYTHON black 415 1 0 0 9.53s
✅ PYTHON flake8 415 0 0 3.53s
✅ PYTHON isort 415 1 0 0 0.78s
✅ PYTHON mypy 415 0 0 5.58s
✅ PYTHON pylint 415 0 0 124.27s
✅ PYTHON ruff 415 1 0 0 0.07s
✅ REPOSITORY checkov yes no no 21.65s
✅ REPOSITORY gitleaks yes no no 10.55s
✅ REPOSITORY git_diff yes no no 0.07s
✅ REPOSITORY secretlint yes no no 8.1s
✅ REPOSITORY syft yes no no 3.13s
✅ REPOSITORY trivy-sbom yes no no 3.84s
✅ REPOSITORY trufflehog yes no no 20.0s
✅ YAML prettier 4 0 0 0 0.48s
✅ YAML v8r 4 0 0 4.97s
✅ YAML yamllint 4 0 0 0.44s

See detailed reports in MegaLinter artifacts

Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)

  • Documentation: Custom Flavors
  • Command: npx mega-linter-runner@9.4.0 --custom-flavor-setup --custom-flavor-linters PYTHON_PYLINT,PYTHON_BLACK,PYTHON_FLAKE8,PYTHON_ISORT,PYTHON_BANDIT,PYTHON_MYPY,PYTHON_RUFF,COPYPASTE_JSCPD,JSON_V8R,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_CHECKOV,REPOSITORY_GIT_DIFF,REPOSITORY_GITLEAKS,REPOSITORY_SECRETLINT,REPOSITORY_SYFT,REPOSITORY_TRIVY_SBOM,REPOSITORY_TRUFFLEHOG,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R

MegaLinter is graciously provided by OX Security
Show us your support by starring ⭐ the repository

@FlorianPfaff FlorianPfaff marked this pull request as ready for review April 27, 2026 09:59
@github-actions
Copy link
Copy Markdown
Contributor

Test Results

    12 files  ±0      12 suites  ±0   4h 25m 45s ⏱️ - 15m 38s
 1 171 tests ±0   1 171 ✅ ±0      0 💤 ±0  0 ❌ ±0 
14 344 runs  ±0  10 828 ✅ ±0  3 516 💤 ±0  0 ❌ ±0 

Results for commit cd7a2ed. ± Comparison against base commit 1c808e2.

@FlorianPfaff FlorianPfaff merged commit 0a07f04 into main Apr 27, 2026
19 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.

1 participant