NumSharp 0.70.0
NumSharp
NumPy for .NET — a native .NET array library with a NumPy-shaped API: NDArray,
broadcasting, slicing views, dtype-aware np.* functions, unmanaged storage, and
runtime-generated SIMD kernels. The compatibility target is NumPy 2.x; where behavior
differs, NumPy is treated as the source of truth.
NumSharp.Core is 100% managed C# with no native dependency and no P/Invoke — every
kernel is its own managed code. An optional OpenBLAS matrix-product backend ships separately
as NumSharp.Interop.OpenBLAS.
Install
dotnet add package NumSharp
Quick start
using NumSharp;
var a = np.arange(12).reshape(3, 4);
var window = a[":, 1::2"];
Console.WriteLine(window);
Console.WriteLine(np.sum(window, axis: 0));
For Python readers, the shape is deliberately close:
import numpy as np
a = np.arange(12).reshape(3, 4)
print(a[:, 1::2].sum(axis=0))
Features
- NumPy-style
NDArray— N-dimensional arrays with shape, strides, offsets, slicing, and view semantics (slices return views that share memory). - Broadcasting — NumPy-style shape expansion without materializing repeated values.
- Dtype-aware operations — 15 core dtypes with NumPy-oriented promotion (NEP50) and conversion behavior.
- Broad
np.*surface — creation, manipulation, math, reductions, comparisons, logic, linear algebra, FFT, random sampling, and.npy/.npzI/O. - Generated IL + SIMD kernels — runtime-specialized kernels (V128/V256/V512) for supported dtype and layout combinations.
Links
- Documentation: https://scisharp.github.io/NumSharp/
- Getting started: https://scisharp.github.io/NumSharp/docs/NDArray.html
- API reference: https://scisharp.github.io/NumSharp/api/
- Coverage & support dashboard: https://scisharp.github.io/NumSharp/docs/coverage-support-dashboard.html
- Source: https://github.com/SciSharp/NumSharp
Licensed under the Apache License 2.0.
Showing the top 20 packages that depend on NumSharp.
| Packages | Downloads |
|---|---|
|
TensorFlow.NET
Google's TensorFlow full binding in .NET Standard.
Docs: https://tensorflownet.readthedocs.io
|
3 |
|
TensorFlow.NET
Google's TensorFlow full binding in .NET Standard.
Building, training and infering deep learning models.
https://tensorflownet.readthedocs.io
|
3 |
|
TensorFlow.NET
TensorFlow binding for .NET Standard.
|
3 |
|
TensorFlow.NET
Google's TensorFlow binding in .NET Standard.
Docs: https://tensorflownet.readthedocs.io
|
3 |
.NET 10.0
- No dependencies.
.NET 8.0
- No dependencies.
| Version | Downloads | Last updated |
|---|---|---|
| 0.70.0 | 1 | 09/11/2026 |
| 0.60.0 | 2 | 07/16/2026 |
| 0.50.0-prerelease | 1 | 07/16/2026 |
| 0.41.0-prerelease | 1 | 07/16/2026 |
| 0.40.0-prerelease | 1 | 09/03/2026 |
| 0.30.0 | 2 | 07/16/2026 |
| 0.20.5 | 2 | 07/16/2026 |
| 0.20.4 | 1 | 09/03/2026 |
| 0.20.3 | 1 | 09/03/2026 |
| 0.20.2 | 2 | 07/18/2026 |
| 0.20.1 | 2 | 07/16/2026 |
| 0.20.0 | 3 | 07/17/2026 |
| 0.10.6 | 2 | 07/16/2026 |
| 0.10.5 | 2 | 07/17/2026 |
| 0.10.4 | 2 | 07/17/2026 |
| 0.10.3 | 2 | 07/17/2026 |
| 0.10.2 | 2 | 07/17/2026 |
| 0.10.1 | 2 | 07/17/2026 |
| 0.10.0 | 2 | 07/17/2026 |
| 0.9.0 | 1 | 08/12/2026 |
| 0.8.3 | 2 | 07/17/2026 |
| 0.8.2 | 2 | 07/17/2026 |
| 0.8.1 | 2 | 07/17/2026 |
| 0.8.0 | 4 | 07/17/2026 |
| 0.7.4 | 2 | 07/17/2026 |
| 0.7.3 | 2 | 07/16/2026 |
| 0.7.2 | 2 | 07/16/2026 |
| 0.7.1 | 2 | 07/17/2026 |
| 0.7.0 | 2 | 07/17/2026 |
| 0.6.6 | 2 | 07/17/2026 |
| 0.6.5 | 3 | 07/17/2026 |
| 0.6.4 | 1 | 07/17/2026 |
| 0.6.3 | 2 | 07/17/2026 |
| 0.6.2 | 2 | 07/16/2026 |
| 0.6.1 | 1 | 08/12/2026 |
| 0.6.0 | 2 | 07/17/2026 |
| 0.5.0 | 2 | 07/17/2026 |
| 0.4.0 | 2 | 07/16/2026 |
| 0.3.0 | 2 | 07/16/2026 |
| 0.2.0 | 1 | 07/16/2026 |
| 0.1.0 | 2 | 07/17/2026 |