File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
NDTensors/src/lib/BlockSparseArrays/ext/BlockSparseArraysGradedAxesExt/test Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ using NDTensors.GradedAxes:
1515 isdual
1616using NDTensors. LabelledNumbers: label
1717using NDTensors. SparseArrayInterface: nstored
18+ using NDTensors. SymmetrySectors: U1
1819using NDTensors. TensorAlgebra: fusedims, splitdims
1920using LinearAlgebra: adjoint
2021using Random: randn!
@@ -26,13 +27,6 @@ function blockdiagonal!(f, a::AbstractArray)
2627 return a
2728end
2829
29- struct U1
30- n:: Int
31- end
32- GradedAxes. dual (c:: U1 ) = U1 (- c. n)
33- GradedAxes. fuse_labels (c1:: U1 , c2:: U1 ) = U1 (c1. n + c2. n)
34- Base. isless (c1:: U1 , c2:: U1 ) = isless (c1. n, c2. n)
35-
3630const elts = (Float32, Float64, Complex{Float32}, Complex{Float64})
3731@testset " BlockSparseArraysGradedAxesExt (eltype=$elt )" for elt in elts
3832 @testset " map" begin
You can’t perform that action at this time.
0 commit comments