File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
NDTensors/src/lib/GradedAxes/src Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ OneToOne() = OneToOne{Bool}()
66Base. first (a:: OneToOne ) = one (eltype (a))
77Base. last (a:: OneToOne ) = one (eltype (a))
88
9- gradedisequal (:: OneToOne , :: OneToOne ) = true
10-
119# https://github.com/ITensor/ITensors.jl/blob/v0.3.57/NDTensors/src/lib/GradedAxes/src/tensor_product.jl
1210# https://en.wikipedia.org/wiki/Tensor_product
1311# https://github.com/KeitaNakamura/Tensorial.jl
Original file line number Diff line number Diff line change 3939
4040# == is just a range comparison that ignores labels. Need dedicated function to check equality.
4141function gradedisequal (a1:: AbstractUnitRange , a2:: AbstractUnitRange )
42+ return blockisequal (a1, a2)
43+ end
44+
45+ function gradedisequal (a1:: AbstractGradedUnitRange , a2:: AbstractGradedUnitRange )
4246 return blockisequal (a1, a2) && (blocklabels (a1) == blocklabels (a2))
4347end
4448
You can’t perform that action at this time.
0 commit comments