From 53376873f0c000a53760c8a80c3219aa95934618 Mon Sep 17 00:00:00 2001 From: Daniel Karrasch Date: Sun, 3 Nov 2024 12:00:55 +0100 Subject: [PATCH] [backport-1.10] Fix dispatch for rdiv! with LU (#56415) Backport of #55764. --- stdlib/LinearAlgebra/src/lu.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/LinearAlgebra/src/lu.jl b/stdlib/LinearAlgebra/src/lu.jl index 6c815f0309fd5..bef1cfb0c1b7e 100644 --- a/stdlib/LinearAlgebra/src/lu.jl +++ b/stdlib/LinearAlgebra/src/lu.jl @@ -713,7 +713,7 @@ function ldiv!(adjA::AdjointFactorization{<:Any,<:LU{T,Tridiagonal{T,V}}}, B::Ab return B end -rdiv!(B::AbstractMatrix, A::LU) = transpose(ldiv!(transpose(A), transpose(B))) +rdiv!(B::AbstractMatrix, A::LU{T,Tridiagonal{T,V}}) where {T,V} = transpose(ldiv!(transpose(A), transpose(B))) # Conversions AbstractMatrix(F::LU) = (F.L * F.U)[invperm(F.p),:]