In my previous post, I have presented how to use the code of Numerical Recipes in MFC/C++. In this post, the use of it in C# is discussed.
The most straightforward way is to use some wrapper class, e.g. the one presneted here, and a wrapper class is downloadable at link1 or from my backup link2 here.
Below is how to use it in C#:
1. Add the C# implementation of the snippets of “Numeric Recipe in C++”, 3rd edition into the project:
2. Import the related namespace and call the functions of interest:
Note that the starting index of the matrix element is “1”, rather than “0” !
Emm, it works!
Cheers and happy coding!
Filed under: Dotnet/C#, Programming Tagged: .net, 3rd edition, C#, Cambridge, DotNet, Numeric Recipe
