def filter.density
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
5039def filter.density(+m: Matrix) -> F32:
5040 Matrix{a, b, c, d, e, f} = m
5041 +x = (a * a + b * b : F32)
5042 +y = (c * c + d * d : F32)
5043 +dot = (a * c + b * d : F32)
5044 # Largest singular value keeps transformed pattern buffers at device density.
5045 F32.sqrt(((x + y + F32.sqrt(((x - y) * (x - y) + 4.0 * dot * dot : F32))) * 0.5 : F32))