Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 28)
28.
What does the NumPy function numpy.eye(N, M=None, k=0) do?
Creates an identity matrix with dimensions N x N.
Generates a random matrix of size N x M.
Reshapes an array to have dimensions N x M.
Computes the eigenvalues of a matrix.
Answer: Option
Explanation:
The numpy.eye() function creates an identity matrix with dimensions N x N.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.