numty
Mathematik im NumPy-Stil für Typst — Vektoren, Matrizen und Broadcasting.
Eine Bibliothek für elementweise Mathematik mit Zahlen, Vektoren und Matrizen in Typst, mit Broadcasting und NaN-Behandlung. Die API folgt NumPy: add, mult, dot, linspace und Co. verhalten sich wie erwartet.
#import "@preview/numty:0.2.0" as nt
#let a = (1, 2, 3)
#nt.mult(a, 2) // (2, 4, 6)
#nt.dot(a, a) // 14
#nt.sin(nt.linspace(0, 10, 3))