Ejemplo n.º 1
0
 static IntelMathKernelLibrary()
 {
     NativeLibraryHelper.AddLibraryPath();
     // if necessary, can set threading mode here. Most commonly threading would be done
     // at higher level than MKL call (i.e. with .NET threads), in which case we want sequential mode.
     //int mode = 1; // 0 = threaded; 1 = sequential
     //mkl_set_threading_layer(ref mode);
     //int nThreads = 2;
     //mkl_set_num_threads(ref nThreads);
 }
Ejemplo n.º 2
0
        static IntelMKLRandomNumberStream()
        {
            NativeLibraryHelper.AddLibraryPath();

            BRNGMapper = new int[13];
            int increment = 1 << 20;
            int value     = increment;

            for (int i = 0; i < 13; ++i)
            {
                BRNGMapper[i] = value;
                value        += increment;
            }
        }
 static IntelMathKernelLibraryRandom()
 {
     NativeLibraryHelper.AddLibraryPath();
 }