Skip to content

Commit 6d9efe0

Browse files
lkdvosclaude
andcommitted
Drop duplicate block-tensor == in favour of the entrywise one in linalg.jl
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 4da2430 commit 6d9efe0

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎src/tensors/abstractblocktensor/abstracttensormap.jl‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,6 @@ end
125125
Base.getindex(iter::TK.BlockIterator{<:AbstractBlockTensorMap}, c::Sector) =
126126
_block(iter.t, last(iter.structure), c)
127127

128-
function Base.:(==)(t₁::AbstractBlockTensorMap, t₂::AbstractBlockTensorMap)
129-
(codomain(t₁) == codomain(t₂) && domain(t₁) == domain(t₂)) || return false
130-
b₁, b₂ = TK.blocks(t₁), TK.blocks(t₂)
131-
return all(c -> b₁[c] == b₂[c], blocksectors(t₁))
132-
end
133-
134128
function TensorKit.foreachblock(f, t::AbstractBlockTensorMap; scheduler = nothing)
135129
foreach(TK.blocks(t)) do (c, b)
136130
return f(c, (b,))

0 commit comments

Comments
 (0)