Cap#

class discopy.tensor.Cap(left, right)[source]#

Bases: discopy.frobenius.Cap, Box

A tensor cap is a frobenius cap in a tensor diagram.

Parameters
  • left (Ty) – The atomic type.

  • right (Ty) – Its adjoint.