Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve type-stability in SymTridiagonal triu!/tril! #55646

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

jishnub
Copy link
Contributor

@jishnub jishnub commented Aug 31, 2024

Changing the final elseif branch to an else makes it clear that the method definite returns a value, and the returned type is now a Tridiagonal instead of a Union{Nothing, Tridiagonal}

@jishnub jishnub added linear algebra Linear algebra arrays [a, r, r, a, y, s] labels Aug 31, 2024
Copy link
Member

@dkarrasch dkarrasch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@jishnub jishnub removed the request for review from ViralBShah September 2, 2024 11:39
@jishnub jishnub merged commit 6170c4b into master Sep 2, 2024
7 of 9 checks passed
@jishnub jishnub deleted the jishnub/triu_symtri branch September 2, 2024 11:39
KristofferC pushed a commit that referenced this pull request Sep 12, 2024
Changing the final `elseif` branch to an `else` makes it clear that the
method definite returns a value, and the returned type is now a
`Tridiagonal` instead of a `Union{Nothing, Tridiagonal}`
kshyatt pushed a commit that referenced this pull request Sep 12, 2024
Changing the final `elseif` branch to an `else` makes it clear that the
method definite returns a value, and the returned type is now a
`Tridiagonal` instead of a `Union{Nothing, Tridiagonal}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrays [a, r, r, a, y, s] linear algebra Linear algebra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants