These guys have made a wrapper around the MKL: http://www.dnanalytics.net/doku.php Might help?
djlove
Posts
-
Intel MKL -
Receiving WM_DEVICECHANGE message from a console appI am just guessing that you might need a message pump, like you get when you call Application.Run in a Winforms project. If you must use Console rather than Windows forms project type then you can add an Application.Run statement into your program (once you add the relevant namespaces) and then you will receive messages. Just a hunch...
-
Division AlgorithmHi, I was playing around with a BigInteger class recently and so have come across the same problem. The fastest way I could think of is below, if you say x / y = z (with remainder = r). 1. Find the leading 64 bits of your big number (x) 2. Find the leading 32 bits of your divisor (y). 3. Divide (1) by (2) to give you the leading 32 bits of z. 4. Multiply (3) by y and take this number from x Continually applying steps 1-4 reduces the size of x until you are within +/- 1 of the correct value of z. This is fast because all operations are O(n) or less if you code them properly! Hope this is of some use & good luck! Russ
-
Rasing Asynchronous delegates in the invocation orderI'm not sure you can control the order in which delegates are invoked. Instead you could use a System.Timers.Timer object (which will execute on a thread pool thread) and a synchronized list of work items. You add work items to the list and the timer routine takes them off again.
-
Redirect Console output to text fileHi all, I want my Console.WriteLine(...) output to be saved in a text file AS WELL AS displayed on the console screen. I know how to get the output to go to the text file instead of the screen (use Console.SetOut to the stream provided by a new StreamWriter, say). But I can't get the output to go to BOTH! I am probably being very stupid, and there is a simple answer, but all the google hits discuss the situation where you want the output to go to the text file instead of the console window. Thanks for anything you can suggest! Russ
-
Numerical Recipes in C#Good find. It always takes me an age to translate something from the book into CS, this is a real time saver!
-
How to find permutationsYou might be interested in this: http://en.wikipedia.org/wiki/Factoradic [^] and there is also some code at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/permutations.asp [^] This is a very good and general way of calculating Permutations, hope this helps!