vibespatial.constructive.shortest_line¶
GPU-accelerated shortest_line (binary constructive).
Computes the LineString connecting the nearest points between two geometries for each element-wise pair. Returns an OwnedGeometryArray of 2-point LineStrings.
Architecture (ADR-0033): Tier 1 NVRTC – geometry-specific inner loops iterating all segment pairs across two geometries to track the closest point pair.
Precision (ADR-0002): CONSTRUCTIVE class – stays fp64 on all devices per policy. PrecisionPlan wired through dispatch for observability.
Zero D2H transfers in the hot path. Geometry data and output assembly stay device-resident, including all-empty result branches.
Attributes¶
Functions¶
|
Element-wise shortest_line between two OwnedGeometryArrays. |
Module Contents¶
- vibespatial.constructive.shortest_line.cp = None¶
- vibespatial.constructive.shortest_line.shortest_line_owned(left: vibespatial.geometry.owned.OwnedGeometryArray, right: vibespatial.geometry.owned.OwnedGeometryArray, *, dispatch_mode: vibespatial.runtime.ExecutionMode | str = ExecutionMode.AUTO, precision: vibespatial.runtime.precision.PrecisionMode | str = PrecisionMode.AUTO) vibespatial.geometry.owned.OwnedGeometryArray | numpy.ndarray¶
Element-wise shortest_line between two OwnedGeometryArrays.
Returns an OwnedGeometryArray of 2-point LineStrings (GPU path) or a numpy array of Shapely LineStrings (CPU path). Null geometries produce null entries.
Supports pairwise (N vs N) and broadcast-right (N vs 1) modes.