Skip to content

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
# Methods operating on different special matrix types

# 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.

3 participants