📢 We are pleased to announce the integration of a new stack feature in #Blosc2 🚀, which allows for stacking large arrays along a new axis.

Performance benchmarks show that while aligned chunks yield the best results, #Blosc2 with unaligned chunks can still outperform #NumPy—a welcome discovery! 🎉

Many thanks to Luke Shaw for his excellent work on this new functionality. 🙏

We've updated our recent blog post:
Check it out! 🔗 https://www.blosc.org/posts/blosc2-new-concatenate/#stacking-arrays

#Python #DataScience #Performance #OpenSource

Array programming in Numpy, 25K citations since 2020.

#numpy

In NumPy, if a and b are matrices, a @ b gives you the matrix product.

If a and b are vectors, a @ b gives you a dot product.

If a and b are scalars (0-dimensional tensors), a @ b throws an error.

#Python #NumPy

[入門] Pythonを10倍高速化する実践テクニック集 - Qiita

「Pythonは遅い」という言葉を聞いたことがありませんか? そして、その言葉を聞いて「仕方ない」と諦めてしまった経験はないでしょうか。確かにPythonは動的型付け言語であり、C/C++と比べると実行速度で劣ることは事実です。しかし、本当にそれで諦めてしまって良い...

Qiita

Provocative writing style but an interesting proposal for a better array interface for #Python. If you've ever found yourself hacking `None` into #NumPy array indices to make broadcasting work, you might find this (and the associated "I don't like NumPy") interesting:

https://dynomight.net/dumpy/

(via @nicholdav)

This might be more evidence for my growing feeling that JAX is magical.

DumPy: NumPy except it’s OK if you’re dum

reject clever

DYNOMIGHT

Today I was scratching my head why k-means didn't seem to reduce Mean Squared Error. The clustering seemed fine. Is the error computation broken? How can it be when it's so simple:

def compute_mse(a, b):
return np.mean((a-b)**2)

Well, arguments 'a' and 'b' were images with 8 bits per channel, so...

#numpy

Oh dear, I'm still working on erosion. For quick experimentation, I've even broken out #Python, #Jupyter, #numpy and #matplotlib.

Here's a neat picture showing that something is working a little bit, although I think usually rivers are lower than the surrounding terrain, not higher.

Where will this end?

#GameDev #IndieDev #ProcGen

Otro ejemplito de la libreria tcod en #python y #numpy . Esto es un bosque, con arboles dispuestos aleatoriamente (Poisson noise) y un personaje que camina a través del bosque. No puede pasar a través de los árboles debe esquivarlos.
@EvenRouault Look out #numpy, #GDAL is coming for you! 😁