
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
A simple cross platform .NET API for Intel MKL. Reference the MKL.NET package and required runtime packages and use the static MKL functions. The correct native libraries will be included and loaded at runtime. Exposing functions from MKL keeping the syntax as close to the c developer reference as possible: https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top.html
A simple cross platform .NET API for Intel MKL.
Exposing functions from MKL keeping the syntax as close to the c developer reference as possible.
Reference the MKL.NET package and required runtime packages and use the static MKL functions. The correct native libraries will be included and loaded at runtime.
| MKL.NET | |
|---|---|
| runtimes: | |
| MKL.NET.win-x64 | |
| MKL.NET.win-x86 | |
| MKL.NET.linux-x64 | |
| MKL.NET.linux-x86 | |
| MKL.NET.osx-x64 | |
| libraries: | |
| MKL.NET.Matrix | |
| MKL.NET.Optimization | |
| MKL.NET.Statistics |
The following example only results in one new matrix r (using ArrayPool) without mutating inputs.
public static matrix Example(matrix ma, matrix mb, vector va, vector vb)
{
using matrix r = 0.5 * Matrix.Abs(1.0 - ma) * mb.T + Math.PI * va.T * Vector.Sin(vb);
...
}
Example statistics matrix function:
public static (vector, matrix) MeanAndCovariance(matrix samples, vector weights)
{
if (samples.Rows != weights.Length) ThrowHelper.ThrowIncorrectDimensionsForOperation();
var mean = new vector(samples.Cols);
var cov = new matrix(samples.Cols, samples.Cols);
var task = Vsl.SSNewTask(samples.Cols, samples.Rows, VslStorage.ROWS, samples.Array, weights.Array);
ThrowHelper.Check(Vsl.SSEditCovCor(task, mean.Array, cov.Array, VslFormat.FULL, null, VslFormat.FULL));
ThrowHelper.Check(Vsl.SSCompute(task, VslEstimate.COV, VslMethod.FAST));
ThrowHelper.Check(Vsl.SSDeleteTask(task));
return (mean, cov);
}
Note: arrays need to be pinned across all MKL function calls when there are multiple as above as MKL stores native pointers and the arrays could be moved between calls. MKL.NET handles pinning automatically, unpinning when the task is deleted. This is a common seen bug when using MKL directly from .NET which causes occasional crashes.
Simple and high performance optimization and root finding library loosely based on the scipy.optimize API.
The aim is to include the latest algorithms such as Toms748, robustly tested with CsCheck. Full use of MKL.NET will be made to improve performance. Algorithms will be performance tested and default to the best for given inputs.
Simple and high performance statistics functions.
FAQs
A simple cross platform .NET API for Intel MKL. Reference the MKL.NET package and required runtime packages and use the static MKL functions. The correct native libraries will be included and loaded at runtime. Exposing functions from MKL keeping the syntax as close to the c developer reference as possible: https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top.html
We found that mkl.net.win-x64 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.