Skip to content

Simplify batched Hurwitz operations#54

Merged
lezcano merged 1 commit into
masterfrom
review/hurwitz-operations
Jun 7, 2026
Merged

Simplify batched Hurwitz operations#54
lezcano merged 1 commit into
masterfrom
review/hurwitz-operations

Conversation

@lezcano

@lezcano lezcano commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • construct batched Hurwitz Kronecker sums directly with torch.kron
  • remove flattening, vmap, reshaping, and the unused math import
  • reuse Skew.sample during Hurwitz sampling
  • cover multiple batch dimensions

Why

PyTorch 2.6 supports the required leading-dimension broadcasting directly. The simpler expression avoids unnecessary setup and reuses the existing device- and dtype-aware sampler.

Validation

  • pytest -s --tb=short -n8 test/test_hurwitz.py
  • included in the full remote suite: 60 passed, 1 skipped

@lezcano lezcano marked this pull request as ready for review June 7, 2026 16:49
@lezcano lezcano merged commit 5d2e206 into master Jun 7, 2026
9 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