File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
NDTensors/src/lib/Sectors/src Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2929# use map instead of broadcast to support both Tuple and NamedTuple
3030GradedAxes. dual (s:: CategoryProduct ) = CategoryProduct (map (dual, categories (s)))
3131
32- trivial (type:: Type{<:CategoryProduct} ) = sector (categories_trivial (categories_type (type)))
32+ function trivial (type:: Type{<:CategoryProduct} )
33+ return CategoryProduct (categories_trivial (categories_type (type)))
34+ end
3335
3436# =================================== Base interface =====================================
3537function Base.:(== )(A:: CategoryProduct , B:: CategoryProduct )
158160
159161# Empty case
160162function fusion_rule (:: AbelianStyle , :: TrivialSector , :: TrivialSector )
161- return sector ( )
163+ return CategoryProduct (() )
162164end
163165
164166# TrivialSectorStyle acts as trivial on any AbstractCategory, not just CategoryProduct
You can’t perform that action at this time.
0 commit comments