How can I get a ndarray which contains the different ways of adding up to N a certain number of elements?

后端 未结 0 1935
星月不相逢
星月不相逢 2020-12-10 16:05

For example, suppose I have a chain of 3 elements (natural numbers) and I fix N=2. What I want is to find, in form of a matrix or 2D-array, the different ways o

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