Re: [Numpy-discussion] Right way to do fancy indexing from argsort() result?

2018-03-26 Thread Robert Kern
s] > > gives me a (N, k, k) array, while > > new_dists = np.take(indexs, axis=1) > > gives me a (N, N, k) array. > > What am I missing? Broadcasting! new_dists = distances[np.arange(N)[:, np.newaxis], indexs] -- Robert Kern ___

Re: [Numpy-discussion] round(numpy.float64(0.0)) is a numpy.float64

2018-03-26 Thread Robert Kern
is used for to interoperate with a Python builtin function, that's probably the more important consistency to worry about. As for the backwards compatibility concern, I don't think it would matter much. Everyone who has written code that expects round(np.float64(...)) to return a np.fl

Re: [Numpy-discussion] round(numpy.float64(0.0)) is a numpy.float64

2018-03-26 Thread Robert Kern
On Mon, Mar 26, 2018 at 10:03 PM, wrote: > > On Mon, Mar 26, 2018 at 10:29 PM, Robert Kern wrote: > > On Mon, Mar 26, 2018 at 6:28 PM, Nathaniel Smith wrote: > >> > >> On Mon, Mar 26, 2018 at 6:24 PM, Nathaniel Smith wrote: > >> > Even knowing that,

[Numpy-discussion] ANN: NumExpr 2.6.5

2018-05-01 Thread Robert McLeod
infinite recursion. -- Robert McLeod, Ph.D. robbmcl...@gmail.com robbmcl...@protonmail.com robert.mcl...@hitachi-hhtc.ca www.entropyreduction.al ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] NEP: Random Number Generator Policy

2018-06-02 Thread Robert Kern
two lists of methods that we still would make strict compatibility guarantees for. --- == Random Number Generator Policy == :Author: Robert Kern :Status: Draft :Type: Standards Track :Created: 2018-05-24 Abstract For the past

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-03 Thread Robert Kern
ts of this form” > I do! Search for "unit test" or "StableRandom". :-) -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-03 Thread Robert Kern
list was just off the top of my head for methods that I think were actually used in test suites, so I'd be happy to be shown live tests that use other methods. I'd like to be a *little* conservative about what methods we stick in here, but we don't have to be *too* conservative, since

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-03 Thread Robert Kern
ed once we did make these (*cough*extravagant*cough*) guarantees, though, as people started to rely on it, and I hope that my StableRandom proposal addresses it to your satisfaction. I could add some more details about that history if you think it would be useful. -- Robert Kern _

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-03 Thread Robert Kern
On Sun, Jun 3, 2018 at 5:23 PM Stephan Hoyer wrote: > On Sat, Jun 2, 2018 at 12:06 PM Robert Kern wrote: > >> We propose first freezing ``RandomState`` as it is and developing a new >> RNG >> subsystem alongside it. This allows anyone who has been relying on our >&g

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-03 Thread Robert Kern
On Sun, Jun 3, 2018 at 6:01 PM wrote: > > > On Sun, Jun 3, 2018 at 8:36 PM, Robert Kern wrote: > >> On Sun, Jun 3, 2018 at 4:35 PM Eric Wieser >> wrote: >> >>> You make a bunch of good points refuting reproducible research as an >>> arg

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-03 Thread Robert Kern
On Sun, Jun 3, 2018 at 5:46 PM wrote: > > > On Sun, Jun 3, 2018 at 8:21 PM, Robert Kern wrote: > >> >> The list of ``StableRandom`` methods should be chosen to support unit >>> tests: >>> >>> * ``.randint()`` >>> * ``.unif

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-03 Thread Robert Kern
On Sun, Jun 3, 2018 at 6:26 PM wrote: > > > On Sun, Jun 3, 2018 at 9:04 PM, Robert Kern wrote: > >> On Sun, Jun 3, 2018 at 6:01 PM wrote: >> >>> >>> >>> On Sun, Jun 3, 2018 at 8:36 PM, Robert Kern >>> wrote: >>> >>>

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-03 Thread Robert Kern
On Sun, Jun 3, 2018 at 9:24 PM Charles R Harris wrote: > > On Sat, Jun 2, 2018 at 1:04 PM, Robert Kern wrote: >> >> This policy was first instated in Nov 2008 (in essence; the full set of >> weasel >> > > Instituted? > I meant "instated"; c.f. f

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-03 Thread Robert Kern
On Sun, Jun 3, 2018 at 10:29 PM Charles R Harris wrote: > > > On Sun, Jun 3, 2018 at 11:03 PM, Robert Kern > wrote: > >> On Sun, Jun 3, 2018 at 9:24 PM Charles R Harris < >> charlesr.har...@gmail.com> wrote: >> >>> >>> On Sat, Jun 2

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-03 Thread Robert Kern
on the rest first, as the higher level decisions will tell us more about what we want to do for numpy.random.seed(). -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-03 Thread Robert Kern
se would be for people with legacy packages that cannot upgrade (other than changing some imports) and for unit tests that require precise streams for a full breadth of distributions. We would still leave it in numpy.random for a deprecation period, but maybe we would be noisy about it soone

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-04 Thread Robert Kern
7;s likely "good enough" if the integer distributions now return uint64 arrays instead of uint32 arrays on Windows. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-04 Thread Robert Kern
eir reliance on such stability and SHOULD limit their usage to distribution methods that have fewer cross-platform stability risks. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-10 Thread Robert Kern
al is the best way forward. The mere usage of np.random.seed() doesn't imply that these packages actually require stream-compatibility. Some might, for sure, like where they are used in the unit tests, but that's not what you counted. At best, these numbers ju

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-10 Thread Robert Kern
On Sun, Jun 10, 2018 at 5:27 PM Ralf Gommers wrote: > > On Mon, Jun 4, 2018 at 3:18 PM, Robert Kern wrote: >> >> On Sun, Jun 3, 2018 at 8:22 PM Ralf Gommers wrote: >>> >>> It may be worth having a look at test suites for scipy, statsmodels, scikit-learn, etc.

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-10 Thread Robert Kern
On Sun, Jun 10, 2018 at 7:46 PM wrote: > > On Sun, Jun 10, 2018 at 9:08 PM, Robert Kern wrote: >> >> On Sun, Jun 10, 2018 at 5:27 PM Ralf Gommers wrote: >> > >> > On Mon, Jun 4, 2018 at 3:18 PM, Robert Kern wrote: >> >> >> >> On Sun,

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-10 Thread Robert Kern
On Sun, Jun 10, 2018 at 8:04 PM Ralf Gommers wrote: > > On Sun, Jun 10, 2018 at 6:08 PM, Robert Kern wrote: >> >> On Sun, Jun 10, 2018 at 5:27 PM Ralf Gommers wrote: >> > >> > On Mon, Jun 4, 2018 at 3:18 PM, Robert Kern wrote: >> >> >>

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-10 Thread Robert Kern
On Sun, Jun 10, 2018 at 8:11 PM Ralf Gommers wrote: > > On Sun, Jun 10, 2018 at 5:57 PM, Robert Kern wrote: >> >> On Sun, Jun 10, 2018 at 5:47 PM Ralf Gommers wrote: >> > >> > On Sun, Jun 3, 2018 at 9:23 PM, Warren Weckesser < warren.weckes...@gmail.com

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-11 Thread Robert Kern
deprecate the name RandomState in that drafting, but it's not really necessary, and you've convinced me that we shouldn't do it. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-11 Thread Robert Kern
On Sun, Jun 10, 2018 at 11:54 PM Ralf Gommers wrote: > > On Sun, Jun 10, 2018 at 11:15 PM, Robert Kern wrote: >> Puzzlingly, the root sin of unconditionally and unavoidably reseeding for some of these functions is still there even though I showed how and why to avoid it. This is on

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-16 Thread Robert Kern
umpy.random per se rather than a third party package. https://bashtage.github.io/randomgen/devel/legacy.html --- == Random Number Generator Policy == :Author: Robert Kern :Status: Draft :Type: Standards Track :Created: 2018-05-24 Abstra

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-16 Thread Robert Kern
On Sat, Jun 16, 2018 at 11:02 AM Ralf Gommers wrote: > > > On Sat, Jun 16, 2018 at 12:38 AM, Robert Kern > wrote: > >> I have incorporated the feedback from this thread, and have significantly >> altered the proposal. I think this version will be more palatable to

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-16 Thread Robert Kern
hese in following releases. >> > > This already read a little strangely to me -- it sounded like an > indefinite pronouncement. It would be good to clarify :). > Fair enough. How does this language strike you? https://github.com/numpy/numpy/pull/11356/commits/15af58f7b1

[Numpy-discussion] ANN: SfePy 2018.2

2018-06-19 Thread Robert Cimrman
elastodynamics solvers - terms for dispersion in fluids - caching of reference coordinates for faster repeated use of probes - new wrapper of MUMPS linear solver for parallel runs For full release notes see http://docs.sfepy.org/doc/release_notes.html#id1 (rather long and technical). Cheers, Robert

Re: [Numpy-discussion] NEP 21: Simplified and explicit advanced indexing

2018-06-25 Thread Robert Kern
uld reserve warnings for the cases where the current behavior is something no one really wants, like mixing slices and integer arrays. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] NEP 21: Simplified and explicit advanced indexing

2018-06-26 Thread Robert Kern
ne of the more easily noticed things. These are not silent errors that would motivate adding a new warning. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] NEP 21: Simplified and explicit advanced indexing

2018-06-26 Thread Robert Kern
On Tue, Jun 26, 2018 at 12:46 AM Robert Kern wrote: > On Tue, Jun 26, 2018 at 12:13 AM Eric Wieser > wrote: > >> > I would reserve warnings for the cases where the current behavior is >> something no one really wants, like mixing slices and integer arrays. >> >

Re: [Numpy-discussion] NEP 21: Simplified and explicit advanced indexing

2018-06-26 Thread Robert Kern
with errors/warnings. > It's not necessarily hard; it's just churn for no benefit to the downstream code. They didn't get a new feature; they just have to run faster to stay in the same place. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] NEP 21: Simplified and explicit advanced indexing

2018-06-26 Thread Robert Kern
On Tue, Jun 26, 2018 at 1:26 AM Travis Oliphant wrote: > I like the proposal generally. NumPy could use a good orthogonal indexing > method and a vectorized-indexing method is fine too. > > Robert Kern is spot on with his concerns as well. Please do not change > what arr[idx]

Re: [Numpy-discussion] NEP 21: Simplified and explicit advanced indexing

2018-06-26 Thread Robert Kern
On Tue, Jun 26, 2018 at 1:49 AM Hameer Abbasi wrote: > > On 26. Jun 2018 at 10:33, Robert Kern wrote: > > > I'd suggest that the NEP explicitly disclaim deprecating current behavior. Let the NEP just be about putting the new features out there. Once we have some experience

Re: [Numpy-discussion] NEP 21: Simplified and explicit advanced indexing

2018-06-26 Thread Robert Kern
On Tue, Jun 26, 2018 at 1:36 AM Sebastian Berg wrote: > On Tue, 2018-06-26 at 01:21 -0700, Robert Kern wrote: > > On Tue, Jun 26, 2018 at 12:58 AM Sebastian Berg > > wrote: > > > > > > > > > Yes, that is true, but I doubt you will find a lot of c

Re: [Numpy-discussion] NEP 21: Simplified and explicit advanced indexing

2018-06-26 Thread Robert Kern
On Tue, Jun 26, 2018 at 3:50 AM Sebastian Berg wrote: > > On Tue, 2018-06-26 at 02:27 -0700, Robert Kern wrote: > > On Tue, Jun 26, 2018 at 1:36 AM Sebastian Berg > s.net> wrote: > > > On Tue, 2018-06-26 at 01:21 -0700, Robert Kern wrote: > > > > On Tue,

Re: [Numpy-discussion] NEP 21: Simplified and explicit advanced indexing

2018-06-26 Thread Robert Kern
On Tue, Jun 26, 2018 at 6:14 PM Stephan Hoyer wrote: > On Tue, Jun 26, 2018 at 4:34 PM Robert Kern wrote: > >> I maintain that considering deprecation is premature at this time. Please >> take it out of this NEP. Let us get a feel for how people actually use >> .oindex/.

Re: [Numpy-discussion] NEP 21: Simplified and explicit advanced indexing

2018-06-26 Thread Robert Kern
On Tue, Jun 26, 2018 at 6:47 PM Stephan Hoyer wrote: > > On Tue, Jun 26, 2018 at 6:39 PM Robert Kern wrote: > >> I'd still prefer not talking deprecation, per se, in this NEP (but my >> objection is weaker). I would definitely start adding in informative, noisy

Re: [Numpy-discussion] NEP 21: Simplified and explicit advanced indexing

2018-06-26 Thread Robert Kern
On Tue, Jun 26, 2018 at 9:50 PM Stephan Hoyer wrote: > On Tue, Jun 26, 2018 at 12:46 AM Robert Kern > wrote: > >> I think having more self-contained descriptions of the semantics of each >> of these would be a good idea. The current description of `.vindex` spends >&

Re: [Numpy-discussion] NEP 21: Simplified and explicit advanced indexing

2018-06-26 Thread Robert Kern
On Tue, Jun 26, 2018 at 10:21 PM Juan Nunez-Iglesias wrote: > Let me start by thanking Robert for articulating my viewpoints far better > than I could have done myself. I want to explicitly flag the following > statements for endorsement: > > *I would still reserve warnings and

Re: [Numpy-discussion] Revised NEP-18, __array_function__ protocol

2018-06-30 Thread Robert Kern
com/bashtage/randomgen [2] Sorry, Kevin. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Proposal to accept NEP 19: Random Number Generator Policy

2018-07-01 Thread Robert Kern
days from this email, then the NEP will be accepted; see NEP 0 for more details: http://www.numpy.org/neps/nep-.html -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Proposal to accept NEP 19: Random Number Generator Policy

2018-07-03 Thread Robert Kern
avoid them. https://github.com/numpy/numpy/pull/11475 -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] ANN: Numexpr 2.6.6

2018-07-16 Thread Robert McLeod
rom PyPI as well (but not for RC releases): http://pypi.python.org/pypi/numexpr Documentation is hosted at: http://numexpr.readthedocs.io/en/latest/ Share your experience - Let us know of any bugs, suggestions, gripes, kudos, etc. you may have. Enjoy data! -- Rob

Re: [Numpy-discussion] Adoption of a Code of Conduct

2018-08-01 Thread Robert Kern
se unwelcoming behavior, and I think maybe we should be explicit about that. Our diversity statement is an aspiration, not a suicide pact. Religion, neurotype, national origin, and subculture (4chan is a subculture, God help us), at minimum, are all items on that list that I have personally seen used t

Re: [Numpy-discussion] Adoption of a Code of Conduct

2018-08-02 Thread Robert Kern
sn't give them any tools to be better at welcoming a broader diversity in our community. They will read that and carry on with their own personal status quo with no more reflection. And this requires reflection and work. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Adoption of a Code of Conduct

2018-08-03 Thread Robert Kern
I think I'm going to leave it there for the time being and mute this thread until I get back from vacation. I know that's terribly rude, and you all have my abject apologies. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@

Re: [Numpy-discussion] Adoption of a Code of Conduct

2018-08-03 Thread Robert Kern
On Thu, Aug 2, 2018 at 11:01 PM Robert Kern wrote: > Nope, concision is definitely not my strength. But I hope I > made the argument clear, at least. > No, wait. I got it: Bad actors use "diversity of political beliefs" in bad faith as cover for undermining the goa

[Numpy-discussion] ANN: Numexpr 2.6.7

2018-08-12 Thread Robert McLeod
-- Let us know of any bugs, suggestions, gripes, kudos, etc. you may have. Enjoy data! -- Robert McLeod, Ph.D. robbmcl...@gmail.com robbmcl...@protonmail.com robert.mcl...@hitachi-hhtc.ca www.entropyreduction.al ___ NumPy-Discussion

Re: [Numpy-discussion] Add pybind11 to docs about writing binding code

