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