SHARE
TWEET

Untitled

a guest Feb 17th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## importig libraries to use for matrix and numpy array
  2. ## Importing it as an nm, don't be confused you can use any name instead ## of nm
  3. import numpy.matlib as nm
  4. import numpy as np
  5.  
  6. ## It returns values with initializing empty.
  7. ## filled with random data
  8. nm.empty((3,3))
  9.  
  10. #[Output]:
  11. #matrix([[0.00000000e+000, 0.00000000e+000, 0.00000000e+000],
  12. #        [0.00000000e+000, 0.00000000e+000, 6.64024228e-321],
  13. #        [0.00000000e+000, 1.10131582e-311, 0.00000000e+000]])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top