2018-08-17 Thread Robert Kern
rfectly on-topic for that article. You don't have to be the one that writes it, though, if you just want to cover pybind11. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] ANN: NumExpr 2.6.8

2018-08-19 Thread Robert McLeod
tp://pypi.python.org/pypi/numexpr Documentation is hosted at: http://numexpr.readthedocs.io/en/latest/ Share your experience - Let us know of any bugs, suggestions, gripes, kudos, etc. you may have. Enjoy data! -- Robert McLeod, Ph.D. robbmcl...@gmail.com robbmcl...@

Re: [Numpy-discussion] Possible Deprecation of np.ediff1d

2018-08-27 Thread Robert Kern
that prepend/append behavior manually (and less readably, possibly inefficiently, but most importantly annoyingly). -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Possible Deprecation of np.ediff1d

2018-08-27 Thread Robert Cimrman
Hi, it was originally used in other functions of arraysetops (culprit yours truly) which used to use the padding functionality. Nowadays the only use I can see git-grepping the numpy sources is in the tests, so +1 for deprecating. Cheers, r. On 08/27/2018 07:28 PM, Tyler Reddy wrote: Chuck

[Numpy-discussion] ANN: SfePy 2018.3

2018-09-17 Thread Robert Cimrman
script for outline edge extraction - new example: homogenization of a piezoelectric heterogeneous structure For full release notes see http://docs.sfepy.org/doc/release_notes.html#id1 (rather long and technical). Cheers, Robert Cimrman --- Contributors to this release in alphabetical order

Re: [Numpy-discussion] PR Cleanup

2018-09-25 Thread Robert Kern
On Tue, Sep 25, 2018 at 9:59 AM Stefan van der Walt wrote: > PR 4808 [0] asks whether `np.pad` should have a default mode. The > proposal is to make the defaul `constant`, with a value of 0. This is > common in many signal processing applications. > +1 for that proposal. --

Re: [Numpy-discussion] numpy pprint?

2018-11-06 Thread Robert Kern
pular terminology is `tensors` for `multidimensional > arrays`. Note that matrices are a different type of object. > Popular, but quite misleading, in the same way that not every 2-dim array is a matrix. As someone who works on tensor machine learning methods once complained to me. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy pprint?

2018-11-06 Thread Robert Kern
On Tue, Nov 6, 2018 at 3:55 PM Stefan van der Walt wrote: > On Tue, 06 Nov 2018 12:11:13 -0800, Robert Kern wrote: > > Popular, but quite misleading, in the same way that not every 2-dim array > > is a matrix. As someone who works on tensor machine learning methods once >

Re: [Numpy-discussion] How to get sources of the current state of 1.16?

2018-11-29 Thread Robert Kern
umPy-Discussion mailing list > NumPy-Discussion@python.org > https://mail.python.org/mailman/listinfo/numpy-discussion > -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] How to get sources of the current state of 1.16?

2018-11-29 Thread Robert Kern
much closer to the release when most of the PRs are merged already merged and it's just last minute fixes and release-specific changes (e.g. bumping version numbers, etc.) to do. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] ANN: NumExpr 2.6.9

2018-12-21 Thread Robert McLeod
/numexpr You can get the packages from PyPI as well (but not for RC releases): http://pypi.python.org/pypi/numexpr Documentation is hosted at: http://numexpr.readthedocs.io/en/latest/ Share your experience - Let us know of any bugs, suggestions, gripes, kudos, etc. you may have.

[Numpy-discussion] ANN: SfePy 2018.4

2018-12-26 Thread Robert Cimrman
- improved MUMPS solver interface - support for logging and plotting of complex values For full release notes see [1]. Cheers, Robert Cimrman [1] http://docs.sfepy.org/doc/release_notes.html#id1 --- Contributors to this release in alphabetical order: Robert Cimrman Vladimir Lukes Matyas Novak Jan

Re: [Numpy-discussion] numba: maps, and list of vectors

2019-01-17 Thread Robert Kern
now Cython is a route, but I am asking about > numba specifically). > > Thanks, > - Stuart > > ___ > NumPy-Discussion mailing list > NumPy-Discussion@python.org > https://mail.python.org/mailman/listinfo/numpy-discussion > --

Re: [Numpy-discussion] 'nansqrt' function?

2019-02-13 Thread Robert McLeod
mpy? > > Thanks in advance for any comments or suggestions. > > Best regards, > ___ > NumPy-Discussion mailing list > NumPy-Discussion@python.org > https://mail.python.org/mailman/listinfo/numpy-discussion > -- Robert McLeod, Ph.

Re: [Numpy-discussion] [SciPy-User] Why slicing Pandas column and then subtract gives NaN?

2019-02-17 Thread Robert Kern
sue causing bugs in real code, so I would submit that if there is a lack (or benefit) compared to other languages, it is small. That said, Python is not alone here. Perl and Ruby have Python's semantics. R introduces NaNs but does not raise an error. Matlab and Julia do raise errors. -- Robert

[Numpy-discussion] ANN: SfePy 2019.1

2019-03-26 Thread Robert Cimrman
- quadratic eigenvalue problem solver For full release notes see [1]. Cheers, Robert Cimrman [1] http://docs.sfepy.org/doc/release_notes.html#id1 --- Contributors to this release in alphabetical order: Robert Cimrman Lubos Kejzlar Vladimir Lukes ___ NumPy

Re: [Numpy-discussion] Converting np.sinc into a ufunc

2019-05-23 Thread Robert Kern
n numpy should be implemented as ufuncs or regular functions". -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Was the range() function ever created?

2019-05-24 Thread Robert Kern
st have to unpack anyways, and at that point, it's just not *that* much more convenient than calling `min()` and `max()` separately. So every time we write `xmin, xmax = x.min(), x.max()`, we grumble a little bit, but it's just a grumble, not a significant pain. pandas has other consideration

Re: [Numpy-discussion] Was the range() function ever created?

2019-05-24 Thread Robert Kern
On Fri, May 24, 2019 at 9:33 PM C W wrote: > Thank you, Robert. I will take it up to the Pandas-dev mailing list. > > I'm not sure if I follow you on "right semantics for the shape of the > output." Range is just a summary statistic which is a number. > >

Re: [Numpy-discussion] Better way to create multiple independent random number generators

2019-06-21 Thread Robert Kern
of O'Neill is what enables this kind of API, which is a sea change in how one can safely build reproducible parallel stochastic programs and libraries. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org

[Numpy-discussion] ANN: SfePy 2019.2

2019-07-02 Thread Robert Cimrman
homogenization problems, - Python 3.7 compatibility For full release notes see [1]. Cheers, Robert Cimrman [1] http://docs.sfepy.org/doc/release_notes.html#id1 --- Contributors to this release in alphabetical order: Robert Cimrman Jan Heczko Lubos Kejzlar Vladimir Lukes

[Numpy-discussion] ANN: NumExpr 2.7.0 Release

2019-08-14 Thread Robert McLeod
ages from PyPI as well (but not for RC releases): http://pypi.python.org/pypi/numexpr Documentation is hosted at: http://numexpr.readthedocs.io/en/latest/ Share your experience - Let us know of any bugs, suggestions, gripes, kudos, etc. you may have. Enjoy data! -- Robert Mc

Re: [Numpy-discussion] Low-level API for Random

2019-09-19 Thread Robert Kern
I can tell (which may be fine, if the only > goal is to let people write new generators rather than use the existing > ones from Cython without the Python overhead) > Using the existing distributions from Cython was a requested feature and an explicit goal, yes. There are users waiting for this. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Low-level API for Random

2019-09-19 Thread Robert Kern
On Thu, Sep 19, 2019 at 11:04 PM Ralf Gommers wrote: > > > On Thu, Sep 19, 2019 at 4:53 PM Robert Kern wrote: > >> On Thu, Sep 19, 2019 at 5:24 AM Ralf Gommers >> wrote: >> >>> >>> On Thu, Sep 19, 2019 at 10:28 AM Kevin Sheppard < >>>

Re: [Numpy-discussion] Low-level API for Random

2019-09-20 Thread Robert Kern
On Fri, Sep 20, 2019 at 6:09 AM Ralf Gommers wrote: > > > On Fri, Sep 20, 2019 at 5:29 AM Robert Kern wrote: > >> >> We might end up with more than 2 implementations if we need to change >> something about the function signature, for whatever reason, and we

Re: [Numpy-discussion] Low-level API for Random

2019-09-20 Thread Robert Kern
On Fri, Sep 20, 2019 at 11:33 PM Ralf Gommers wrote: > > > On Fri, Sep 20, 2019 at 7:09 AM Robert Kern wrote: > >> >> >> On Fri, Sep 20, 2019 at 6:09 AM Ralf Gommers >> wrote: >> >>> >>> >>> On Fri, Sep 20, 2019 at 5:29 AM R

[Numpy-discussion] ANN: SfePy 2019.3

2019-09-24 Thread Robert Cimrman
SLEPc - new Python 3 enabled Timer class and other Python 3 compatibility fixes For full release notes see [1]. Cheers, Robert Cimrman [1] http://docs.sfepy.org/doc/release_notes.html#id1 --- Contributors to this release in alphabetical order: Robert Cimrman Vladimir Lukes

Re: [Numpy-discussion] Low-level API for Random

2019-09-25 Thread Robert Kern
On Wed, Sep 25, 2019, 12:56 PM Stefan van der Walt wrote: > On Fri, Sep 20, 2019, at 21:30, Robert Kern wrote: > > Given the prevalence of Cython, it's actually really easy to use the > Python API pretty easily in "C", so it's actually a huge waste if the C

[Numpy-discussion] ANN: SfePy 2019.4

2019-12-23 Thread Robert Cimrman
- improved Gmsh mesh format support (write .msh files) - new updating procedure in nonlinear homogenization - improved/faster log plotter For full release notes see [1]. Cheers, Robert Cimrman [1] http://docs.sfepy.org/doc/release_notes.html#id1 --- Contributors to this release in alphabetical order

Re: [Numpy-discussion] Deprecate numpy.dual?

2020-01-03 Thread Robert Kern
variance matrices are typically small. And where they are large (e.g. Gaussian processes), you should probably be doing your own decompositions instead of using `multivariate_normal()`. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discus

[Numpy-discussion] Announcing Numexpr 2.7.1

2020-01-05 Thread Robert McLeod
can get the packages from PyPI as well (but not for RC releases): http://pypi.python.org/pypi/numexpr Documentation is hosted at: http://numexpr.readthedocs.io/en/latest/ Share your experience - Let us know of any bugs, suggestions, gripes, kudos, etc. you may have. Enjoy

Re: [Numpy-discussion] Numpy support for Microblaze

2020-01-10 Thread Robert Kern
ave more trouble dealing with the OS (or lack of OS, if that's the case) than the architecture itself. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Numpy support for Microblaze

2020-01-11 Thread Robert Kern
le by itself to see if this is a platform-specific problem with the general Cython-generated code for initializing the module or a problem that we can fix in the mtrand code. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] 8 Real Distributions

2020-01-20 Thread Robert Kern
m or how you want to implement them, a third-party module is the right place for them. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Output type of round is inconsistent with python built-in

2020-02-26 Thread Robert Kern
e to returning an integer type, it should be a Python int. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Output type of round is inconsistent with python built-in

2020-02-26 Thread Robert Kern
ated just by rounding for an example. Or numpy array size growing for no >> apparent reason >> >> I am not really sure if I understand why LSP should hold in this case to >> be honest. Rounding is an operation specific for the number instance and >> not for the generic cl

Re: [Numpy-discussion] Output type of round is inconsistent with python built-in

2020-02-26 Thread Robert Kern
nd > not for the generic class. > The type of the return value is part of the type's interface, not the specific instance. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Output type of round is inconsistent with python built-in

2020-02-26 Thread Robert Kern
n and not numpy, there is nothing in numpy to be consistent with. We only implement __round__() for the scalar types. -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Output type of round is inconsistent with python built-in

