Python Programming - Arrays - Discussion
Discussion Forum : Arrays - General Questions (Q.No. 57)
57.
What does the NumPy function
numpy.diag([1, 2, 3])
do?
Answer: Option
Explanation:
The
numpy.diag()
function creates a diagonal matrix with the specified values on the main diagonal.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers