public static void CallUnsafe(double[] a, int aStartIndex, double[] y, int yStartIndex, int length, UnsafeVectorOperation operation) { fixed(double *p_a = &a[aStartIndex]) { fixed(double *p_y = &y[yStartIndex]) { operation(length, p_a, p_y); } } }
public static void CallUnsafe(double[] a, int aStartIndex, double[] y, int yStartIndex, int length, UnsafeVectorOperation operation) { fixed (double* p_a = &a[aStartIndex]) { fixed (double* p_y = &y[yStartIndex]) { operation(length, p_a, p_y); } } }