Aug-28-2018, 05:06 PM
Thank you for the answer.
The matrix is not exactly what I want (only one non-zero element is wanted in each row), but I was able to modify it. Instead of using the permutations() function I typed this: rows=list([-1, 0, 0], [0,-1,0], [0,0,-1], [1,0,0], [0,1,0], [0,0,1])
It is working well
The matrix is not exactly what I want (only one non-zero element is wanted in each row), but I was able to modify it. Instead of using the permutations() function I typed this: rows=list([-1, 0, 0], [0,-1,0], [0,0,-1], [1,0,0], [0,1,0], [0,0,1])
It is working well