[Numpy-discussion] Any interest in a 'heaviside' ufunc?

Jaime Fernández del Río jaime.frio at gmail.com
Wed Feb 4 00:58:05 EST 2015


On Tue, Feb 3, 2015 at 12:58 PM, Warren Weckesser <
warren.weckesser at gmail.com> wrote:

> I have an implementation of the Heaviside function as numpy ufunc.  Is
> there any interest in adding this to numpy?  The function is simply:
>
>                     0    if x < 0
>     heaviside(x) =  0.5  if x == 0
>                     1    if x > 0
>

I don't think there's anything like it in numpy. Wouldn't scipy.special be
a better home for it?

Jaime


>
>
>
> Warren
>
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>


-- 
(\__/)
( O.o)
( > <) Este es Conejo. Copia a Conejo en tu firma y ayúdale en sus planes
de dominación mundial.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20150203/bdea8e9a/attachment.html>


More information about the NumPy-Discussion mailing list