Skip to content

Commit

Permalink
numpy_ptr -> get_ndpointer_type
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed Oct 4, 2016
1 parent b14f1ab commit eac1ab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions npctypes/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def ctype(a_type):
return(type(numpy.ctypeslib.as_ctypes(numpy.array(0, dtype=a_type))))


def numpy_ptr(a):
def get_ndpointer_type(a):
"""
Takes a numpy.ndarray and gets a pointer type for that array.
Expand All @@ -84,7 +84,7 @@ def numpy_ptr(a):
Examples:
>>> a = numpy.zeros((3, 4), dtype=float)
>>> a_ptr = numpy_ptr(a)
>>> a_ptr = get_ndpointer_type(a)
>>> a_ptr
<class 'numpy.ctypeslib.ndpointer_<f8_2d_3x4_C_CONTIGUOUS_ALIGNED_WRITEABLE_OWNDATA'>
Expand Down

0 comments on commit eac1ab6

Please sign in to comment.