Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 1st, 2012  |  syntax: None  |  size: 0.32 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Python: How to use functions inside numpy?
  2. import numpy
  3. np.func
  4.        
  5. numpy.linalg
  6.        
  7. import numpy
  8.  
  9. x = numpy.array([[1,2],[5,7]])
  10. det_x = numpy.linalg.det(x)
  11.  
  12. #or
  13.  
  14. import numpy as np
  15.  
  16. x = np.array([[1,2],[5,7]])
  17. det_x = np.linalg.det(x)
  18.        
  19. import numpy as np
  20.        
  21. import numpy
  22. numpy.func
  23.        
  24. import numpy as np
  25. np.func