Python Programming - Arrays - Discussion
Discussion Forum : Arrays - General Questions (Q.No. 79)
79.
What does the expression
np.eye(4, k=1)
generate?Answer: Option
Explanation:
The
np.eye()
function generates an identity matrix with ones on the main diagonal, and the k
parameter shifts the 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