Python Forum
random matrix, with some special feature
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
random matrix, with some special feature
#3
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
Reply


Messages In This Thread
RE: random matrix, with some special feature - by PhysChem - Aug-28-2018, 05:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  define a diagonal matrix from a matrix amalalaoui 1 2,417 May-15-2019, 01:12 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020