NumPy - Creating Arrays
What does the function
np.eye(4) create in NumPy?np.eye(4) create in NumPy?np.eye(n) creates an n x n identity matrix with 1s on the main diagonal and 0s elsewhere.np.eye(4) creates a 4x4 matrix with 1s on the main diagonal and 0s elsewhere.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions