Skip to content

Commit e38b2a5

Browse files
kshyattlkdvos
authored andcommitted
Update ext/TensorKitAMDGPUExt/roctensormap.jl
Co-authored-by: Lukas Devos <ldevos98@gmail.com>
1 parent 4a18bbe commit e38b2a5

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

ext/TensorKitAMDGPUExt/roctensormap.jl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,6 @@ function TensorKit.scalar(t::ROCTensorMap{T, S, 0, 0}) where {T, S}
9999
return isempty(inds) ? zero(scalartype(t)) : @allowscalar @inbounds t.data[only(inds)]
100100
end
101101

102-
function Base.convert(
103-
TT::Type{ROCTensorMap{T, S, N₁, N₂}},
104-
t::AbstractTensorMap{<:Any, S, N₁, N₂}
105-
) where {T, S, N₁, N₂}
106-
if typeof(t) === TT
107-
return t
108-
else
109-
tnew = TT(undef, space(t))
110-
return copy!(tnew, t)
111-
end
112-
end
113-
114102
function LinearAlgebra.isposdef(t::ROCTensorMap)
115103
domain(t) == codomain(t) ||
116104
throw(SpaceMismatch("`isposdef` requires domain and codomain to be the same"))

0 commit comments

Comments
 (0)