Skip to content

Align ExpEig input semantics with LogEig outputs#8

Merged
bruAristimunha merged 4 commits into
mainfrom
fix/upper-flatten-consistency
Feb 17, 2026
Merged

Align ExpEig input semantics with LogEig outputs#8
bruAristimunha merged 4 commits into
mainfrom
fix/upper-flatten-consistency

Conversation

@bruAristimunha

Copy link
Copy Markdown
Contributor

Summary

  • update ExpEig to decode vectorized tangent inputs (upper and flatten) before applying matrix exponential
  • make ExpEig always return SPD matrices with shape (..., n, n)
  • add explicit input-shape validation with clear ValueError messages for invalid vector lengths and non-square matrices
  • extend module tests with LogEig/ExpEig shape round-trip coverage and direct ExpEig contract tests

Validation

  • pytest -q tests/test_modules.py

@github-actions

github-actions Bot commented Feb 16, 2026

Copy link
Copy Markdown

📚 Documentation Preview

📦 Download Documentation Artifact

Download the documentation-html artifact from the workflow run to view the docs locally.

💡 To enable live previews, add a SURGE_TOKEN secret to this repository. See surge.sh for setup instructions.

Remove redundant upper-vectorized validation (vec_to_sym handles it),
use math.isqrt and einops.rearrange for the flatten branch.
@bruAristimunha
bruAristimunha merged commit 29cfaf4 into main Feb 17, 2026
9 checks passed
@bruAristimunha
bruAristimunha deleted the fix/upper-flatten-consistency branch February 17, 2026 13:57
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