Skip to content

Support traced truncation bounds with Reactant - #34

Closed
BJMCox wants to merge 1 commit into
mainfrom
support-reactant-truncate
Closed

BJMCox wants to merge 1 commit into
mainfrom
support-reactant-truncate

Conversation

@BJMCox

@BJMCox BJMCox commented Nov 16, 2026

Copy link
Copy Markdown
Member

Compile Truncate and its log-Jacobian when finite or infinite bounds are traced. Put the overlays in Plaice's existing Reactant extension.

Tests cover all four bound modes and analytic gradients. The focused tests and JuliaFormatter checks pass.

Use traced control flow for finite and infinite bounds in the existing Reactant extension. Preserve the native transform formulas and test analytic values, Jacobians, and gradients.
@github-actions

Copy link
Copy Markdown

Docs preview for PR #34

@penelopeysm

Copy link
Copy Markdown
Member

Sorry, I 'independently' discovered this and got Claude to fix it 🫠. Technically, my Claude's PR (#37) covers more scope as it also fixes Untruncate (not just Truncate), so I'll go ahead and merge that one.

@BJMCox

BJMCox commented Nov 22, 2026

Copy link
Copy Markdown
Member Author
image

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