diff options
author | Bas van Beek <b.f.van.beek@vu.nl> | 2021-06-22 17:26:41 +0200 |
---|---|---|
committer | Bas van Beek <b.f.van.beek@vu.nl> | 2021-06-22 17:55:35 +0200 |
commit | a42f9a23a2c7957f20347df4b131c4c9bc2f340d (patch) | |
tree | ddae880ab158c3fc7f22368604034c6bf16aaa85 /numpy/core | |
parent | 80b387c66e4f10faafdb1a21c011c173f77b0942 (diff) | |
download | numpy-a42f9a23a2c7957f20347df4b131c4c9bc2f340d.tar.gz |
DOC: Add documentation for `np.ctypeslib.c_intp`
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/_internal.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py index 3b0c46467..3ed22818f 100644 --- a/numpy/core/_internal.py +++ b/numpy/core/_internal.py @@ -324,10 +324,10 @@ class _ctypes: """ (c_intp*self.ndim): A ctypes array of length self.ndim where the basetype is the C-integer corresponding to ``dtype('p')`` on this - platform. This base-type could be `ctypes.c_int`, `ctypes.c_long`, or - `ctypes.c_longlong` depending on the platform. - The c_intp type is defined accordingly in `numpy.ctypeslib`. - The ctypes array contains the shape of the underlying array. + platform (see `~numpy.ctypeslib.c_intp`). This base-type could be + `ctypes.c_int`, `ctypes.c_long`, or `ctypes.c_longlong` depending on + the platform. The ctypes array contains the shape of + the underlying array. """ return self.shape_as(_getintp_ctype()) @@ -907,4 +907,3 @@ class recursive: self.func = func def __call__(self, *args, **kwargs): return self.func(self, *args, **kwargs) - |