Convert numpy array to square matrix with only diagonal values
Answers
Answered by
0
Answer:
Starting in NumPy 1.9 it returns a read-only view on the original array. ... This will work with both past and future versions of NumPy.
Similar questions