diff --git a/sumpy/point_calculus.py b/sumpy/point_calculus.py index 1ce17f14c2a66155d08015f35211a8e681b93d2f..9321f7d9a0745e1f5ee1768e7f394fd6bfb00e2a 100644 --- a/sumpy/point_calculus.py +++ b/sumpy/point_calculus.py @@ -117,8 +117,8 @@ class CalculusPatch(object): def diff(self, axis, f_values, nderivs=1): """Return the derivative along *axis* of *f_values*. - :arg f_values: an array of shape ``(dim, npoints_total)`` - :returns: an array of shape ``(dim, npoints_total)`` + :arg f_values: an array of shape ``(npoints_total,)`` + :returns: an array of shape ``(npoints_total,)`` """ from numbers import Number @@ -151,8 +151,8 @@ class CalculusPatch(object): def laplace(self, f_values): """Return the Laplacian of *f_values*. - :arg f_values: an array of shape ``(dim, npoints_total)`` - :returns: an array of shape ``(dim, npoints_total)`` + :arg f_values: an array of shape ``(npoints_total,)`` + :returns: an array of shape ``(npoints_total,)`` """ return sum(self.diff(iaxis, f_values, 2) for iaxis in range(self.dim)) @@ -185,7 +185,7 @@ class CalculusPatch(object): def eval_at_center(self, f_values): """Interpolate *f_values* to the center point. - :arg f_values: an array of shape ``(dim, npoints_total)`` + :arg f_values: an array of shape ``(npoints_total,)`` :returns: a scalar. """ f_values = f_values.reshape(*self._pshape)