Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is the purpose of 'np.eye()' in NumPy?
Answer: 'np.eye()' creates an identity matrix with ones on the main diagonal and zeros elsewhere.
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook