vibespatial.geometry.equality

GPU-accelerated geometry equality operations.

geom_equals_exact: element-wise coordinate comparison with tolerance.

Tier 2 CuPy for coordinate diff + Tier 3a CCCL segmented reduce. ADR-0002: PREDICATE class, dual fp32/fp64 with coordinate centering.

geom_equals: normalize-then-compare (composes normalize + equals_exact).

Inherits dual-precision from both operations.

Functions

geom_equals_exact_owned(→ numpy.ndarray)

Element-wise geometry equality with tolerance.

geom_equals_owned(→ numpy.ndarray)

Element-wise topological geometry equality.

Module Contents

vibespatial.geometry.equality.geom_equals_exact_owned(left: vibespatial.geometry.owned.OwnedGeometryArray, right: vibespatial.geometry.owned.OwnedGeometryArray, tolerance: float, *, dispatch_mode: vibespatial.runtime.ExecutionMode | str = ExecutionMode.AUTO) numpy.ndarray

Element-wise geometry equality with tolerance.

Returns a bool array of shape (row_count,). GPU path compares coordinate buffers directly (no Shapely round-trip). Falls back to Shapely for row count below threshold or when GPU is unavailable.

vibespatial.geometry.equality.geom_equals_owned(left: vibespatial.geometry.owned.OwnedGeometryArray, right: vibespatial.geometry.owned.OwnedGeometryArray, *, dispatch_mode: vibespatial.runtime.ExecutionMode | str = ExecutionMode.AUTO) numpy.ndarray

Element-wise topological geometry equality.

Normalizes both inputs then compares with tolerance 1e-12. Returns a bool array of shape (row_count,).