Skip to content

Docs + @c completion: doccords for cplx/eig, and @ch/@cq (half/quad) complex#49

Merged
sigilante merged 2 commits into
mainfrom
sigilante/doccord-cplx-eig
Jun 8, 2026
Merged

Docs + @c completion: doccords for cplx/eig, and @ch/@cq (half/quad) complex#49
sigilante merged 2 commits into
mainfrom
sigilante/doccord-cplx-eig

Conversation

@sigilante
Copy link
Copy Markdown
Collaborator

@sigilante sigilante commented Jun 8, 2026

Summary

Two related things, in order:

  1. Canonical doccords for the public arms added in the %cplx/eig work — +name: signature → description → ExamplesSource — on /lib/complex (cs/cd), lagoon conj/dotc, and saloon eig/eigvals/eigvecs. Internal helpers keep terse comments. cd is fully duplicated (not pointed at cs), and tests/lib/complex now exercises every public arm for both doors.

  2. Completes the @c aura family — implements @ch (half) and @cq (quad), the two slots reserved in /lib/complex's header, end to end across all three layers.

@ch/@cq — what landed

layer change
/lib/complex new ch (2×@rh) and cq (2×@rq) doors — verbatim analogues of cs/cd — with full doccords + complete tests; all values captured from the ship
Lagoon %cplx wired bloq 5 (ch) / 8 (cq) into eye/ones/fun-scalar/trans-scalar (previously 6/7 only); element-wise ops + lagoon-cplx ch/cq tests
Saloon eig cb-comp(dec cb); float helpers cover component bloq 4–7 (rh/rs/rd/rq), complex helpers cover bloq 5–8 (ch/cs/cd/cq); eig-herm accepts %cplx 5–8 and symmetric eig accepts %i754 4–7

Eigendecomposition now runs at half through quad precision. New saloon-eigh-cc test verifies [[2,i],[−i,2]] → {1,3} at @ch and @cq (the analytic case, since NumPy can't emit true IEEE binary128).

Tests

  • /tests/lib/complex: 16 cases (cs/cd/ch/cq × components/arith/unary/compare) — all green.
  • /tests/lib/lagoon-cplx: +ch/+cq element-wise — green.
  • /tests/lib/saloon-eigh (cs/cd) + saloon-eigh-cc (ch/cq) — green, no regression.

🤖 Generated with Claude Code

sigilante and others added 2 commits June 7, 2026 20:48
Reformats the comments on the public-facing arms added in the %cplx (#46),
symmetric-eig (#47), and Hermitian-eig (#48) work into the canonical
Lagoon/Saloon format: +name signature, one-line description, Examples, Source.
Internal helpers keep their terse comments (matching how lagoon already treats
fun-scalar/get-col).

Arms documented:
  /lib/complex (cs door): re im pak zero one add sub neg conj mul div abs equ
    neq -- examples transcribed from tests/lib/complex.  cd gets a door-level
    doccord pointing at cs (verbatim @rd/@cd analogue).
  lagoon: conj, dotc -- examples from tests/lib/lagoon-cplx.
  saloon: eig, eigvals, eigvecs -- eigenvalue outputs captured from the ship.

Comment-only; all three libs still build.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Per review: give the cd door full per-arm doccords (not a pointer to cs), and
add the test coverage those examples should have had.  tests/lib/complex now
exercises every public arm for BOTH doors -- re/im/pak/zero/one/add/sub/neg/
conj/mul/div/abs/equ/neq -- with values captured from the ship (cd) and from
NumPy (cs).  All 8 cases pass; the cd doccord examples are now test-backed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sigilante sigilante merged commit 8a99a7d into main Jun 8, 2026
@sigilante sigilante deleted the sigilante/doccord-cplx-eig branch June 8, 2026 02:05
@sigilante sigilante changed the title Docs: canonical doccords for cplx/eig public arms Docs + @c completion: doccords for cplx/eig, and @ch/@cq (half/quad) complex Jun 8, 2026
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