Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 47)
47.
What does the NumPy function numpy.eye(3) do?
Creates a 3x3 array with random values.
Generates an identity matrix of size 3x3.
Computes the eigenvalues of a 3x3 matrix.
Reshapes an existing array to have dimensions 3x3.
Answer: Option
Explanation:
The numpy.eye() function generates an identity matrix of the specified size.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.