From 56b4e7212582a89eaaccd035dcda54efacda7974 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Sun, 15 Nov 2026 18:14:51 +0100 Subject: [PATCH 1/2] landing: ndarray v0.42.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The card says "library · v0.42.0". The ndarray blurb, the "Linear algebra" family and the hero text say MatMul and Dot run on go-blas/blas v0.2.1, with the same kernels as before: ndarray stopped carrying its own GEMM in v0.42.0. The SIMD card is about ndarray's own kernels (sum, elementwise, dot), still go-asmgen, and stays as it was. The playground builds against ndarray v0.42.0 (go-blas/blas v0.2.1 comes with it); its tests pass. Refs go-ndarray/ndarray#122 Co-Authored-By: Claude Sonnet 5.5 --- hugo.toml | 6 +++--- layouts/index.html | 2 +- playground/go.mod | 3 ++- playground/go.sum | 6 ++++-- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/hugo.toml b/hugo.toml index 9ebcfb3..b05591e 100644 --- a/hugo.toml +++ b/hugo.toml @@ -36,9 +36,9 @@ disableKinds = ['taxonomy', 'term', 'rss', 'sitemap', '404'] [[params.repos]] name = "ndarray" - kind = "library · v0.41.3" + kind = "library · v0.42.0" href = "https://github.com/go-ndarray/ndarray" - blurb = "The library, in 13 dtypes with NumPy 2 promotion. Creation (Zeros/Arange/Linspace/…), strided views, broadcasting elementwise + ufuncs, reductions (Sum in NumPy's pairwise order, within a stated error bound checked against math/big, from go-simd/floats; Max/ArgMax/CumSum/Clip/Where), manipulation (Reshape/Concatenate/Stack), linalg (MatMul/Dot) via a panel-packed cache-blocked GEMM with a go-asmgen SIMD-FMA micro-kernel (NEON 4×8 on arm64, AVX2/FMA 6×8 on amd64, VSX 8×8 on ppc64le, LASX 8×8 on loong64, RVV 6×16, or 8×16 on 256-bit vectors, on riscv64, 4×8 on s390x), and a Workspace arena for loops (Use/Reset/Detach). Packages linalg, fft and random are numpy.linalg, numpy.fft and numpy.random." + blurb = "The library, in 13 dtypes with NumPy 2 promotion. Creation (Zeros/Arange/Linspace/…), strided views, broadcasting elementwise + ufuncs, reductions (Sum in NumPy's pairwise order, within a stated error bound checked against math/big, from go-simd/floats; Max/ArgMax/CumSum/Clip/Where), manipulation (Reshape/Concatenate/Stack), linalg (MatMul/Dot) on go-blas/blas, a panel-packed cache-blocked GEMM with a go-asmgen SIMD-FMA micro-kernel, the same kernels as before v0.42.0 (NEON 4×8 on arm64, AVX2/FMA 6×8 on amd64, VSX 8×8 on ppc64le, LASX 8×8 on loong64, RVV 6×16, or 8×16 on 256-bit vectors, on riscv64, 4×8 on s390x), and a Workspace arena for loops (Use/Reset/Detach). Packages linalg, fft and random are numpy.linalg, numpy.fft and numpy.random." [[params.repos]] name = "docs" kind = "site" @@ -93,7 +93,7 @@ disableKinds = ['taxonomy', 'term', 'rss', 'sitemap', '404'] what = "`Concatenate`, `Stack` and the shape operations NumPy users reach for." [[params.families]] name = "Linear algebra" - what = "`MatMul` and `Dot` through a panel-packed, cache-blocked GEMM with a go-asmgen SIMD micro-kernel per architecture; package `linalg` is `numpy.linalg` (`Solve`, `Inv`, `Det`, `QR`, `SVD`, `Eig`, `Lstsq`, …), checked against numpy 2.5.3 on 1,040 cases." + what = "`MatMul` and `Dot` run on [go-blas/blas](https://github.com/go-blas/blas), the panel-packed, cache-blocked GEMM with a go-asmgen SIMD micro-kernel per architecture (the same kernels ndarray carried before v0.42.0); package `linalg` is `numpy.linalg` (`Solve`, `Inv`, `Det`, `QR`, `SVD`, `Eig`, `Lstsq`, …), checked against numpy 2.5.3 on 1,040 cases." [[params.families]] name = "Fourier transforms" what = "Package `fft` is `numpy.fft` on arrays: `FFT`, `RFFT`, `FFT2`, `FFTN` and the rest, with `n`/`s`, `axes` and `norm`, over go-fft." diff --git a/layouts/index.html b/layouts/index.html index d59b66f..7d5528e 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -20,7 +20,7 @@

NumPy-style n-dimensional arrays in pure Go.
13 dtypes, multicore + SIMD.

-

go-ndarray is the numpy equivalent for Go: an n-dimensional array in 13 dtypes with creation routines, strided views that share data, broadcasting elementwise ops and ufuncs, reductions (incl. arg / cumulative / clip / where), manipulation, linear algebra (a panel-packed, cache-blocked GEMM, and numpy.linalg), numpy.fft and numpy.random{{ if not (partial "mantra-on.html" .) }} — all in pure Go, with cgo disabled{{ end }}.

+

go-ndarray is the numpy equivalent for Go: an n-dimensional array in 13 dtypes with creation routines, strided views that share data, broadcasting elementwise ops and ufuncs, reductions (incl. arg / cumulative / clip / where), manipulation, linear algebra (a panel-packed, cache-blocked GEMM from go-blas/blas, and numpy.linalg), numpy.fft and numpy.random{{ if not (partial "mantra-on.html" .) }} — all in pure Go, with cgo disabled{{ end }}.

{{ partial "cta.html" . }}
{{ len .Site.Params.families }} API families, NumPy's names6 SIMD targetsCGO=0 no BLAS shim
diff --git a/playground/go.mod b/playground/go.mod index 43b50f8..73cfcae 100644 --- a/playground/go.mod +++ b/playground/go.mod @@ -3,7 +3,7 @@ module github.com/go-ndarray/go-ndarray.github.io/playground go 1.27.2 require ( - github.com/go-ndarray/ndarray v0.41.3 + github.com/go-ndarray/ndarray v0.42.0 github.com/go-widgets/mvvm v0.15.0 github.com/go-widgets/mvvmtk v0.15.0 github.com/go-widgets/painter v0.17.0 @@ -12,6 +12,7 @@ require ( require ( github.com/dsnet/compress v0.0.2-0.20230904184137-39efe44ab707 // indirect + github.com/go-blas/blas v0.2.1 // indirect github.com/go-crdt/crdt v0.57.0 // indirect github.com/go-gfx/gfx v0.41.0 // indirect github.com/go-icons/iconoir v0.3.0 // indirect diff --git a/playground/go.sum b/playground/go.sum index bde651b..f317b93 100644 --- a/playground/go.sum +++ b/playground/go.sum @@ -3,6 +3,8 @@ github.com/andybalholm/brotli v1.2.7/go.mod h1:rzTDkvFWvIrjDXZHkuS16NPggd91W3kUS github.com/dsnet/compress v0.0.2-0.20230904184137-39efe44ab707 h1:2tV76y6Q9BB+NEBasnqvs7e49aEBFI8ejC89PSnWH+4= github.com/dsnet/compress v0.0.2-0.20230904184137-39efe44ab707/go.mod h1:qssHWj60/X5sZFNxpG4HBPDHVqxNm4DfnCKgrbZOT+s= github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= +github.com/go-blas/blas v0.2.1 h1:5uZfmvXVZn9CjE+I3DalALqWHdKz+rbBs8VffH3dAZo= +github.com/go-blas/blas v0.2.1/go.mod h1:WjhlqzQ+RA8tS473f18QtcJl5Q0GonPs3RJIxT5G7Bk= github.com/go-crdt/crdt v0.57.0 h1:sNLDTVCEnSb20gm77BUuYav8dzj5krmly/z9O7eRMCo= github.com/go-crdt/crdt v0.57.0/go.mod h1:zdVTTDLGV5JYAoTJDqCivcAT+/B5gGebDsVd8QNZpVs= github.com/go-gfx/gfx v0.41.0 h1:MVEnory0Zx8ypzuVDrTIWz4Cekv8hn5ilcYg3glJPrk= @@ -11,8 +13,8 @@ github.com/go-icons/iconoir v0.3.0 h1:kHG2sU5IsCvtBS1JICuXgfFo5f8UfwY1m7KYMVy97C github.com/go-icons/iconoir v0.3.0/go.mod h1:lPh5OuzVQ+rR4qDPGgAdSRUhnCbHeCAX70HDdwp8/RI= github.com/go-images/images v0.1.1-0.20261026203936-4ac989d310a1 h1:R7Phx1lhFniaqF+k7yE72HcadFeViKYXXb9w2puZJRI= github.com/go-images/images v0.1.1-0.20261026203936-4ac989d310a1/go.mod h1:TXN7V9gKgEe8L4GVYeTO01sQI6n5JUL5Q1xIl09qOio= -github.com/go-ndarray/ndarray v0.41.3 h1:uuhZ9hYcYXzOVoAQoO8i+HGBliR7ZCiHb/OXxmbPy6c= -github.com/go-ndarray/ndarray v0.41.3/go.mod h1:e/5IBOVrikiwf3Hs8Z6G9EGC7kVwKAj+K569C83HbyU= +github.com/go-ndarray/ndarray v0.42.0 h1:M7vWxCzIOhrXul0kOgltZwuZPEFferuYesMux1DmFlM= +github.com/go-ndarray/ndarray v0.42.0/go.mod h1:2eeyA/dVOXTAsj+KjCMD7Bz7kClkD8+NAlJp3G+OuSk= github.com/go-opentype/fonts v0.14.0 h1:WHw7k9gkHT1pu9B2yyvd0FWyQqn/4NKFQoKhvMYt3Mo= github.com/go-opentype/fonts v0.14.0/go.mod h1:od2QcmdpKo7QCqo6Jb16y4GULk+h2Hhfq6x3xfvn62Q= github.com/go-opentype/opentype v0.16.2-0.20261027113239-5e69589e9a5e h1:SxBkVzp042LB0X7Ndu0WntqCVaewOm4DwikQYHenP5A= From 3d75a2a0f112d9a16e5f64afdf4c7ab6e785e821 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Sun, 15 Nov 2026 18:21:04 +0100 Subject: [PATCH 2/2] landing: correct the float64 RVV micro-kernel size The blurb listed the float32 RVV kernels (6x16, 8x16); the float64 one is 6x8, as ndarray v0.42.0 README says. The other entries match that README. Refs go-ndarray/ndarray#122 Co-Authored-By: Claude Sonnet 5.5 --- hugo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugo.toml b/hugo.toml index b05591e..74094f0 100644 --- a/hugo.toml +++ b/hugo.toml @@ -38,7 +38,7 @@ disableKinds = ['taxonomy', 'term', 'rss', 'sitemap', '404'] name = "ndarray" kind = "library · v0.42.0" href = "https://github.com/go-ndarray/ndarray" - blurb = "The library, in 13 dtypes with NumPy 2 promotion. Creation (Zeros/Arange/Linspace/…), strided views, broadcasting elementwise + ufuncs, reductions (Sum in NumPy's pairwise order, within a stated error bound checked against math/big, from go-simd/floats; Max/ArgMax/CumSum/Clip/Where), manipulation (Reshape/Concatenate/Stack), linalg (MatMul/Dot) on go-blas/blas, a panel-packed cache-blocked GEMM with a go-asmgen SIMD-FMA micro-kernel, the same kernels as before v0.42.0 (NEON 4×8 on arm64, AVX2/FMA 6×8 on amd64, VSX 8×8 on ppc64le, LASX 8×8 on loong64, RVV 6×16, or 8×16 on 256-bit vectors, on riscv64, 4×8 on s390x), and a Workspace arena for loops (Use/Reset/Detach). Packages linalg, fft and random are numpy.linalg, numpy.fft and numpy.random." + blurb = "The library, in 13 dtypes with NumPy 2 promotion. Creation (Zeros/Arange/Linspace/…), strided views, broadcasting elementwise + ufuncs, reductions (Sum in NumPy's pairwise order, within a stated error bound checked against math/big, from go-simd/floats; Max/ArgMax/CumSum/Clip/Where), manipulation (Reshape/Concatenate/Stack), linalg (MatMul/Dot) on go-blas/blas, a panel-packed cache-blocked GEMM with a go-asmgen SIMD-FMA micro-kernel, the same kernels as before v0.42.0 (NEON 4×8 on arm64, AVX2/FMA 6×8 on amd64, VSX 8×8 on ppc64le, LASX 8×8 on loong64, RVV 6×8 on riscv64, 4×8 on s390x), and a Workspace arena for loops (Use/Reset/Detach). Packages linalg, fft and random are numpy.linalg, numpy.fft and numpy.random." [[params.repos]] name = "docs" kind = "site"