Answers for "numpy make identity matrix"

0

identity matrix with numpy

>>> np.eye(3)
array([[1.,  0.,  0.],
       [0.,  1.,  0.],
       [0.,  0.,  1.]])
Posted by: Guest on September-02-2021

Browse Popular Code Answers by Language