[Numpy-discussion] Get rid of special scalar arithmetic

2016-01-12 Thread Charles R Harris
Hi All,

I've opened issue #7002 ,
reproduced below, for discussion.

> Numpy umath has a file scalarmath.c.src that implements scalar arithmetic
> using special functions that are about 10x faster than the equivalent
> ufuncs.
>
> In [1]: a = np.float64(1)
>
> In [2]: timeit a*a
> 1000 loops, best of 3: 69.5 ns per loop
>
> In [3]: timeit np.multiply(a, a)
> 100 loops, best of 3: 722 ns per loop
>
> I contend that in large programs this improvement in execution time is not
> worth the complexity and maintenance overhead; it is unlikely that
> scalar-scalar arithmetic is a significant part of their execution time.
> Therefore I propose to use ufuncs for all of the scalar-scalar arithmetic.
> This would also bring the benefits of __numpy_ufunc__ to scalars with
> minimal effort.
>
Thoughts?

Chuck
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
https://mail.scipy.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] 1.11 branch this weekend

2016-01-12 Thread Charles R Harris
Hi All,

Just a heads up. Note that we are trying to move to a faster release cycle
and that changes the flavor of the releases. Instead of a list of goals to
meet before each release, releases will more resemble snapshots of master
at branch time. The main thing is that they be regression and bug free to
the best of our ability when the branch is made.

Chuck
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
https://mail.scipy.org/mailman/listinfo/numpy-discussion