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

2023-08-22 Thread Alan G. Isaac
`cumsum` provides a sequence of partial sums, exactly as expected. https://reference.wolfram.com/language/ref/Accumulate.html https://www.mathworks.com/help/matlab/ref/cumsum.html https://docs.julialang.org/en/v1/base/arrays/#Base.cumsum https://hackage.haskell.org/package/base-4.12.0.0/docs/Data-

Re: [Numpy-discussion] EHN: Discusions about 'add numpy.topk'

2021-05-30 Thread Alan G. Isaac
Mathematica and Julia both seem relevant here. Mma has TakeLargest (and Wolfram tends to think hard about names). https://reference.wolfram.com/language/ref/TakeLargest.html Julia's closest comparable is perhaps partialsortperm: https://docs.julialang.org/en/v1/base/sort/#Base.Sort.partialsortperm

Re: [Numpy-discussion] EHN: Discusions about 'add numpy.topk'

2021-05-30 Thread Alan G. Isaac
Is there any thought of allowing for other comparisons? In which case `last_k` might be preferable. Alan Isaac On 5/30/2021 2:38 AM, Ilhan Polat wrote: I think "max_k" is a good generalization of the regular "max". ___ NumPy-Discussion mailing list N

Re: [Numpy-discussion] two questions about `choose`

2021-04-18 Thread Alan G. Isaac
sequences are converted to arrays and in this case the conversion is not returning a 2 element object array but expanding and then concatenation. On Sat, Apr 17, 2021, 18:56 Alan G. Isaac mailto:alan.is...@gmail.com>> wrote: 2. Separately, mypy is unhappy with my 2nd argument to `

[Numpy-discussion] two questions about `choose`

2021-04-17 Thread Alan G. Isaac
1. Is there a technical reason for `choose` not accept a `dtype` argument? 2. Separately, mypy is unhappy with my 2nd argument to `choose`: Argument 2 to "choose" has incompatible type "Tuple[int, Sequence[float]]"; expected "Union[Union[int, float, complex, str, bytes, generic], Sequence[Union[i

Re: [Numpy-discussion] NEP 48: Spending NumPy Project funds

2021-02-22 Thread Alan G. Isaac
Yes. On 2/22/2021 7:08 AM, Pearu Peterson wrote: it is nobody's business, IMHO, and is likely very hard if not impossible to verify ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussio

Re: [Numpy-discussion] problem with numpy 1.19.4 install via pip on Win 10

2020-12-03 Thread Alan G. Isaac
"current expectation is that this [fix] will be able to be released near the end of January 2021" ! On 12/2/2020 7:13 PM, Ilhan Polat wrote: Yes this is known and we are waiting MS to roll out a solution for this. Here are more details https://developercommunity2.visualstudio.com/t/fmod-after-

[Numpy-discussion] problem with numpy 1.19.4 install via pip on Win 10

2020-12-02 Thread Alan G. Isaac
numpy 1.19.3 installs fine. numpy 1.19.4 appears to install but does not work. (Details below. The supplied tinyurl appears relevant.) Alan Isaac PS test> python38 -m pip install -U numpy Collecting numpy Using cached numpy-1.19.4-cp38-cp38-win_amd64.whl (13.0 MB) Installing collected packages:

Re: [Numpy-discussion] Comment published in Nature Astronomy about The ecological impact of computing with Python

2020-11-24 Thread Alan G. Isaac
On 11/24/2020 2:06 PM, Charles R Harris wrote: There are still ozone holes over the Antarctic, last time I looked they were explained as due to an influx of cold air. I believe industrial CFC usage, which has fallen since the Montreal Protocol, is still considered the primary culprit in ozone