Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ disableKinds = ['taxonomy', 'term', 'rss', 'sitemap', '404']

[[params.repos]]
name = "ndarray"
kind = "library · v0.44.0"
kind = "library · v0.45.0"
href = "https://github.com/go-ndarray/ndarray"
blurb = "The library, in <strong>13 dtypes</strong> with NumPy 2 promotion. Creation (<code>Zeros</code>/<code>Arange</code>/<code>Linspace</code>/…), strided <strong>views</strong>, broadcasting elementwise + ufuncs, reductions (<code>Sum</code> in <strong>NumPy's pairwise order, within a stated error bound checked against <code>math/big</code></strong>, from <a href=\"https://github.com/go-simd/floats\">go-simd/floats</a>; <code>Max</code>/<code>ArgMax</code>/<code>CumSum</code>/<code>Clip</code>/<code>Where</code>), manipulation (<code>Reshape</code>/<code>Concatenate</code>/<code>Stack</code>), linalg (<code>MatMul</code>/<code>Dot</code>) on <a href=\"https://github.com/go-blas/blas\">go-blas/blas</a>, a panel-packed cache-blocked GEMM with a go-asmgen SIMD-FMA micro-kernel, the same kernels as before v0.42.0 (NEON 4&times;8 on arm64, AVX2/FMA 6&times;8 on amd64, VSX 8&times;8 on ppc64le, LASX 8&times;8 on loong64, RVV 6&times;8 on riscv64, 4&times;8 on s390x), and a <code>Workspace</code> arena for loops (<code>Use</code>/<code>Reset</code>/<code>Detach</code>). Packages <code>linalg</code>, <code>fft</code> and <code>random</code> are <code>numpy.linalg</code>, <code>numpy.fft</code> and <code>numpy.random</code>."
[[params.repos]]
Expand Down
8 changes: 4 additions & 4 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ <h2>{{ len .Site.Params.families }} families, <i>NumPy's names</i>.</h2>
<section id="perf" style="padding-top:10px"><div class="wrap">
<div class="stats">
<div><div class="n">100%</div><div class="l">test coverage, differentially checked against numpy</div></div>
<div><div class="n">51 / 256</div><div class="l">public operations faster than NumPy 2.5.4 on one Zen 3 core (<code>Sum</code> 0.76×, <code>fft.FFT</code> 0.64×, <code>Ravel</code> 0.35× NumPy's time), 19 more tied</div></div>
<div><div class="n">186 / 256</div><div class="l">slower on one core, every one an open defect, tracked by cause in <a href="https://github.com/go-ndarray/ndarray/issues/118"><u>#118</u></a></div></div>
<div><div class="n">54 / 256</div><div class="l">public operations faster than NumPy 2.5.4 on one Zen 3 core (<code>Sum</code> 0.80×, <code>fft.FFT</code> 0.52×, <code>Ravel</code> 0.36× NumPy's time), 17 more tied</div></div>
<div><div class="n">185 / 256</div><div class="l">slower on one core, every one an open defect, tracked by cause in <a href="https://github.com/go-ndarray/ndarray/issues/118"><u>#118</u></a></div></div>
<div><div class="n">≤ 0.51</div><div class="l">ULP for <code>Exp</code>/<code>Log</code>, ports of Arm's optimized-routines</div></div>
</div>
<div class="lead" style="max-width:none;margin-top:28px"><b>Measured, wins and losses, one core against one core.</b> The whole public API was timed against NumPy 2.5.4 with one-thread OpenBLAS 0.3.34, on the same data and on one AMD Zen 3 core (the code of v0.44.0). <b>Faster</b> on 51 of 256 operations, for example <code>Ravel</code> (0.35× NumPy's time, a view since v0.44.0), <code>Real</code> (0.57×), <code>SqrtInto</code> (0.52×), the complex <code>fft.FFT</code> (0.64×) and <code>Sum</code> (0.76×); 19 more are ties, such as <code>Exp</code> (0.92×). <b>Slower</b> on 186, chiefly from:
<div class="lead" style="max-width:none;margin-top:28px"><b>Measured, wins and losses, one core against one core.</b> The whole public API was timed against NumPy 2.5.4 with one-thread OpenBLAS 0.3.34, on the same data and on one AMD Zen 3 core (v0.45.0). <b>Faster</b> on 54 of 256 operations, for example <code>Ravel</code> (0.36× NumPy's time, a view since v0.44.0), <code>Real</code> (0.58×), <code>SqrtInto</code> (0.50×), the complex <code>fft.FFT</code> (0.52×) and <code>Sum</code> (0.80×); 17 more are ties, such as <code>Exp</code> (0.98×). <b>Slower</b> on 185, chiefly from:
<ul>
<li>allocating the result (<code>Add</code> 3.1× NumPy's time, where <code>AddInto</code> ties);</li>
<li>elementwise operations without a vector kernel yet (<code>Ceil</code> 20×, <code>Abs</code> 12×);</li>
Expand All @@ -135,7 +135,7 @@ <h2>What is here.</h2>
<section id="eco" style="padding-top:6px"><div class="wrap">
<div class="band">
<h2>The cgo-free ndarray the Go and Ruby ecosystems lacked.</h2>
<p>No cgo, no BLAS shim. A portable pure-Go core, multicore, with SIMD kernels on amd64, arm64, ppc64le, loong64, riscv64 and s390x and a <code>Workspace</code> arena that takes the garbage collector out of loops. Measured against NumPy one core against one core: faster on <code>Sum</code>, <code>Exp</code>, <code>SqrtInto</code> and the complex FFT, slower on 186 of 256 operations, which are being worked through. The numbers are on the <a href="https://go-ndarray.github.io/docs/latest/performance/"><u>performance page</u></a>.</p>
<p>No cgo, no BLAS shim. A portable pure-Go core, multicore, with SIMD kernels on amd64, arm64, ppc64le, loong64, riscv64 and s390x and a <code>Workspace</code> arena that takes the garbage collector out of loops. Measured against NumPy one core against one core: faster on <code>Sum</code>, <code>Exp</code>, <code>SqrtInto</code> and the complex FFT, slower on 185 of 256 operations, which are being worked through. The numbers are on the <a href="https://go-ndarray.github.io/docs/latest/performance/"><u>performance page</u></a>.</p>
<a class="btn btn-ghost" href="https://github.com/go-ndarray/ndarray">{{ partial "icons/github.html" . }}Read the source on GitHub →</a>
</div>
</div></section>
Expand Down
2 changes: 1 addition & 1 deletion playground/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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.44.0
github.com/go-ndarray/ndarray v0.45.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
Expand Down
4 changes: 2 additions & 2 deletions playground/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -13,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.44.0 h1:gPlhI/zp+g6pdkVzQTkwGidfljDMAXOwnjuJ/pnIPLQ=
github.com/go-ndarray/ndarray v0.44.0/go.mod h1:9Xc6/jtUvvtoGKLCQjS5hGvohOW6cb6KWkrlDBBCQCo=
github.com/go-ndarray/ndarray v0.45.0 h1:Hsp8LHDjDmzm02dZBw/ZASlxmn/tbvsHPKrdhDAr1+8=
github.com/go-ndarray/ndarray v0.45.0/go.mod h1:9Xc6/jtUvvtoGKLCQjS5hGvohOW6cb6KWkrlDBBCQCo=
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=
Expand Down
Loading