[Numpy-discussion] Re: Allow matrix multiplication in structured arrays

2025-06-13 Thread Marten van Kerkwijk
Hi Abel, As long as your x,y,z are next to each other, you can transform from your structure to an unstructured array via a view, which has very little cost. Though you need to be a bit careful with offsets, etc., if there are also other elements in the structured dtype. Example, with some extra

[Numpy-discussion] Re: Bumping CPU baseline to x86-64-v2

2025-06-13 Thread Ralf Gommers via NumPy-Discussion
On Fri, Jun 13, 2025 at 11:07 AM Jerome Kieffer wrote: > Hi Matti, > > Sorry for the delay ... > > In one of my project I am working on, we use based Avoton server > (Intel C2350) for CI/CD which can be rented today (2025) for less than > 5€/month > at online.net (a french provider). Switching to

[Numpy-discussion] Re: NumPy security roadmap proposal

2025-06-13 Thread Ralf Gommers via NumPy-Discussion
On Fri, Jun 13, 2025 at 11:13 AM Andrew Nelson via NumPy-Discussion < numpy-discussion@python.org> wrote: > > On Fri, 13 Jun 2025 at 16:43, Ralf Gommers via NumPy-Discussion < > numpy-discussion@python.org> wrote: > >> >> For 2FA and repository/PyPI access, we'll start making changes soon. Note >>

[Numpy-discussion] Allow matrix multiplication in structured arrays

2025-06-13 Thread abel . gutierrez
I'm using structured arrays to store atoms data produced by LAMMPS (I'm using a structured array that follows its format). I need to rotate the positions: ``` import numpy as np transform = np.array([[1, 0, 0], [0, 1, 0], [0, 0, 1]], dtype=np.float64) dtype = np.dtype([("x", np.float64), ("y", n

[Numpy-discussion] Re: NumPy security roadmap proposal

2025-06-13 Thread Andrew Nelson via NumPy-Discussion
On Fri, 13 Jun 2025 at 16:43, Ralf Gommers via NumPy-Discussion < numpy-discussion@python.org> wrote: > > For 2FA and repository/PyPI access, we'll start making changes soon. Note > that GitHub has recently made changes to its 2FA settings that ask for > action from many people: on https://github.

[Numpy-discussion] Re: Bumping CPU baseline to x86-64-v2

2025-06-13 Thread Jerome Kieffer
Hi Matti, Sorry for the delay ... In one of my project I am working on, we use based Avoton server (Intel C2350) for CI/CD which can be rented today (2025) for less than 5€/month at online.net (a french provider). Switching to more recent generation of processor (E3 1245v5) would imply at least 3

[Numpy-discussion] Re: NumPy security roadmap proposal

2025-06-13 Thread matti picus via NumPy-Discussion
On Fri, Jun 13, 2025 at 9:40 AM Ralf Gommers via NumPy-Discussion wrote: > > ... > For 2FA and repository/PyPI access, we'll start making changes soon. Note > that GitHub has recently made changes to its 2FA settings that ask for action > from many people: on https://github.com/orgs/numpy/people