Simple Algorithm Project
The ILNumerics Computing Engine makes it really easy to write sophisticated numerical algorithms, based on ILNumerics n-dimensional arrays - just like you are used to from Matlab (R) or numpy.
1. Create a new project:
Currently, ILNumerics supports C# and Visual Basic projects. Let's start with a new C# Console Application, targeting .NET 5.0:
In the next steps select a name, storage location and .NET 5.0 as target framework.
2. Add Nuget Packages:
Visual Studio has created an empty Console project for you. Open the Nuget Package Manager Console (Tools -> Nuget Package Manager -> Package Manager Console) and type:
3. Write your Algorithm
In the beginning of your Program.cs file add the following using directives (C#):
Add the following code lines to the (auto-generated) Main method:
In this simple algorithm we solve a simple equation system. First, two matrices are created: A is 5x5 with increasing values on the diagonal. The matrix RS (for 'right side') 3 random values, populated along 5 equal rows. The system is solved by linsolve and stored into variable Inv. All arrays are printed. In the end, we perfom checking of the result.
The whole Program.cs file should now look as follows:
4. Run your App
Hit F5. The output should be similar to this:
You have just completed your first ILNumerics algorithm!
Computing Engine documentation
Debugging with ILNumerics Array Visualizer (Video)
ILNumerics® Quick Reference Charts
Writing Functions with ILNumerics - Example
ILNumerics for Matlab Users (Download PDF):
For a quick basic introduction into ILNumerics Computing Engine go here. Or learn everything in the online documentation.