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.array not class itself, convenience function create np.ndarray
  • ndarray aliased 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 in array_getarray()

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -