`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-
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
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
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 `
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
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
"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 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:
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