NumPy DTypes Plugin¶
Generates numpy dtypes for C/C++ classes and structs and other types.
This module is available as an xdress plugin by the name xdress.dtypes.
| author: | Anthony Scopatz <scopatz@gmail.com> |
|---|
NumPy Dtypes Wrapper API¶
-
class
xdress.dtypes.XDressPlugin[source]¶ This class provides numpy dtype functionality for xdress.
The __init__() method may take no arguments or keyword arguments.
-
xdress.dtypes.genfiles(types, fname='dtypes', pxdname=None, testname=None, pyxheader=None, pxdheader=None, testheader=None, package='..', ts=None, verbose=False)[source]¶ Generates all cython source files needed to create the numpy dtype wrapper.
-
xdress.dtypes.genpxd(types, header=None, ts=None)[source]¶ Returns a string of a pxd file representing the given dtypes.