using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using System.ComponentModel; using System.Threading; namespace C06PKF { class Program { [StructLayout(LayoutKind.Sequential)]/* Force sequential mapping */ public struct complex { public double r; public double i; }; [DllImport("FLDLL214Z_nag.dll")] public static extern void C06PKF(ref int job, double[,] x, double[,] y, ref int n, complex[] work, ref int ifail); static void Main(string[] args) { HiPerfTimer pt = new HiPerfTimer(); int ifail; int n = 5000000; double[,] x = new double[n,2]; double[,] y = new double[n,2]; complex[] work = new complex[4 * n]; for (int j=0; j