Answer the question
In order to leave comments, you need to log in
How to create an identity matrix in Python if there are NOT ones on the main diagonal?
Hello!
In python, it was required to create an identity matrix, but in such a way that along the main diagonal there were not units, but values from the array (the array is known, it has 80 elements, let's say).
For an ordinary identity matrix, numpy.eye(80) must be applied. What should I do in my case?
Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question