Skip to content

Commit b3ec55f

Browse files
committed
Fix argument name in stride
1 parent d3a9a3e commit b3ec55f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/triangular.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ function generic_trimatmul!(C::StridedMatrix{T}, uploc, isunitc, tfun::Function,
12131213
end
12141214
end
12151215
function generic_mattrimul!(C::StridedMatrix{T}, uploc, isunitc, tfun::Function, A::AbstractMatrix{T}, B::StridedMatrix{T}) where {T<:BlasFloat}
1216-
if stride(C,1) == stride(A,1) == 1
1216+
if stride(C,1) == stride(B,1) == 1
12171217
BLAS.trmm!('R', uploc, tfun === identity ? 'N' : tfun === transpose ? 'T' : 'C', isunitc, one(T), B, C === A ? C : copyto!(C, A))
12181218
else # incompatible with LAPACK
12191219
@invoke generic_mattrimul!(C::AbstractMatrix, uploc, isunitc, tfun::Function, A::AbstractMatrix, B::AbstractMatrix)
@@ -1228,7 +1228,7 @@ function generic_trimatdiv!(C::StridedVecOrMat{T}, uploc, isunitc, tfun::Functio
12281228
end
12291229
end
12301230
function generic_mattridiv!(C::StridedMatrix{T}, uploc, isunitc, tfun::Function, A::AbstractMatrix{T}, B::StridedMatrix{T}) where {T<:BlasFloat}
1231-
if stride(C,1) == stride(A,1) == 1
1231+
if stride(C,1) == stride(B,1) == 1
12321232
BLAS.trsm!('R', uploc, tfun === identity ? 'N' : tfun === transpose ? 'T' : 'C', isunitc, one(T), B, C === A ? C : copyto!(C, A))
12331233
else # incompatible with LAPACK
12341234
@invoke generic_mattridiv!(C::AbstractMatrix, uploc, isunitc, tfun::Function, A::AbstractMatrix, B::AbstractMatrix)

0 commit comments

Comments
 (0)