[Numpy-discussion] Re: Meson - C extension - Finding numpy includes in virtual env

2023-11-27 Thread Ralf Gommers
On Sun, Nov 26, 2023 at 9:06 PM Nathan wrote: > I want to caution about using `pip install -e .` to get a development > install of numpy. This will work fine working on numpy itself, but won’t be > useful if you need to use the development version of numpy to build another > library. This doesn’t

[Numpy-discussion] Telling meson build which CBLAS/LAPACK (LAPACKE?) to use via pkgconfig module

2023-11-27 Thread Dr. Thomas Orgis
Hi, I'm involved in packaging NumPy for http://pkgsrc.org/. We install a set of possible BLAS/CBLAS/LAPACK/LAPACKE packages side-by-side in the same prefix. This includes multiple variants of OpenBLAS with regard to multithreading (and indexing). For this purpose, we point software to use the buil

[Numpy-discussion] Re: Telling meson build which CBLAS/LAPACK (LAPACKE?) to use via pkgconfig module

2023-11-27 Thread Ralf Gommers
On Mon, Nov 27, 2023 at 2:10 PM Dr. Thomas Orgis < thomas.or...@uni-hamburg.de> wrote: > Hi, > > I'm involved in packaging NumPy for http://pkgsrc.org/. We install a > set of possible BLAS/CBLAS/LAPACK/LAPACKE packages side-by-side in the > same prefix. This includes multiple variants of OpenBLAS

[Numpy-discussion] Re: savetxt() has fmt='%.18e' as default, but fmt='%.16e' is always sufficient

2023-11-27 Thread Jeppe Dakin
Thanks for the explanation, Robert Kern. It seems then that indeed, these days the optimal default would be `fmt='%.16e'`. The test on StackOverflow was just a quick demonstration. See also the description for `DBL_DECIMAL_DIG` here: https://en.cppreference.com/w/cpp/header/cfloat > But if your

[Numpy-discussion] Re: Telling meson build which CBLAS/LAPACK (LAPACKE?) to use via pkgconfig module

2023-11-27 Thread Dr. Thomas Orgis
Am Mon, 27 Nov 2023 14:58:45 +0100 schrieb Ralf Gommers : > The NumPy build does not know anything about this. It will just build, and > it will simply call the OpenBLAS functionality Great! > Yes, that is possible. You should be building with a build frontend (pip or > pypa/build) and then the

[Numpy-discussion] Re: Telling meson build which CBLAS/LAPACK (LAPACKE?) to use via pkgconfig module

2023-11-27 Thread Ralf Gommers
On Mon, Nov 27, 2023 at 6:51 PM Dr. Thomas Orgis < thomas.or...@uni-hamburg.de> wrote: > Am Mon, 27 Nov 2023 14:58:45 +0100 > schrieb Ralf Gommers : > > > The NumPy build does not know anything about this. It will just build, > and > > it will simply call the OpenBLAS functionality > > > Great! >

[Numpy-discussion] Re: savetxt() has fmt='%.18e' as default, but fmt='%.16e' is always sufficient

2023-11-27 Thread Sam Mason
On Mon, 27 Nov 2023 at 17:19, Jeppe Dakin wrote: > > But if your true concern is that 9% of disk space, > > you probably don't want to be using `savetxt()` in any case. > Well, I do in fact want to save as text, but I would rather not do so in an > unnecessarily wasteful fashion. `fmt='%s'` migh