Login
Remember
Register
Ask a Question
How to use of diag() square matrix ?
+2
votes
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
How to use of diag() square matrix ?
diag-square-matrix
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 4, 2021
by
sharadyadav1986
use of diag() square matrix
arr3 = np.diag([1,2,3,4])
print(‘\n square matrix’,arr3)
...