Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Numpy
## importig libraries to use for matrix and numpy array
## Importing it as an nm, don't be confused you can use any name instead ## of nm
import numpy.matlib as nm
import numpy as np
## It returns values with initializing empty.
## filled with random data
nm.empty((3,3))
#[Output]:
#matrix([[0.00000000e+000, 0.00000000e+000, 0.00000000e+000],
# [0.00000000e+000, 0.00000000e+000, 6.64024228e-321],
# [0.00000000e+000, 1.10131582e-311, 0.00000000e+000]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.