+2 votes
in NumPy by
How to use of diag() square matrix ?

1 Answer

0 votes
by

use of diag() square matrix

arr3 = np.diag([1,2,3,4])

print(‘\n square matrix’,arr3)

...