- Modernized
SafeNativeMethodsintoMklNative.csusing compile-time source-generated[LibraryImport]rather than runtime-marshaled[DllImport].- Replaced
T[]withSpan<T>andReadOnlySpan<T>for zero-allocation native interop. - Native interop declarations in
MklNativeare keptpublic(instead ofinternal) to allow direct call access when necessary.
- Replaced
- High-Level wrappers (
MklWrapper)MatrixMultiply/MatrixMultiplyWithUpdate: Non-allocating APIs for matrix-matrix and matrix-vector multiplication.DotProduct
This library acts as a P/Invoke wrapper around libMathNetNumericsMKL.dll. To run, you must supply the native library, e.g., by referencing:
<PackageReference Include="MathNet.Numerics.MKL.Win-x64" Version="3.0.0" />