Your IP : 216.73.216.213
(��^j � @ s� d Z d d l m Z m Z m Z d d d g Z d d l j j Z d d l
Z
d d l Z d d � Z e d d d � � Z
e d d
d � � Z e d d d � � Z d S)zr
Module of functions that are like ufuncs in acting on arrays and optionally
storing results in an output array.
� )�division�absolute_import�print_function�fix�isneginf�isposinfNc s( t j � � d � f d d � � } | S)z|
Allow the out argument to be passed as the name `y` (deprecated)
In future, this decorator should be removed.
Nc st d | k ra d | k r0 t d j � j � � � | j d � } t j d j � j � t d d �� | d | | �S)N�y�outz-{} got multiple values for argument 'out'/'y'zXThe name of the out argument to {} has changed from `y` to `out`, to match other ufuncs.�
stacklevel� )� TypeError�format�__name__�pop�warnings�warn�DeprecationWarning)�xr �kwargs)�f� �F/opt/alt/python35/lib64/python3.5/site-packages/numpy/lib/ufunclike.py�func s
z$_deprecate_out_named_y.<locals>.func)� functools�wraps)r r r )r r �_deprecate_out_named_y s r c C st t j t j | d | �� } t j | d | d t j | d � �} | d k rp t | � t j k rp | f } | S)a�
Round to nearest integer towards zero.
Round an array of floats element-wise to nearest integer towards zero.
The rounded values are returned as floats.
Parameters
----------
x : array_like
An array of floats to be rounded
y : ndarray, optional
Output array
Returns
-------
out : ndarray of floats
The array of rounded numbers
See Also
--------
trunc, floor, ceil
around : Round to given number of decimals
Examples
--------
>>> np.fix(3.14)
3.0
>>> np.fix(3)
3.0
>>> np.fix([2.1, 2.9, -2.1, -2.9])
array([ 2., 2., -2., -2.])
r �wherer N)�nxZ
asanyarray�ceil�floor�
greater_equal�typeZndarray)r r �resr r r r '