Is there a Pythonic way to transpose 1 row/column of a numpy matrix?

前端 未结 0 1388
后悔当初
后悔当初 2020-12-10 23:33

Imagine I have an 8x8 matrix:
[
0 1 1 1 1 1 1 1
0 0 1 1 1 1 1 1
0 0 0 1 1 1 1 1
0 0 0 0 1 1 1 1
0 0 0 0 0 1 1 1
0 0 0 0 0 0 1 1
0 0 0 0 0 0 0

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