python - How do I read numpy source? -
i built myself on python 3.3, can't life of me find class definition of numpy.array(). i've looked through code , found core c files, dang array class??
can tell me directory in, or how find out python shell?
np.arraynot class itself, convenience function createnp.ndarrayndarrayaliased multiarray, implemented in c code (i think in .so i.e. shared object, compiled code)- you can start looking @ ndarray interfaces here in numeric.py.
- most of meat of implementation in c code, here in multiarray.
array()implemented in core/src/multiarray/methods.c inarray_getarray()
Comments
Post a Comment