You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add TruncationUnion to support supplying minimal ranks (#183)
* Add `TruncationUnion` and `|` operator for truncation strategies
`TruncationUnion` is the symmetric counterpart to `TruncationIntersection`,
keeping values that are present in *any* component strategy. `NoTruncation`
acts as the absorbing element (union with "keep all" = keep all).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Add `minrank` keyword argument to `TruncationStrategy`
`minrank` provides a lower bound on the number of kept values, composing with
other constraints via `TruncationUnion`. When no upper-bound constraints are
active, `minrank` alone returns `truncrank(minrank)` directly.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Add tests for `TruncationUnion` and `minrank`
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Update truncations documentation for `TruncationUnion` and `minrank`
Add examples for the `minrank` keyword argument and the `|` operator,
and add `@docs` entries for `TruncationIntersection` and `TruncationUnion`.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Add GPU overrides for `_ind_union` in CUDA and AMDGPU extensions
Mirrors the existing `_ind_intersect` overrides: collect GPU index vectors
to CPU before computing the union, since `union` does not work on GPU arrays.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix GPU support maybe
* bold any/all
* consistent punctuation
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments