[Numpy-discussion] Re: New feature: binary (arbitrary base) rounding

2022-11-10 Thread Sebastian Berg
On Thu, 2022-11-10 at 14:55 +0100, Oscar Gustafsson wrote: > Den tors 10 nov. 2022 kl 13:10 skrev Sebastian Berg < > sebast...@sipsolutions.net>: > > > On Thu, 2022-11-10 at 11:08 +0100, Oscar Gustafsson wrote: > > > > > > > > I'm not an

[Numpy-discussion] Re: plan for moving to Meson

2022-11-11 Thread Sebastian Berg
g users (about breakages/workarounds and how things work) I doubt you/we need it for 1. at this point or details for why meson, but if anyone disagrees then maybe we do ;). But 2. may very much be worthwhile. - Sebastian PS: I do like the idea of having short NEPs. My feeling is that the &q

[Numpy-discussion] Create `np.exceptions` for new exceptions in NumPy?

2022-11-11 Thread Sebastian Berg
ically zero. I do not want custom exceptions for too many things, but there are probably good reasons to have more than we do have right now, and even the ones we have seem enough for a namespace. Cheers, Sebastian The long story is that following one of those many threads, I decide

[Numpy-discussion] Re: New feature: binary (arbitrary base) rounding

2022-11-11 Thread Sebastian Berg
but doesn't yet quite work. I will note just dealing with the Python/NumPy C-API can be a fairly steep learning curve, so you need someone comfortable to dive in and budget a good amount of time for that part. And yes, this is pretty new, so there may be stumbling stones (which I am happy to disc

[Numpy-discussion] Re: plan for moving to Meson

2022-11-11 Thread Sebastian Berg
n > discussed Whoops, got distracted: I made it publicly visible. I assume that was the intention and invisible is just the default. - Sebastian > before: any thoughts to change it to e.g. tempita templating? > Translating .c.src templates to .c.in is straightforward if tedious, >

[Numpy-discussion] Re: New feature: binary (arbitrary base) rounding

2022-11-11 Thread Sebastian Berg
ould `tobytes()` be made to compactify? Yes, but then it suddenly needs extra logic for bit-sized and doesn't just expose memory. That is maybe fine, but also seems a bit awkward? I would love to have a better answer, but dancing around the byte- strided ABI seems tricky... Anyway, I am al

[Numpy-discussion] Re: New methods exposing UFunc dtype resolution/promotion and internals

2022-11-16 Thread Sebastian Berg
Hi again, On Tue, 2022-10-25 at 11:41 +0200, Sebastian Berg wrote: > Hi all, > > I would like to expose more of the ufunc internals in the following > PR: > >     https://github.com/numpy/numpy/pull/22422/ Just to note that this PR is now merged and scheduled for release (w

[Numpy-discussion] Re: status of long double support and what to do about it

2022-11-18 Thread Sebastian Berg
it pretty clear cut (it is still a large compatibility change that should be formally accepted as a brief NEP, similar to yanking financial). Without any "mitigation" it is a tough decision to make. Maybe there is no decision, because longdouble is a house of cards bound to collapse unless

[Numpy-discussion] Formally accept NEP 51: Changing the Representation of NumPy Scalars

2022-11-25 Thread Sebastian Berg
I plan on adding a brief note on about helping with doc updates to NEP when accepting it. Ross was planning to add a table of changed examples, although I don't think that is necessary for accepting. Cheers, Sebastian On Fri, 2022-10-28 at 10:54 +0200, Sebastian Berg wrote: > Hi all, &

[Numpy-discussion] Re: Adding bit_count ufunc

2022-11-25 Thread Sebastian Berg
Thanks for bringing this up again. The Python method exists and it seems like relatively basic functionality. Overall, I am slightly in favor of adding the ufunc. So if nobody voices an opinion that it doesn't seem a good fit for NumPy, I would be happy to move forward with it. - Seba

[Numpy-discussion] Re: Formally accept NEP 51: Changing the Representation of NumPy Scalars

2022-11-30 Thread Sebastian Berg
On Tue, 2022-11-29 at 14:51 -0700, Aaron Meurer wrote: > On Fri, Nov 25, 2022 at 9:36 AM Sebastian Berg > wrote: > > > > Hi all, > > > > I would like to formally propose accepting NEP 51.  Without any > > concern > > voiced, we will consider it accept

[Numpy-discussion] Behavior of round(array)

2022-11-30 Thread Sebastian Berg
s? It seems useful to enable `round()` and is a bit of a shame to get caught up on the detail, but I am not sure what the right choice is :). - Sebastian ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an em

[Numpy-discussion] Re: ANN: NumPy Fellowship Program & Sayed Adel as our first Developer in Residence

2022-12-02 Thread Sebastian Berg
ting to have you on the team! Exciting times ahead :). - Sebastian > > Thanks, Sayed. > > On 12/2/22 01:03, Brigitta Sipőcz wrote: > > Wonderful news, congratulations Sayed! > > > > Brigitta > > > > On Thu, 1 Dec 2022 at 13:18, Ralf Gommers > >

[Numpy-discussion] Re: Create `np.exceptions` for new exceptions in NumPy?

2022-12-02 Thread Sebastian Berg
On Fri, 2022-11-11 at 14:46 +0100, Sebastian Berg wrote: > Hi all, > > I want to add a new exception or two.  It is a longer story, that you > can find at the bottom :). > > Lets create a namespace for custom errors!  I don't want to propose > new > exceptions that j

[Numpy-discussion] Re: Addition of useful new functions from the array API specification

2022-12-12 Thread Sebastian Berg
atrix_norm` seems a bit tedious right now and `vector_norm` probably adds functionality since multiple axes are probably valid. - Sebastian PS: For the `ndarray.H` proposal, "its complicated" is maybe too fuzzy: The complexity is about not being able to return a view for complex numbers. Tha

[Numpy-discussion] Re: Addition of useful new functions from the array API specification

2022-12-12 Thread Sebastian Berg
On Mon, 2022-12-12 at 18:20 -0500, Warren Weckesser wrote: > On 12/12/22, Aaron Meurer wrote: > > On Mon, Dec 12, 2022 at 8:46 AM Sebastian Berg > > wrote: > > > > > > On Wed, 2022-12-07 at 14:21 -0700, Aaron Meurer wrote: > > > > Hi all. >

[Numpy-discussion] array.any() and array.all() always returning boolean values?

2022-12-14 Thread Sebastian Berg
soon (with plenty of time to test before the release) if nobody voices concern. Cheers, Sebastian ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://ma

[Numpy-discussion] Re: Vectorize matrix-vector product with multiple matrices of the same size (like np.linalg.solve does ...)

2022-12-22 Thread Sebastian Berg
nk anyone ever pushed for it very strongly. There is maybe a bit more of a push for `vecdot` (both vectors) right now, but you want the mixed case... - Sebastian > > Best, > > Thibaut > > ___ > NumPy-Discussion mailing li

[Numpy-discussion] Re: ndarray.sort x86 dispatch

2023-01-05 Thread Sebastian Berg
high end Intel CPUs (IIRC), presumably, you simply do not have the hardware. E.g. on M1, `show_runtime()` won't even list AVX512 when compiled, on x86 they would probably show up as "not found" because they exist, but your hardware doesn't support AVX512. - Sebastian >

[Numpy-discussion] Road to NumPy 2.0

2023-01-11 Thread Sebastian Berg
who helped draft and revise this! Cheers, Sebastian Road to NumPy 2.0> Note: This is a living document. We are prepared to modify it through > continued dialogue with the community. Its acceptance indicates > consensus on the process and timelines. AbstractNumPy 2.0 release is an op

[Numpy-discussion] Re: Standard for dtype string representation?

2023-02-08 Thread Sebastian Berg
On Wed, 2023-02-08 at 12:48 +0100, Francesc Alted wrote: > Hi, > > > Is there a way (or an ongoing effort) to express the variety of data > types > in NumPy that beats the above (which seems somewhat inconsistent to > me)? How about using the Python buffer interface format string (maybe with

[Numpy-discussion] Re: Standard for dtype string representation?

2023-02-08 Thread Sebastian Berg
On Wed, 2023-02-08 at 14:31 +0100, Francesc Alted wrote: > On Wed, Feb 8, 2023 at 1:42 PM Sebastian Berg < > sebast...@sipsolutions.net> > wrote: > > > On Wed, 2023-02-08 at 12:48 +0100, Francesc Alted wrote: > > > Hi, > > > > > > > >

[Numpy-discussion] Re: Standard for dtype string representation?

2023-02-08 Thread Sebastian Berg
On Wed, 2023-02-08 at 17:08 +0100, Francesc Alted wrote: > On Wed, Feb 8, 2023 at 3:19 PM Sebastian Berg < > sebast...@sipsolutions.net> > wrote: > > > On Wed, 2023-02-08 at 14:31 +0100, Francesc Alted wrote: > > > On Wed, Feb 8, 2023 at 1:42 PM Sebastian Berg &

[Numpy-discussion] Introducing `np.types`

2023-02-10 Thread Sebastian Berg
y public is not great... (I will note that the DType classes do get printed sometimes in error messages.) Cheers, Sebastian ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@p

[Numpy-discussion] Re: Introducing `np.types`

2023-02-13 Thread Sebastian Berg
types because Python has `types` as a catch-all for builtin types (mainly function, generator, ...) that are not normally used directly and it seemed relatively clear and concise. (In Python I don't think it has anything to do with typing directly.) - Sebastian > > C

[Numpy-discussion] Re: Introducing `np.types`

2023-02-15 Thread Sebastian Berg
for where we would would put new submodules, i.e. in `np.lib`. or `np.` directly.) For these particular ones, I still slightly prefer `np.types` and `np.exceptions`, but happy either way. One disadvantage of the main namespace is that it is so large, it is hard to find submodules :). - Sebastian

[Numpy-discussion] Re: Introducing `np.types`

2023-02-15 Thread Sebastian Berg
On Fri, 2023-02-10 at 10:34 -0700, Nathan wrote: > On Fri, Feb 10, 2023 at 3:31 AM Sebastian Berg < > sebast...@sipsolutions.net> > wrote: > > > Hi all, > > > > I was wondering if we should introduce a new `np.types` namespace.  > > The > > mai

[Numpy-discussion] Re: deprecation of product, cumproduct, alltrue, sometrue functions

2023-03-06 Thread Sebastian Berg
ing to `VisibleDeprecationWarning` before full removal. - Sebastian > > Cheers, > Ralf > ___ > NumPy-Discussion mailing list -- numpy-discussion@python.org > To unsubscribe send an email to numpy-discussion-le...@python.org > https://m

[Numpy-discussion] Re: deprecation of product, cumproduct, alltrue, sometrue functions

2023-03-07 Thread Sebastian Berg
On Tue, 2023-03-07 at 12:17 +, Ralf Gommers wrote: > On Mon, Mar 6, 2023 at 8:12 AM Sebastian Berg < > sebast...@sipsolutions.net> > wrote: > > > On Thu, 2023-03-02 at 15:20 +, Ralf Gommers wrote: > > > Hi all, > > > > > > In https:/

[Numpy-discussion] Dispatching on `where=` in `__array_ufunc__`?

2023-03-13 Thread Sebastian Berg
re=` might run into issues (for some types). That is slightly tedious, but I doubt it causes much issues in practice (where isn't used much, and for most types it doesn't matter much either way, except for rejecting weirder inputs). Cheers, Sebastian _

[Numpy-discussion] Re: `dtype` parameter in `clip` method

2023-03-17 Thread Sebastian Berg
u that using `out=`: x = np.array([1, 5, 259], dtype=np.uint16) res = np.empty_like(x, np.uint8) np.clip(x, 3, 200, out=res, casting="unsafe") will perform the calculation in whatever the inputs are and _then_ cast. But, in NumPy, unless you have largish arrays, performin

[Numpy-discussion] Re: Dispatching on `where=` in `__array_ufunc__`?

2023-03-22 Thread Sebastian Berg
On Mon, 2023-03-13 at 11:22 +0100, Sebastian Berg wrote: > Hi all, > > Without concerns voiced, I will probbaly merge the PR: > >     https://github.com/numpy/numpy/pull/23240 I put this PR in, if it turns out there are issues or general dislike, please let us know and we

[Numpy-discussion] Re: broadcasting question

2023-03-23 Thread Sebastian Berg
. However, I agree. Unless the use-case exceedingly clear about requiring "outer" behavior. "outer" behavior is uncommon for functions in the NumPy world and broadcasting is what users will generally expect (and that includes future self). - Sebastian > > __

[Numpy-discussion] Giving deprecation of e.g. `float(np.array([1]))` a shot (not 0-d)

2023-04-20 Thread Sebastian Berg
ourse. Cheers, Sebastian     ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...

[Numpy-discussion] Re: Giving deprecation of e.g. `float(np.array([1]))` a shot (not 0-d)

2023-04-20 Thread Sebastian Berg
On Thu, 2023-04-20 at 13:59 -0400, Warren Weckesser wrote: > On 4/20/23, Sebastian Berg wrote: > > Hi all, > > > > > > In [64]: np.float64(np.array([0.0])) > :1: DeprecationWarning: Conversion of > an array with ndim > 0 to a scalar is deprecated, an

[Numpy-discussion] Re: Giving deprecation of e.g. `float(np.array([1]))` a shot (not 0-d)

2023-04-21 Thread Sebastian Berg
On Thu, 2023-04-20 at 20:17 +0200, Sebastian Berg wrote: > On Thu, 2023-04-20 at 13:59 -0400, Warren Weckesser wrote: > > On 4/20/23, Sebastian Berg wrote: > > > Hi all, > > > > > > > > > > > > > In [64]: np.float64(np.array([0.0])) &

[Numpy-discussion] Re: Managing integer overflow

2023-05-02 Thread Sebastian Berg
mPy is probably not in a position to help you. You can implement the functions that you described yourself (i.e. with overflow return indication). And they will be fully compatible with NumPy (see for example https://github.com/WarrenWeckesser/ufunclab or maybe via jitters like numba). - Sebastian

[Numpy-discussion] uint64 and int64 comparisons are now exact

2023-05-07 Thread Sebastian Berg
here is no opportunity to see the intermediate float. (There should be a larger opportunity for optimizing the comparison.) Cheers, Sebastian ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-dis

[Numpy-discussion] Re: Giving deprecation of e.g. `float(np.array([1]))` a shot (not 0-d)

2023-05-16 Thread Sebastian Berg
On Tue, 2023-05-16 at 11:46 -0400, Warren Weckesser wrote: > On 4/21/23, Sebastian Berg wrote: > > On Thu, 2023-04-20 at 20:17 +0200, Sebastian Berg wrote: > > > On Thu, 2023-04-20 at 13:59 -0400, Warren Weckesser wrote: > > > > On 4/20/23, Sebastian

[Numpy-discussion] Welcome Nathan Goldbaum as a Maintainer

2023-05-29 Thread Sebastian Berg
core as needed. Looking forward to working more with you! Cheers, Sebastian ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy

[Numpy-discussion] Re: Categorical dtypes

2023-05-30 Thread Sebastian Berg
a minimal `IntEnum` DType factory is likely quite reasonably scoped. (As a prototype implementation, but I expect adapting to a final version should be smooth.) - Sebastian [1] Maybe as a DType factory in C to create arbitrary `IntEnum` likes, maybe as parametric DType. I suspect the first

[Numpy-discussion] Precision changes to sin/cos in the next release?

2023-05-30 Thread Sebastian Berg
and hope for a better one? I doubt we can decide on a very clear cut yes/no, but I am very interested what everyone thinks whether this precision trade-off is too surprising to users? Cheers, Sebastian ___ NumPy-Discussion mailing list -- numpy-di

[Numpy-discussion] Re: Precision changes to sin/cos in the next release?

2023-05-30 Thread Sebastian Berg
On Tue, 2023-05-30 at 23:31 -0700, Stefan van der Walt wrote: > Hi Sebastian, > > Could you clarify whether there are now varying code paths, depending > on the CPU features available? There is less variation then before because the new code path will be taken on practically al

[Numpy-discussion] Re: NEP 51: Changing the Representation of NumPy Scalars

2023-06-09 Thread Sebastian Berg
On Fri, 2022-10-28 at 10:54 +0200, Sebastian Berg wrote: > Hi all, > > As mentioned earlier, I would like to propose changing the > representation of scalars in NumPy.  Discussion and ideas on changes > are much appreciated! > > The main change is to show scalars as: &

[Numpy-discussion] Re: Create a method to index N-dim tensors using 1D index #23992

2023-06-20 Thread Sebastian Berg
On Tue, 2023-06-20 at 12:07 -0400, Robert Kern wrote: > On Tue, Jun 20, 2023 at 11:38 AM Daniel Salles Civitarese < > sall...@br.ibm.com> wrote: > > > ### Proposed new feature or change: > > > > I work with geospatial data that requires tensors with many > > dimensions. > > One challenge I used t

[Numpy-discussion] Re: Is there a desire to implement more functions as ufuncs? e.g. round, astype, real

2023-07-14 Thread Sebastian Berg
s Ralf said, you may also have to keep the method indirection (e.g. because otherwise you break people using `np.around()` on pandas...). - Sebastian > > Aaron Meurer > > On Tue, Jul 11, 2023 at 7:38 AM James Webber > wrote: > > > > Hello there! First time posti

[Numpy-discussion] Re: Add to NumPy a function to compute cumulative sums from 0.

2023-08-11 Thread Sebastian Berg
ng like a new kwarg like `include_initial=True`. This was also discussed here more recently: https://github.com/data-apis/array-api/issues/597 I think everyone always agreed with such an addition being good. It terribly be super hard, although the code needs some restructuring to do it, so not sure it is e

[Numpy-discussion] Re: Expected behavior of np.array(..., copy=True)

2024-10-08 Thread Sebastian Berg
but ignored `copy=` in their `__array__` methods: https://github.com/pandas-dev/pandas/issues/57739 It probably makes sense bumping there. NumPy could assume it isn't correctly implemented, but that would be weird also... (Objects that did nothing would get correct behavior but with a Deprec

[Numpy-discussion] Endorsing SPECs 1, 6, 7, and 8

2024-10-07 Thread Sebastian Berg
the future (but actually doesn't apply directly). Cheers, Sebastian [1] The SPECs are not necessarily fixed. If you think they are missing a note/solution, we can modify them. [2] With it's flat namespace, I am not sure e.g. lazy-loading is of much use to NumPy (just like we have longer

[Numpy-discussion] Re: Endorsing SPECs 1, 6, 7, and 8

2024-10-07 Thread Sebastian Berg
r SPEC 7, I think we certainly should endorse it, exactly because it is a recommendation for downstream. Even though we have no API where it applies. I don't have not formed a strong opinion about the other two yet. For those, I would agree that it may be a bit odd to "endorse" but no

[Numpy-discussion] Re: What to do with np.matrix

2024-10-14 Thread Sebastian Berg
for that it would be nice if we can see how easy that is, because while tedious, it may not be all that hard. - Sebastian > > All the best, > > Marten > ___ > NumPy-Discussion mailing list -- numpy-discussion@python.org > To unsu

[Numpy-discussion] Re: C API could be more consistent with returning NPY_SUCCEED/NPY_FAIL

2024-10-31 Thread Sebastian Berg
s which is also confusing. I.e. sure, it's bad, but what is the actionable item? - Sebastian On Thu, 2024-10-31 at 11:53 +, sverre.hassing--- via NumPy- Discussion wrote: > While using the C API to work with Numpy arrays, I came across some > inconsistencies regarding the return of a

[Numpy-discussion] Re: Is a Python function a gufunc if it broadcasts its arguments appropriately?

2025-01-06 Thread Sebastian Berg
ures > of a ufunc involve more than having particular methods—they need to > check > their arguments and call particular methods: `__array_ufunc__`. > That's not > something one can check with `hasattr`. > > Sebastian, are you saying that the only definition of "ufunc

[Numpy-discussion] Re: [EXTERNAL] Copy on __setitem__

2024-12-26 Thread Sebastian Berg
That seems like a bug but not sure why it would happen. It needs to call `__array__`, but indeed of course not with `copy=True`. Would you open an issue on github? - Sebastian On Thu, 2024-12-26 at 03:46 +, Israel, Daniel M via NumPy- Discussion wrote: > Sure.  I didn’t origina

[Numpy-discussion] Re: New matvec and vecmat functions

2024-11-22 Thread Sebastian Berg
existing vecdot). I am more seriously considering whether we should only add them to the `numpy.linalg` namespace, while `matmul` and `vecdot` are in both `numpy` and `numpy.linalg`. (A bit tedious/surprising, but if not used much OK with the "See Also" section) - Sebastian On Tue,

[Numpy-discussion] Re: Is a Python function a gufunc if it broadcasts its arguments appropriately?

2025-01-02 Thread Sebastian Berg
such currently. - Sebastian On Tue, 2024-12-31 at 10:20 -0600, Jim Pivarski via NumPy-Discussion wrote: > I think you're right: the function `stack`, as you've defined it, is > a > gufunc. > > Here's an implementation using np.vectorize > < > http

[Numpy-discussion] Re: New GitHub issue UI

2025-01-15 Thread Sebastian Berg
27;bug', > 'feature', 'task' > It can be done, but it is part of the org settings, so presumably limited to very few of us: https://github.com/organizations/numpy/settings/issue-types So one of could just add all the ones we currently have some time. - Sebas

[Numpy-discussion] Re: array.T.max() vs array.max(axis=0) performance difference

2025-03-22 Thread Sebastian Berg
of the inner-loop since a few year now -- but only casts actually do so). In the end, `maximum(arr[:, 0], arr[:, 1])` will always the fastest way for this specific thing, because it explicitly picks the clearly best approach. It would be good to close that gap at least a bit, though. - Sebastian

[Numpy-discussion] Moving the meetings schedule to one hour earlier

2025-03-26 Thread Sebastian Berg
would slightly prefer to move it, but am OK either way.) - Sebastian ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.pyt

[Numpy-discussion] Enforce array (no-scalar) return with out=... in ufuncs

2025-03-26 Thread Sebastian Berg
o-one has concerns, I think we'll merge this soon, but I am always happy to hear opinions! Cheers, Sebastian PS: This PR is about ufuncs, I suppose a few odd functions might "inherit" it. We may want to allow it for other functions that have an `out=`, but it

[Numpy-discussion] Re: Making `T` property Array API compatible

2025-04-14 Thread Sebastian Berg
commendation at most and if it was more it would probably be a mistake there. - Sebastian > > For non-2-dimensional arrays, the replacement for `arr.T` can be > either: Array API compatible, namely `np.permute_dims(arr, > range(arr.ndim)[::-1])`, or shorter, NumPy specific: >

[Numpy-discussion] Re: Add a bit_width function

2025-03-06 Thread Sebastian Berg
could link to it in the "See also" section for example.) - Sebastian [1] https://github.com/WarrenWeckesser/ufunclab On Thu, 2025-03-06 at 18:08 +, Carlos Martin wrote: > Feature request: Add a `bit_width` function to NumPy's [bit-wise > operations]( > https://n

[Numpy-discussion] Re: Usage of Datetime DType in NumPy 2.0 C-API

2025-02-24 Thread Sebastian Berg
which is the mechanism/slot for datetime metdata (as you can se the field is called `c_metadata`). You have to use that and compile with NumPy 2.x. If you don't want to compile with NumPy 2.x, you'll have to copy paste the `npy_2_compat.h` file and include it alway

[Numpy-discussion] Re: array.T.max() vs array.max(axis=0) performance difference

2025-04-04 Thread Sebastian Berg
On Sun, 2025-03-23 at 10:17 +0800, Fang Zhang wrote: > Sebastian, > > I think the core issue you pointed out is indeed correct, but your > detailed > explanation is backwards, since `maximum(arr[:, 0], arr[:, 1])` > implements Ah, right, I explained things thinking of axis=

[Numpy-discussion] Re: ENH: Add reverse argument to ufunc.accumulate, cumsum, nancumsum, cumprod, nancumprod

2025-06-09 Thread Sebastian Berg
a very uncommon need. (For ufuncs, if you improved stride support `out=` might allow making the flip no-cost also.) - Sebastian > > - ufunc.accumulate: > https://numpy.org/doc/stable/reference/generated/numpy.ufunc.accumulate.html > - cumsum: > https://numpy.org/doc/stabl

[Numpy-discussion] Re: ENH: More user-friendly way to pad a specific axis

2025-06-25 Thread Sebastian Berg
that is a mildly in favor from me when it comes to accepting such a change, but I am not sure if it will be quite enough to overcome friction of adding new API. - Sebastian > > This should require only minor modification to the implementation of > `numpy.pad`. If others like this idea, I

<    2   3   4   5   6   7