matrix

Contents

matrix#

The category of matrices with the direct sum as monoidal product.

Summary#

Matrix

A matrix is an array with natural numbers as dom and cod.

Backend

A matrix backend.

NumPy

NumPy backend.

JAX

JAX backend.

PyTorch

PyTorch backend.

TensorFlow

TensorFlow backend.

Functions

backend

Context manager for matrix backend.

set_backend

Override the default backend.

get_backend

Get the current backend.

See also