Skip to content

Commit

Permalink
remove unnecessary where in tridiag (JuliaLang#38485)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcognetta committed Nov 19, 2020
1 parent e402cf4 commit a5a76de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/LinearAlgebra/src/tridiag.jl
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ Base.copy(tS::Transpose{<:Any,<:Tridiagonal}) = (S = tS.parent; Tridiagonal(map(

\(A::Adjoint{<:Any,<:Tridiagonal}, B::Adjoint{<:Any,<:StridedVecOrMat}) = copy(A) \ copy(B)

function diag(M::Tridiagonal{T}, n::Integer=0) where T
function diag(M::Tridiagonal, n::Integer=0)
# every branch call similar(..., ::Int) to make sure the
# same vector type is returned independent of n
if n == 0
Expand Down

0 comments on commit a5a76de

Please sign in to comment.