Skip to content

Commit 7edaf03

Browse files
committed
remove sector, define TrivialSector()
1 parent 843fc2d commit 7edaf03

File tree

2 files changed

+142
-134
lines changed

2 files changed

+142
-134
lines changed

NDTensors/src/lib/Sectors/src/category_product.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ CategoryProduct(c::CategoryProduct) = _CategoryProduct(categories(c))
1616
categories(s::CategoryProduct) = s.cats
1717

1818
const TrivialSector = CategoryProduct{Tuple{}}
19+
TrivialSector() = CategoryProduct(())
1920

2021
# ================================= Sectors interface ====================================
2122
function SymmetryStyle(c::CategoryProduct)
@@ -122,8 +123,6 @@ function recover_category_product_type(T::Type, cats::Tuple{Vararg{AbstractCateg
122123
return CategoryProduct(T(cats))
123124
end
124125

125-
sector(args...; kws...) = CategoryProduct(args...; kws...)
126-
127126
# ================================= Cartesian Product ====================================
128127
×(c1::AbstractCategory, c2::AbstractCategory) = ×(CategoryProduct(c1), CategoryProduct(c2))
129128
function ×(p1::CategoryProduct, p2::CategoryProduct)

0 commit comments

Comments
 (0)