Re: [Numpy-discussion] Using numpy.rint() with scalars

2016-11-03 Thread Charles R Harris
On Thu, Nov 3, 2016 at 9:17 AM, Yuri Sukhov wrote: > Hi all, > > According to the documentation for numpy.rint() ( > https://docs.scipy.org/doc/numpy/reference/generated/numpy.rint.html), > it's a ufunc that accepts an array-like object as an input. > > But it also works with scalar inputs. Could

[Numpy-discussion] Using numpy.rint() with scalars

2016-11-03 Thread Yuri Sukhov
Hi all, According to the documentation for numpy.rint() (https://docs.scipy.org/doc/ numpy/reference/generated/numpy.rint.html), it's a ufunc that accepts an array-like object as an input. But it also works with scalar inputs. Could anyone clarify if such use case is considered to be common and a