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

 ##########
 File path: python/mxnet/symbol/numpy/_symbol.py
 ##########
 @@ -1555,4 +1600,127 @@ def sqrt(x, out=None, **kwargs):
     return _unary_func_helper(x, _npi.sqrt, _np.sqrt, out=out, **kwargs)
 
 
+@set_module('mxnet.symbol.numpy')
+def arctanh(x, out=None, where=True, **kwargs):
+    r"""
+    arctanh(x, out=None, where=True)
+
+    Inverse hyperbolic tangent element-wise.
+
+    Parameters:        
+
+    -----------
+    x : _Symbol or scalar 
+        Input array.
+    out : _Symbol or scalar 
+         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 : array_like, 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 : _Symbol or scalar
+          Array of the same shape as x. This is a scalar if x is a scalar.
+    Examples
+
+    >>> np.arctan(0.7)
+    0.8673005276940531
+    """
+
+    return _unary_func_helper(x, _npi.arctanh, _np.arctanh, out=out, **kwargs)
+
+@set_module('mxnet.symbol.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 : _Symbol or scalar 
+        Input array.
+    out : _Symbol or scalar or 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 : array_like, 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 : _Symbol or scalar 
+        The corresponding tangent values. This is a scalar if x is a scalar.
+    r"""
+
+    return _unary_func_helper(x, _npi.tan, _np.tan, out=out, **kwargs)
+
+@set_module('mxnet.symbol.numpy')
+def fix(x, out=None):
+    """
+    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 : Symbol or scalar  
 
 Review comment:
   _Symbol

----------------------------------------------------------------
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