public static View <double, TExecutionSpace> Shepard2d(View <double, TExecutionSpace> xd, View <double, TExecutionSpace> zd, double p, View <double, TExecutionSpace> xi) { nint result = KokkosLibrary.Shepard2dDouble(xd.Pointer, zd.Pointer, p, xi.Pointer, executionSpace); NdArray ndArray = View <double, TExecutionSpace> .RcpConvert(result, 1); View <double, TExecutionSpace> zi = new View <double, TExecutionSpace>(new NativePointer(result, sizeof(double) * xi.Size()), ndArray); return(zi); }