Dim

Dim#

class discopy.monoidal.Dim(*inside)[source]#

Bases: Ty

A dimension is a tuple of positive integers with product @ and unit Dim(1).

Example

>>> Dim(1) @ Dim(2) @ Dim(3)
Dim(2, 3)
Parameters:

inside (int) –

ob_factory#

alias of int

ob#

alias of Dim