Updating docstring for mean
@@ -338,8 +338,8 @@ class spmatrix(object):
over all elements in the matrix by default, otherwise over the
specified axis. `float64` intermediate and return values are used
for integer inputs.
- Parameters
- ----------
+
+ Args:
axis : {-2, -1, 0, 1, None} optional
Axis along which the mean is computed. The default is to compute
the mean of all elements in the matrix (i.e., `axis` = `None`).
@@ -347,18 +347,13 @@ class spmatrix(object):
Type to use in computing the mean. For integer inputs, the default
is `float64`; for floating point inputs, it is the same as the
input dtype.
- .. versionadded:: 0.18.0
out : np.matrix, optional
Alternative output matrix in which to place the result. It must
have the same shape as the expected output, but the type of the
output values will be cast if necessary.
- .. versionadded:: 0.18.0
- Returns
- -------
+
+ Returns:
m : np.matrix
- See Also
- --------
- numpy.matrix.mean : NumPy's implementation of 'mean' for matrices
"""
def _is_integral(dtype):
return (cupy.issubdtype(dtype, cupy.integer) or
