Skip to content

Fix bugs and expand test coverage - #32

Merged
YeeShin504 merged 11 commits into
mainfrom
fix/tut-3-frac
May 11, 2026
Merged

Fix bugs and expand test coverage#32
YeeShin504 merged 11 commits into
mainfrom
fix/tut-3-frac

Conversation

@YeeShin504

Copy link
Copy Markdown
Owner

Fixes #31 .

Summary

This PR fixes several symbolic matrix regressions found while exercising the tutorial and test suite, and adds more test coverage for matrix factories, manipulators, decompositions, and linear transformations.

Highlights

  • Fixed symbolic matrix edge cases around from_list, sep_unk, scalar_factor, inverse detection, basis/transition operations, Gram-Schmidt with complex vectors, full QR decomposition, least-squares fallback handling, diagonalization, SVD verification, and Vandermonde substitution.
  • Hardened IPython detection in utils._is_IPython() when get_ipython() returns None or the IPython import is unavailable.
  • Updated Tutorial 3 fraction handling and added notebook/test regressions for the tutorial fixes.
  • Expanded coverage-focused tests for _shape, Vandermonde helpers, symbolic row reduction, least-squares and QR branches, eigen/stochastic helpers, SVD fallbacks, standard_matrix, and utility display/IPython paths.
  • Removed the unused package-lock.json.

- Fix inverse auto-detection for left, right, and square inverses
- Fix sep_unk symbol splitting and symbolic scalar_factor verification
- Handle zero-subspace checks in is_subspace_of
- Use Hermitian projection coefficients in Gram-Schmidt
- Optimize full QR basis extension via orthogonal complement
- Improve solve_least_squares empty solver-result handling
- Avoid unnecessary columnspace calls in diagonalization and SVD paths
@YeeShin504 YeeShin504 added this to the v1.2.1 milestone May 11, 2026
@YeeShin504 YeeShin504 self-assigned this May 11, 2026
@YeeShin504 YeeShin504 added the bug Something isn't working label May 11, 2026
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 91.76471% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/ma1522/symbolic.py 91.25% 3 Missing and 4 partials ⚠️

📢 Thoughts on this report? Let us know!

@YeeShin504
YeeShin504 merged commit b227a5b into main May 11, 2026
27 checks passed
@YeeShin504
YeeShin504 deleted the fix/tut-3-frac branch May 11, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SVD method hangs for some matrices

2 participants