[Numpy-discussion] Re: dropping support for Gitpod and our Docker image builds

2023-03-23 Thread Ralf Gommers
On Mon, Mar 20, 2023 at 9:09 PM Ralf Gommers wrote: > > So my proposal is to drop all the Docker Hub and Gitpod related code and > docs. I have already discussed this with Tania Allard, who did most of the > heavy lifting on the initial creation of the Gitpod machinery (for SciPy, > which was

[Numpy-discussion] Re: Fortran-style support in ctypeslib.as_array()?

2023-03-23 Thread Eric Wieser
Hi Monte, This strikes me as a slightly strange request; ctypes is intended to interface with the C memory model, which has no native representation of fortran arrays. The underlying workings of `as_array` is to cast your ctype pointer into a ctypes array object, and then pass that into numpy.

[Numpy-discussion] Fortran-style support in ctypeslib.as_array()?

2023-03-23 Thread monte . b . hoover
Would it be okay to add an argument to ctypeslib.as_array() that allowed specifying that a pointer references column-major memory layout? Currently if we use ndarray.ctypes.data_as() to get a pointer to a Fortran-ordered array and then we use ctypeslib.as_array() to read that same array back

[Numpy-discussion] Re: broadcasting question

2023-03-23 Thread Neal Becker
On Thu, Mar 23, 2023 at 5:21 AM Sebastian Berg wrote: > On Wed, 2023-03-22 at 12:00 -0400, Robert Kern wrote: > > On Wed, Mar 22, 2023 at 9:34 AM Neal Becker > > wrote: > > > > > I have a function F > > > def F(a, b): > > > c = a * b > > > > > > Initially, a is a scalar, b[240,3000]. No

[Numpy-discussion] Re: Consider linking to Accelerate in Apple Silicon ARM64 wheels

2023-03-23 Thread Ralf Gommers
On Thu, Mar 23, 2023 at 10:43 AM Clemens Brunner wrote: > Thanks Ralf, this sounds great! Just making sure I understand, this means > that for macOS 13, we have to enable Accelerate by building NumPy from > source. Indeed. Either that, or use a packaging system that's more capable in this

[Numpy-discussion] Re: Consider linking to Accelerate in Apple Silicon ARM64 wheels

2023-03-23 Thread Clemens Brunner
Thanks Ralf, this sounds great! Just making sure I understand, this means that for macOS 13, we have to enable Accelerate by building NumPy from source. Once macOS 13.3 is out, building SciPy from source will also link to Accelerate. Finally, Accelerate support will be enabled by default in

[Numpy-discussion] Re: Consider linking to Accelerate in Apple Silicon ARM64 wheels

2023-03-23 Thread Ralf Gommers
On Thu, Mar 23, 2023 at 1:55 AM Clemens Brunner wrote: > Hello! > > I recently got a new MacBook Pro with an M2 Pro CPU (ARM64). When I ran > some numerical computations (ICA to be precise), I was surprised how slow > it was - way slower than e.g. my almost 10 year old Intel Mac. It turns out >

[Numpy-discussion] Re: broadcasting question

2023-03-23 Thread Sebastian Berg
On Wed, 2023-03-22 at 12:00 -0400, Robert Kern wrote: > On Wed, Mar 22, 2023 at 9:34 AM Neal Becker > wrote: > > > I have a function F > > def F(a, b): > >     c = a * b > > > > Initially, a is a scalar, b[240,3000].  No problem. > > Later I want to use F, where a[240] is a vector.  I want to