Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 70)
70.
What is the purpose of the NumPy function numpy.identity(3)?
Creates a 3x3 array with all elements initialized to zero.
Generates the identity matrix of order 3.
Reshapes an existing array to have dimensions 3x3.
Computes the inverse of a 3x3 matrix.
Answer: Option
Explanation:
The numpy.identity() function creates the identity matrix of the specified order.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.