Skip to content

Skip redundant full-rank decompositions#52

Merged
lezcano merged 1 commit into
masterfrom
review/full-rank-samplers
Jun 7, 2026
Merged

Skip redundant full-rank decompositions#52
lezcano merged 1 commit into
masterfrom
review/full-rank-samplers

Conversation

@lezcano

@lezcano lezcano commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • return initialized matrices directly for full-rank materialized LowRank samples
  • return Gram matrices directly for full-rank materialized SymF samples
  • add tests proving the redundant decompositions are skipped

Why

The existing full-rank paths performed an SVD or eigendecomposition and immediately reconstructed the original tensor. Avoiding that cubic work is substantially faster and removes reconstruction roundoff.

Validation

  • pytest -s --tb=short -n8 test/test_lowrank.py test/test_symmetric.py test/test_positive_semidefinite.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:48
@lezcano lezcano merged commit 12ff9c2 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