public static View <float, TExecutionSpace> NearestNeighbor(View <float, TExecutionSpace> latlongdegrees) { nint result = KokkosLibrary.NearestNeighborSingle(latlongdegrees.Pointer, executionSpace); NdArray ndArray = View <float, TExecutionSpace> .RcpConvert(result, 1); View <float, TExecutionSpace> neighbors = new View <float, TExecutionSpace>(new NativePointer(result, sizeof(float) * latlongdegrees.Extent(0)), ndArray); return(neighbors); }