diff --git a/src/host/sparse.jl b/src/host/sparse.jl index 5c84ee77..f374b32b 100644 --- a/src/host/sparse.jl +++ b/src/host/sparse.jl @@ -77,7 +77,7 @@ function LinearAlgebra.opnorm(A::AbstractGPUSparseMatrixCSR, p::Real=2) end end -LinearAlgebra.opnorm(A::AbstractGPUSparseMatrixCSC, p::Real=2) = opnorm(csr_type(A)(A), p) +LinearAlgebra.opnorm(A::AbstractGPUSparseMatrixCSC, p::Real=2) = opnorm(csr_type(typeof(A))(A), p) function LinearAlgebra.norm(A::AbstractGPUSparseMatrix{T}, p::Real=2) where T if p == Inf