首先在Nuget添加MathNet.Numerics.MKL-win64;在这个网页有详细的指示:
https://numerics.mathdotnet.com/MKL.html
设置完之后,在控制台运行时,下列代码打印结果是“True”;
Control.UseNativeMKL();
bool b = Control.TryUseNativeMKL();
Console.WriteLine(b);
但是在Winform里面,先是提示找不到对应模块,我添加之后,又报错了:
MKL Native Provider found but failed to load. Please verify that the platform matches (x64 vs x32, Windows vs Linux).”
兄弟你这个winform 是 framework的还是.net core的,