Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 86)
86.
What does the NumPy function numpy.identity(3) generate?
3x3 array with ones on the main diagonal.
3x3 array with ones above the main diagonal.
3x3 array with ones below the main diagonal.
3x3 array with zeros on the main diagonal.
Answer: Option
Explanation:
The numpy.identity() function generates an identity matrix with ones on the main diagonal.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.