2020-02-26 Thread Robert Kern
On Wed, Feb 26, 2020 at 6:59 PM wrote: > > > On Wed, Feb 26, 2020 at 6:09 PM Robert Kern wrote: > >> On Wed, Feb 26, 2020 at 5:27 PM wrote: >> >>> great another object array >>> >>> np.asarray([round(x_i.item()) for x_i in np

Re: [Numpy-discussion] Output type of round is inconsistent with python built-in

2020-02-26 Thread Robert Kern
27;s not about what I want but this changes the output of round. In my > example I didn't use any arrays but a scalar type which looks like will > upcasted. > > On Wed, Feb 26, 2020, 23:04 Robert Kern wrote: > >> On Wed, Feb 26, 2020 at 5:41 PM wrote: >> >>> &g

Re: [Numpy-discussion] Output type of round is inconsistent with python built-in

2020-02-27 Thread Robert Kern
tatypes they would have a silent upcasting. > > > > No they won’t. The only affected types would be scalars, and that too only > with the built-in Python round. > Just to be clear, his example _did_ use numpy scalars. -- Robert Kern __

Re: [Numpy-discussion] Output type of round is inconsistent with python built-in

2020-02-27 Thread Robert Kern
have significant impact. > np.round()/np.around() will still exist and behave as you would want it to in such cases (float32->float32, float64->float64). -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.p

[Numpy-discussion] ANN: SfePy 2020.1

2020-03-31 Thread Robert Cimrman
using meshio [2] - Python 3 only from now on For full release notes see [1]. Cheers, Robert Cimrman [1] http://docs.sfepy.org/doc/release_notes.html#id1 [2] https://github.com/nschloe/meshio --- Contributors to this release in alphabetical order: Robert Cimrman Lubos Kejzlar Vladimir Lukes

Re: [Numpy-discussion] unsubscribe from mailing list

2020-04-06 Thread Robert Kern
ing list > > -- > Sargam Monga > 2018262 > CSAM Undergraduate | IIIT-D > ___ > NumPy-Discussion mailing list > NumPy-Discussion@python.org > https://mail.python.org/mailman/listinfo/numpy-

Re: [Numpy-discussion] beginner introduction to group

2020-04-24 Thread Robert Kern
suggestions and tips are always welcome. > Welcome! Do you have an idea what you would like to work on? -- Robert Kern ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] log of negative real numbers -> RuntimeWarning: invalid value encountered in log

2020-05-25 Thread Robert Kern
(maybe even the switching behaviour). > I am not sure anyone actually uses those, so it may not be a good idea > to use them to be honest. > The versions in `np.lib.scimath` behave like this. Of course, people do use them when they want to deal with real numbers as subsets of the complex

Re: [Numpy-discussion] log of negative real numbers -> RuntimeWarning: invalid value encountered in log

2020-05-25 Thread Robert Kern
On Mon, May 25, 2020 at 11:17 AM Sebastian Berg wrote: > On Mon, 2020-05-25 at 11:10 -0400, Robert Kern wrote: > > On Mon, May 25, 2020 at 10:36 AM Sebastian Berg < > > sebast...@sipsolutions.net> > > wrote: > > > > > On Mon, 2020-05-25 at 10:09 -0400, B

Re: [Numpy-discussion] reseed random generator (1.19)

2020-06-24 Thread Robert Kern
some advanced use cases (mostly involving de/serialization and similar kinds of meta-programming tasks). It's also been helpful for me to construct worst-case scenarios for testing parallel streams. But it quite deliberately bypasses the notion of deriving the state from a human-friendly

Re: [Numpy-discussion] reseed random generator (1.19)

2020-06-29 Thread Robert Kern
e isn't a persistent Generator object between these runs, that's probably better. It's a code smell if you can't just pass in a fresh Generator; in general, it means that your code is harder to use, not just because we don't expose an in-pla

Re: [Numpy-discussion] reseed random generator (1.19)

2020-06-29 Thread Robert Kern
-paste comfortably. We have thought about wrapping that up in a numpy.random function (e.g. `np.random.simple_seed()` or something like that) for convenience, but we wanted to wait a bit before commiting to an API. -- Robert Kern ___ NumPy-Discussion m

<    1   2   3   4   >