API Reference

Data-parallel algorithms for string diagrams as seen in Wilson and Zanasi [WZ23].

yarrow.array

Array backends for yarrow.finite_function.

yarrow.finite_function

An implementation of finite functions as arrays.

yarrow.bipartite_multigraph

A representation of the "internal wiring" of string diagrams.

yarrow.diagram

Diagrams are the main datastructure of yarrow, and represent string diagrams.

yarrow.functor

(Strict Symmetric Monoidal Hypergraph) Functors of Diagrams, and diagrams of optics.

yarrow.segmented

Segmented arrays with a categorical flavour

yarrow.numpy

NumPy-backed finite functions, bipartite multigraphs, and diagrams.

yarrow.cupy

CuPy-backed finite functions, bipartite multigraphs, and diagrams.