This project has moved. For the latest updates, please go here.

How to set MKL linear algebra provider in Visual Basic.

May 26, 2014 at 8:25 PM
All of the documentation I can find for Math.NET Numerics is for C so here is an example for VB.net.
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

Coordinator
May 26, 2014 at 8:34 PM
Thanks!

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