[Numpy-discussion] RFC: supporting complex inputs in np.logaddexp
Hello all, I would like to ask if the maintainers would be in favour of adding support to np.logaddexp in order to support complex numbers. scipy.special.logsumexp already does, and it would be relatively straightforward to support them in numpy too. Complex numbers are very common when working in quantum physics, where we have complex-valued probability amplitudes. Best, Filippo Vicentini ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion
[Numpy-discussion] Best fit linear piecewise function?
Do any of you know of code for finding an optimum linear piecewise fit to a set of points? Somethin like what is described in this article: https://www.hindawi.com/journals/mpe/2015/876862/ At a glance, that looked just hard enough to code up that I'm hoping someone has already done it :-) -CHB -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar...@noaa.gov ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion