Skip to content

Add flattenlinear and make it and tryflattenlinear public#209

Merged
mtfishman merged 1 commit into
mainfrom
mf/flattenlinear
Jul 13, 2026
Merged

Add flattenlinear and make it and tryflattenlinear public#209
mtfishman merged 1 commit into
mainfrom
mf/flattenlinear

Conversation

@mtfishman

Copy link
Copy Markdown
Member

Summary

Adds flattenlinear, the throwing counterpart to tryflattenlinear: it flattens a linear broadcast expression and raises an ArgumentError when the expression is not linear instead of returning nothing, following the parse/tryparse convention. Both flattenlinear and tryflattenlinear are now public.

`flattenlinear(bc)` is the throwing counterpart to `tryflattenlinear`,
raising an `ArgumentError` when the broadcast expression is not linear
instead of returning `nothing`, following the `parse`/`tryparse` convention.
Both are now public.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.74%. Comparing base (93bebac) to head (4c3d852).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #209      +/-   ##
==========================================
- Coverage   80.76%   80.74%   -0.03%     
==========================================
  Files          24       24              
  Lines         910      914       +4     
==========================================
+ Hits          735      738       +3     
- Misses        175      176       +1     
Flag Coverage Δ
docs 24.06% <0.00%> (-0.11%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mtfishman mtfishman enabled auto-merge (squash) July 13, 2026 13:55
@mtfishman mtfishman merged commit eaae289 into main Jul 13, 2026
20 of 21 checks passed
@mtfishman mtfishman deleted the mf/flattenlinear branch July 13, 2026 14:14
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