[Numpy-discussion] Re: Fit 2D points to closed curve

2022-01-20 Thread Stefan van der Walt
Hi Roger, On Thu, Jan 20, 2022, at 07:13, roger.dav...@geo-spatial.co.uk wrote: > I use a CAD package called Rhino which lets users write python scripts > that run in the cad environment. I have a closed curve that is a design > surface border and I have a sparse data set of 2D surveyed points t

[Numpy-discussion] Re: Fit 2D points to closed curve

2022-01-20 Thread Charles R Harris
On Thu, Jan 20, 2022 at 11:28 AM Robert Kern wrote: > On Thu, Jan 20, 2022 at 1:15 PM wrote: > >> Hi, >> I use a CAD package called Rhino which lets users write python scripts >> that run in the cad environment. I have a closed curve that is a design >> surface border and I have a sparse data se

[Numpy-discussion] Re: Fit 2D points to closed curve

2022-01-20 Thread Robert Kern
On Thu, Jan 20, 2022 at 1:15 PM wrote: > Hi, > I use a CAD package called Rhino which lets users write python scripts > that run in the cad environment. I have a closed curve that is a design > surface border and I have a sparse data set of 2D surveyed points taken > around that border, so some e

[Numpy-discussion] Fit 2D points to closed curve

2022-01-20 Thread roger . davies
Hi, I use a CAD package called Rhino which lets users write python scripts that run in the cad environment. I have a closed curve that is a design surface border and I have a sparse data set of 2D surveyed points taken around that border, so some error is included in the 2D data set. I would lik

[Numpy-discussion] Re: Performance mystery

2022-01-20 Thread Francesc Alted
On Thu, Jan 20, 2022 at 4:10 PM Sebastian Berg wrote: > Thanks for figuring this out! It has been bugging me a lot before. So > it rather depends on how `malloc` works, and not the kernel. It is > surprising how "random" this can look, but I suppose some examples just > happen to sit almost e

[Numpy-discussion] Re: Performance mystery

2022-01-20 Thread Sebastian Berg
On Thu, 2022-01-20 at 14:41 +0100, Francesc Alted wrote: > On Wed, Jan 19, 2022 at 7:48 PM Francesc Alted > wrote: > > > On Wed, Jan 19, 2022 at 6:58 PM Stanley Seibert > > > > wrote: > > > > > Given that this seems to be Linux only, is this related to how > > > glibc does > > > large allocatio

[Numpy-discussion] Re: Performance mystery

2022-01-20 Thread Francesc Alted
On Wed, Jan 19, 2022 at 7:48 PM Francesc Alted wrote: > On Wed, Jan 19, 2022 at 6:58 PM Stanley Seibert > wrote: > >> Given that this seems to be Linux only, is this related to how glibc does >> large allocations (>128kB) using mmap()? >> >> https://stackoverflow.com/a/33131385 >> > > That's a g

[Numpy-discussion] Re: advice for using datetime64 in C binding

2022-01-20 Thread Benoit Gschwind
Hello, How can I create np.dtype("datetime64[ms]") in C to get the coresponding PyArray_Descr ? Thank you by advance On Wed, 2022-01-19 at 10:08 +0100, Benoit Gschwind wrote: > Hello Sebastian, > > Thanks for the precision > > Best regards > > On Tue, 2022-01-18 at 11:52 -0600, Sebastian Ber