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

fix some convert methods that depwarned #23494

Merged
merged 1 commit into from
Aug 29, 2017
Merged

fix some convert methods that depwarned #23494

merged 1 commit into from
Aug 29, 2017

Conversation

fredrikekre
Copy link
Member

Clean up from #22718, #22925, #23035 and #23154. These methods previously depwarned when called with a Diagonal wrapping other types of vectors.

@fredrikekre fredrikekre added bugfix This change fixes an existing bug linear algebra Linear algebra labels Aug 28, 2017
@@ -4,11 +4,12 @@

# Interconversion between special matrix types
convert(::Type{Bidiagonal}, A::Diagonal{T}) where {T} =
Copy link
Member

Choose a reason for hiding this comment

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

Is the where {T} now superfluous? And likewise below?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, nice catch.

Tridiagonal(A.uplo == 'U' ? zeros(T, size(A.dv,1)-1) : A.ev, A.dv,
A.uplo == 'U' ? A.ev : zeros(T, size(A.dv,1)-1))
Tridiagonal(A.uplo == 'U' ? fill!(similar(A.diag, length(A.diag)-1), 0) : A.ev, A.dv,
A.uplo == 'U' ? A.ev : fill!(similar(A.diag, length(A.diag)-1), 0))
Copy link
Member

Choose a reason for hiding this comment

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

Did you intend to map .dv to .diag?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope, hence the testfailures.

@fredrikekre
Copy link
Member Author

#23371 on BSD, download failure on one of AV.

@fredrikekre fredrikekre merged commit 89772d4 into master Aug 29, 2017
@fredrikekre fredrikekre deleted the fe/convert-diag branch August 29, 2017 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug linear algebra Linear algebra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants