Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 33)
33.
What does the NumPy function numpy.diag(arr, k=0) do?
Computes the determinant of the array.
Extracts the diagonal elements from the array.
Transposes the array.
Finds the eigenvalues of the array.
Answer: Option
Explanation:
The numpy.diag() function extracts the diagonal elements from the array.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.