This project has moved and is read-only. For the latest updates, please go here.

How to set MKL linear algebra provider in Visual Basic.

May 26, 2014 at 9:25 PM
All of the documentation I can find for Math.NET Numerics is for C so here is an example for
I struggled with this for a while so I thought I would post my solution.

In header:
Imports MathNet
Imports MathNet.Numerics
Imports MathNet.Numerics.LinearAlgebra
Imports MathNet.Numerics.LinearAlgebra.Double

On loading:
Private Sub frmMain_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Control.LinearAlgebraProvider = New MathNet.Numerics.Providers.LinearAlgebra.Mkl.MklLinearAlgebraProvider
End Sub

May 26, 2014 at 9:34 PM

Btw, if you're on v3 there's also a shorter version:
Marked as answer by MatthewRyanDavis on 5/26/2014 at 1:55 PM
May 26, 2014 at 9:55 PM
Yep that's easier...