From 47ba973c5a17af4006e2b49559faa647e163f0d5 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Wed, 17 Jun 2020 15:59:50 -0500 Subject: [PATCH] ArrayContext: clarify that {to,from}_numpy deal with thawed arrays --- meshmode/array_context.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/meshmode/array_context.py b/meshmode/array_context.py index 619f44c8..5ed7d88c 100644 --- a/meshmode/array_context.py +++ b/meshmode/array_context.py @@ -83,16 +83,18 @@ class ArrayContext: return self.zeros(shape=ary.shape, dtype=ary.dtype) def from_numpy(self, array: np.ndarray): - """ + r""" :returns: the :class:`numpy.ndarray` *array* converted to the - array context's array type. + array context's array type. The returned array will be + :meth:`thaw`\ ed. """ raise NotImplementedError def to_numpy(self, array): - """ + r""" :returns: *array*, an array recognized by the context, converted - to a :class:`numpy.ndarray`. + to a :class:`numpy.ndarray`. *array* must be + :meth:`thaw`\ ed. """ raise NotImplementedError -- GitLab