Skip to content

Commit 2a14a0e

Browse files
committed
Use suggestion by @nolta to cover all types of mixed integer
and float inputs in matrix division
1 parent 58e819e commit 2a14a0e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

j/linalg_lapack.j

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,4 @@ function (\){T<:Union(Float64,Float32,Complex128,Complex64)}(A::StridedMatrix{T}
693693

694694
end
695695

696-
(\){T1<:Integer, T2<:Integer}(A::StridedMatrix{T1}, B::StridedVecOrMat{T2}) = (\)(float64(A), float64(B))
697-
(\){T1<:Float, T2<:Integer}(A::StridedMatrix{T1}, B::StridedVecOrMat{T2}) = (\)(A, float64(B))
698-
(\){T1<:Integer, T2<:Float}(A::StridedMatrix{T1}, B::StridedVecOrMat{T2}) = (\)(float64(A), B)
696+
(\){T1<:Real, T2<:Real}(A::StridedMatrix{T1}, B::StridedVecOrMat{T2}) = (\)(float64(A), float64(B))

0 commit comments

Comments
 (0)