Skip to content

Unify ID overloads into single 3-arg function ID(A, tol, k)#2

Merged
yurielnf merged 3 commits into
mainfrom
claude/ecstatic-shirley-c242d0
May 19, 2026
Merged

Unify ID overloads into single 3-arg function ID(A, tol, k)#2
yurielnf merged 3 commits into
mainfrom
claude/ecstatic-shirley-c242d0

Conversation

@yurielnf
Copy link
Copy Markdown
Owner

Replace the four separate int-k and double-tol overloads with two functions using default params (tol=0.0, k=INT64_MAX), so callers can limit by tolerance, rank, or both simultaneously.

yurielnf and others added 3 commits May 19, 2026 19:32
Replace the four separate int-k and double-tol overloads with two
functions using default params (tol=0.0, k=INT64_MAX), so callers
can limit by tolerance, rank, or both simultaneously.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
When bondDim > matrix dimension (common at tt_id startup with a 1-row
matrix), the TORCH_CHECK(k <= max_k) was throwing. Drop the upper-bound
check so k is simply clamped by the min() that follows.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@yurielnf yurielnf merged commit 5863c5d into main May 19, 2026
1 check passed
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