Skip to content

Allow returning zero from Lt callable constructor#540

Closed
T0mstone wants to merge 1 commit intopygae:masterfrom
T0mstone:master
Closed

Allow returning zero from Lt callable constructor#540
T0mstone wants to merge 1 commit intopygae:masterfrom
T0mstone:master

Conversation

@T0mstone
Copy link
Copy Markdown
Contributor

@T0mstone T0mstone commented Sep 8, 2025

This is an immediate fix, but it might also be a good idea to more generally treat zero differently, since, strictly speaking, it doesn't have a well-defined grade, but it is currently treated as grade zero.

@utensil utensil added this to the 0.6.0 milestone Mar 31, 2026
utiberious added a commit to utiberious/galgebra that referenced this pull request Apr 1, 2026
Projection maps legitimately return the zero multivector for basis
vectors perpendicular to the projection plane. The previous check
rejected any non-vector return value, including zero.

Adds a regression test covering a projection onto e1 (maps e2, e3 to
zero) and the zero map.

Co-authored-by: T0mstone <realt0mstone@gmail.com>
utiberious added a commit to utiberious/galgebra that referenced this pull request Apr 1, 2026
utensil pushed a commit that referenced this pull request Apr 1, 2026
* Allow returning zero from Lt callable constructor

* test(lt): add regression test for callable Lt returning zero (#540)

---------

Co-authored-by: T0mstone <realt0mstone@gmail.com>
@utensil utensil closed this in #560 Apr 1, 2026
utiberious added a commit to utiberious/galgebra that referenced this pull request Apr 1, 2026
utensil pushed a commit that referenced this pull request Apr 1, 2026
* docs: add 0.6.0 changelog entries

Groups new entries by: features, bug fixes, examples/docs, tests/maintenance.

Features: Cl() kingdon interface (#550, closes #524), Mv.__rtruediv__
(#543, closes #512), shirokov_inverse/hitzer_inverse (#530).

Bugs: interop dual mode contamination (#556, closes #555), norm() Abs
wrapping (#554, closes #522), is_versor() improvement (#536, closes #533).

Examples/docs: sundial + cheatsheet tests (#549+#557, closes #506),
coords tutorial (#551), README ops (#548, closes #523).

Tests/maintenance: lt.matrix() regression tests (#558, closes #461),
extra-cdot regression test (#545), er_blade + ReciprocalFrame refactors
(#552+#553), CI fix (#535).

* docs: add missing issue link for #551 entry

* docs: add changelog entry for #560 (Lt callable zero fix)

* docs: move Lt zero fix into bug group, use issue #540 as reference
utiberious added a commit to utiberious/galgebra that referenced this pull request Apr 2, 2026
…gae#560)

* Allow returning zero from Lt callable constructor

* test(lt): add regression test for callable Lt returning zero (pygae#540)
Co-authored-by: T0mstone <realt0mstone@gmail.com>
utiberious added a commit to utiberious/galgebra that referenced this pull request Apr 2, 2026
* docs: add 0.6.0 changelog entries

Groups new entries by: features, bug fixes, examples/docs, tests/maintenance.

Features: Cl() kingdon interface (pygae#550, closes pygae#524), Mv.__rtruediv__
(pygae#543, closes pygae#512), shirokov_inverse/hitzer_inverse (pygae#530).

Bugs: interop dual mode contamination (pygae#556, closes pygae#555), norm() Abs
wrapping (pygae#554, closes pygae#522), is_versor() improvement (pygae#536, closes pygae#533).

Examples/docs: sundial + cheatsheet tests (pygae#549+pygae#557, closes pygae#506),
coords tutorial (pygae#551), README ops (pygae#548, closes pygae#523).

Tests/maintenance: lt.matrix() regression tests (pygae#558, closes pygae#461),
extra-cdot regression test (pygae#545), er_blade + ReciprocalFrame refactors
(pygae#552+pygae#553), CI fix (pygae#535).

* docs: add missing issue link for pygae#551 entry

* docs: add changelog entry for pygae#560 (Lt callable zero fix)

* docs: move Lt zero fix into bug group, use issue pygae#540 as reference
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.

2 participants