Numpy change diagonal values in a 3D array

后端 未结 0 560
别跟我提以往
别跟我提以往 2021-02-07 22:51

I have a vector with the following values: dv = array([0., 0., 1.]).

How do I diagonalize this vector into a 3D array with each element in the vector have it

相关标签:
回答
  • 消灭零回复
提交回复
热议问题