Skip to main content

euclidean_cluster_roots_gpu_with_receipt

Function euclidean_cluster_roots_gpu_with_receipt 

Source
pub fn euclidean_cluster_roots_gpu_with_receipt(
    runtime: &WgpuRuntime,
    x: &[f32],
    y: &[f32],
    z: &[f32],
    cluster_tolerance: f32,
) -> SpatialResult<(Vec<u32>, TransferStats)>
Expand description

Builds sparse cells and labels minimum-index components on the GPU. Returns roots on the host with explicit upload/readback accounting. Nonempty inputs require finite XYZ and a positive tolerance with a finite reciprocal. Positive infinity initializes one component on the device.