tingying2020 commented on a change in pull request #15387: Add docs for 7 ops
URL: https://github.com/apache/incubator-mxnet/pull/15387#discussion_r298920220
 
 

 ##########
 File path: python/mxnet/numpy/multiarray.py
 ##########
 @@ -2057,3 +2035,128 @@ def sqrt(x, out=None, **kwargs):
     This function only supports input type of float.
     """
     return _mx_nd_np.sqrt(x, out=out, **kwargs)
+
+@set_module('mxnet.numpy')
+def arctanh(x, out=None, where=True, **kwargs):
+    r"""
+    arctanh(x, out=None, where=True)
+
+    Inverse hyperbolic tangent element-wise.
+
+    Parameters:        
+
+    -----------
+    x : ndarray 
+        Input array.
+    out : ndarray, None, or tuple of ndarray and None.
+          A location into which the result is stored. If provided, 
+          it must have a shape that the inputs broadcast to. 
+          If not provided or None, a freshly-allocated array is returned. 
+          A tuple (possible only as a keyword argument) 
+          must have length equal to the number of outputs.
+    where : ndarray, optional
+            Values of True indicate to calculate the ufunc at that position, 
+            values of False indicate to leave the value in the output alone.
+    Returns:   
+    --------
+    out : ndarray or scalar
+          ndarray of the same shape as x. This is a scalar if x is a scalar.
+    Examples
+
+    >>> np.arctan(0.7)
+    0.8673005276940531
+    """
+
+    return _mx_nd_np.arctanh(x, out=out, **kwargs)
+
+@set_module('mxnet.numpy')
+def tan(x, out=None, where=True, **kwargs):
+    r"""
+    tan(x, out=None, where=True)
+
+    Compute tangent element-wise.
+    Equivalent to np.sin(x)/np.cos(x) element-wise.
+    
+    Parameters:        
+    ----------
+    x : ndarray 
+        Input array.
+    out : ndarray or none, optional
+          A location into which the result is stored. If provided, 
+          it must have a shape that the inputs broadcast to. If not provided 
or None, 
+          a freshly-allocated array is returned. A tuple (possible only as a 
keyword argument) 
+          must have length equal to the number of outputs.
+    where : ndarray, optional
+            Values of True indicate to calculate the ufunc at that position, 
+            values of False indicate to leave the value in the output alone.
+
+    Returns:   
+    -------
+    y : ndarray
+    The corresponding tangent values. This is a scalar if x is a scalar.
+
+    Examples:
+    ---------
+    >>> np.tan(0.5)
+    0.5463024898437905 
+    """
+
+    return _mx_nd_np.tan(x, out=out, **kwargs)
+
+@set_module('mxnet.numpy')
+def fix(x, out=None):
+    """
+    Round an array of floats element-wise to nearest integer towards zero. 
+    The rounded values are returned as floats.
+    
+    Parameters:        
+    ----------
+    x : ndarray 
+        An array of floats to be rounded
+    out : ndarray, optional
+        Output array
+
+    Returns:   
+    -------
+    y : ndarray of floats
+
+    Examples
+    --------- 
+    >>> np.fix(3.14)
+    3
+    """
+    return _mx_nd_np.fix(x, out=out)
+
+@set_module('mxnet.numpy')
+def negative(x, out=None, where=True, **kwargs):
+    r"""
+    negative(x, out=None, where=True)
+
+    Numerical negative, element-wise.
+
+    Parameters:        
+
+    ------------
+    x : ndarray or scalar
+        Input array.
+    out : ndarray, None, or tuple of ndarray and None, optional
+          A location into which the result is stored. 
+          If provided, it must have a shape that the inputs broadcast to. 
+          If not provided or None, a freshly-allocated array is returned. 
+          A tuple (possible only as a keyword argument) must have length 
+          equal to the number of outputs.
+    where : ndarray, optional
 
 Review comment:
   Please check whether `where` works.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to