We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b94f4e8 commit 2684005Copy full SHA for 2684005
NDTensors/src/lib/Sectors/src/category_product.jl
@@ -30,6 +30,7 @@ function quantum_dimension(::NonGroupCategory, s::CategoryProduct)
30
return prod(map(quantum_dimension, categories(s)))
31
end
32
33
+# use map instead of broadcast to support both Tuple and NamedTuple
34
GradedAxes.dual(s::CategoryProduct) = CategoryProduct(map(dual, categories(s)))
35
36
trivial(type::Type{<:CategoryProduct}) = sector(categories_trivial(categories_type(type)))
0 commit comments