Skip to content

Commit

Permalink
Fix typo in triangular ldiv! (#43962)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarrasch authored Jan 29, 2022
1 parent 9a3cfd9 commit c3235cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stdlib/LinearAlgebra/src/triangular.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,7 @@ end
function ldiv!(xA::Union{UpperTriangular,UnitUpperTriangular}, B::UpperTriangular)
return UpperTriangular(ldiv!(xA, triu!(B.data)))
end
function ldiv!(xA::Union{LowerTriangular,UnitLowerTriangular}, B::UpperTriangular)
function ldiv!(xA::Union{LowerTriangular,UnitLowerTriangular}, B::LowerTriangular)
return LowerTriangular(ldiv!(xA, tril!(B.data)))
end

Expand Down
3 changes: 2 additions & 1 deletion stdlib/LinearAlgebra/test/triangular.jl
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,8 @@ for elty1 in (Float32, Float64, BigFloat, ComplexF32, ComplexF64, Complex{BigFlo
@test_throws DimensionMismatch A2' * offsizeA
@test_throws DimensionMismatch A2 * offsizeA
if (uplo1 == uplo2 && elty1 == elty2 != Int && t1 != UnitLowerTriangular && t1 != UnitUpperTriangular)
@test rdiv!(copy(A1), copy(A2)) A1/A2 Matrix(A1)/Matrix(A2)
@test rdiv!(copy(A1), copy(A2))::t1 A1/A2 Matrix(A1)/Matrix(A2)
@test ldiv!(copy(A2), copy(A1))::t1 A2\A1 Matrix(A2)\Matrix(A1)
end
if (uplo1 != uplo2 && elty1 == elty2 != Int && t2 != UnitLowerTriangular && t2 != UnitUpperTriangular)
@test lmul!(adjoint(copy(A1)), copy(A2)) A1'*A2 Matrix(A1)'*Matrix(A2)
Expand Down

2 comments on commit c3235cd

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

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

Executing the daily package evaluation, I will reply here when finished:

@nanosoldier runtests(ALL, isdaily = true)

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

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

Your package evaluation job has completed - possible new issues were detected. A full report can be found here.

Please sign in to comment.