Skip to content

Commit

Permalink
testing multiplities for abstract for julia1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
evelyne-ringoot committed Mar 7, 2023
1 parent 4e14c5f commit 0c26c5f
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/host/linalg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ if VERSION < v"1.8-"
return B
end
else
function LinearAlgebra.mul!(B::AbstractGPUVecOrMat,
D::Diagonal{<:Any, <:AbstractGPUArray},
A::AbstractGPUVecOrMat)
function LinearAlgebra.mul!(B::AnyGPUVecOrMat,
D::Diagonal{<:Any, <:AnyGPUArray},
A::AnyGPUVecOrMat)
dd = D.diag
d = length(dd)
m, n = size(A, 1), size(A, 2)
Expand All @@ -220,9 +220,9 @@ else
B
end

function LinearAlgebra.mul!(B::AbstractGPUVecOrMat,
D::Diagonal{<:Any, <:AbstractGPUArray},
A::AbstractGPUVecOrMat,
function LinearAlgebra.mul!(B::AnyGPUVecOrMat,
D::Diagonal{<:Any, <:AnyGPUArray},
A::AnyGPUVecOrMat,
α::Number,
β::Number)
dd = D.diag
Expand All @@ -236,9 +236,9 @@ else
B
end

function LinearAlgebra.mul!(B::AbstractGPUVecOrMat,
A::AbstractGPUVecOrMat,
D::Diagonal{<:Any, <:AbstractGPUArray})
function LinearAlgebra.mul!(B::AnyGPUVecOrMat,
A::AnyGPUVecOrMat,
D::Diagonal{<:Any, <:AnyGPUArray})
dd = D.diag
d = length(dd)
m, n = size(A, 1), size(A, 2)
Expand All @@ -250,9 +250,9 @@ else
B
end

function LinearAlgebra.mul!(B::AbstractGPUVecOrMat,
A::AbstractGPUVecOrMat,
D::Diagonal{<:Any, <:AbstractGPUArray},
function LinearAlgebra.mul!(B::AnyGPUVecOrMat,
A::AnyGPUVecOrMat,
D::Diagonal{<:Any, <:AnyGPUArray},
α::Number,
β::Number)
dd = D.diag
Expand All @@ -266,9 +266,9 @@ else
B
end

function LinearAlgebra.ldiv!(B::AbstractGPUVecOrMat,
D::Diagonal{<:Any, <:AbstractGPUArray},
A::AbstractGPUVecOrMat)
function LinearAlgebra.ldiv!(B::AnyGPUVecOrMat,
D::Diagonal{<:Any, <:AnyGPUArray},
A::AnyGPUVecOrMat)
dd = D.diag
d = length(dd)
m, n = size(A, 1), size(A, 2)
Expand Down

0 comments on commit 0c26c5f

Please sign in to comment.