[Numpy-discussion] Re: numpy 2.0.x has been branched.

2024-03-25 Thread Charles R Harris
On Mon, Mar 25, 2024 at 5:54 PM Oscar Benjamin wrote: > On Sat, 9 Mar 2024 at 10:16, Ralf Gommers wrote: > > > > On Sat, Mar 9, 2024 at 2:03 AM Oscar Benjamin < > oscar.j.benja...@gmail.com> wrote: > >> > >> On Sat, 9 Mar 2024 at 00:44, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >>

[Numpy-discussion] Re: numpy 2.0.x has been branched.

2024-03-25 Thread Oscar Benjamin
On Sat, 9 Mar 2024 at 10:16, Ralf Gommers wrote: > > On Sat, Mar 9, 2024 at 2:03 AM Oscar Benjamin > wrote: >> >> On Sat, 9 Mar 2024 at 00:44, Charles R Harris >> wrote: >> > >> > About a month from now. >> >> What will happen about a month from now? It might seem obvious to you >> but I can i

[Numpy-discussion] Re: Polyfit error in displacement

2024-03-25 Thread Andrea Gavana
On Mon, 25 Mar 2024 at 20:09, Charles R Harris wrote: > > > On Mon, Mar 25, 2024 at 11:28 AM Luca Bertolotti < > luca72.bertolo...@gmail.com> wrote: > >> Hello >> in a vb program they use 3rd degree approx and get this value including >> displacement:(SC) >> [image: image.png] >> >> Ii think that

[Numpy-discussion] Re: Polyfit error in displacement

2024-03-25 Thread Charles R Harris
On Mon, Mar 25, 2024 at 11:28 AM Luca Bertolotti < luca72.bertolo...@gmail.com> wrote: > Hello > in a vb program they use 3rd degree approx and get this value including > displacement:(SC) > [image: image.png] > > Ii think that i'm doing the same with numpy but I get different value does > anyone

[Numpy-discussion] Re: Polyfit error in displacement

2024-03-25 Thread Dom Grigonis
Hello Luca, I am a bit confused by the output of VB script. Equation is: y = f(x), where x is in the order of 0-2K y is in the order of 5-10K The output of fitted polynomial is in y-space, thus I would expect fitted values to be similar to those of Y. Now, sc values are very small and alternat

[Numpy-discussion] Polyfit error in displacement

2024-03-25 Thread Luca Bertolotti
Hello in a vb program they use 3rd degree approx and get this value including displacement:(SC) [image: image.png] Ii think that i'm doing the same with numpy but I get different value does anyone can help me please radious = [1821, 1284, 957, 603,450, 245] y = [6722, 6940, 7227, 7864,8472, 10458

[Numpy-discussion] Re: Which generation of s390x CPU and how to change it?

2024-03-25 Thread Ralf Gommers
On Mon, Mar 25, 2024 at 2:24 PM Matěj Cepl wrote: > Hello, > > As a maintainer of Python packages for openSUSE/SUSE, > I would like to ask for help with our bug > https://bugzilla.suse.com/1221902. It seems to us that the latest > version of NumPy suddenly requires z15 CPU generation, although >

[Numpy-discussion] Re: Automatic Clipping of array to upper / lower bounds of dtype

2024-03-25 Thread Sebastian Berg
On Mon, 2024-03-25 at 13:49 +, percynichols...@gmail.com wrote: > Many thanks! > > Just one more inquiry along those lines, if I may. The code asserts > that clip should outpace np.maximum(mp.minumum(arr, max), min). > Despite this: > *time a = np.arange(100)it.clip(4, 20)    # 8.48 µs > %time

[Numpy-discussion] Re: Automatic Clipping of array to upper / lower bounds of dtype

2024-03-25 Thread percynicholson9
Many thanks! Just one more inquiry along those lines, if I may. The code asserts that clip should outpace np.maximum(mp.minumum(arr, max), min). Despite this: *time a = np.arange(100)it.clip(4, 20)# 8.48 µs %timeit np.maximum(np.minimum(a, 20), 4)2.09 nanoseconds Will this be the norm? __

[Numpy-discussion] Which generation of s390x CPU and how to change it?

2024-03-25 Thread Matěj Cepl
Hello, As a maintainer of Python packages for openSUSE/SUSE, I would like to ask for help with our bug https://bugzilla.suse.com/1221902. It seems to us that the latest version of NumPy suddenly requires z15 CPU generation, although it used to be OK with z13+ before, and unfortunately that is the