Skip to content

Commit

Permalink
generic blockaxes(::OneToOne)
Browse files Browse the repository at this point in the history
  • Loading branch information
ogauthe committed Oct 2, 2024
1 parent 77ef307 commit b3e6008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NDTensors/src/lib/GradedAxes/src/fusion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ struct OneToOne{T} <: AbstractUnitRange{T} end
OneToOne() = OneToOne{Bool}()
Base.first(a::OneToOne) = one(eltype(a))
Base.last(a::OneToOne) = one(eltype(a))
BlockArrays.blockaxes(::OneToOne{Bool}) = (Block.(OneToOne()),)
BlockArrays.blockaxes(g::OneToOne) = (Block.(g),)

# https://github.com/ITensor/ITensors.jl/blob/v0.3.57/NDTensors/src/lib/GradedAxes/src/tensor_product.jl
# https://en.wikipedia.org/wiki/Tensor_product
Expand Down

0 comments on commit b3e6008

Please sign in to comment.