API Reference

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

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.array

Array backends for yarrow.finite_function.

yarrow.cupy

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