Python Forum
Write the Matrix2 by using Matrix1
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Write the Matrix2 by using Matrix1
#3
exactly you got it right !!!!
I will check the example and will try to do something. Will let you know !
ah but there is a small problem

my matrix1 =[[rho00 rho01 rho02 rho03 rho04 rho05 rho06 rho07]
 [rho10 rho11 rho12 rho13 rho14 rho15 rho16 rho17]
 [rho20 rho21 rho22 rho23 rho24 rho25 rho26 rho27]
 [rho30 rho31 rho32 rho33 rho34 rho35 rho36 rho37]
 [rho40 rho41 rho42 rho43 rho44 rho45 rho46 rho47]
 [rho50 rho51 rho52 rho53 rho54 rho55 rho56 rho57]
 [rho60 rho61 rho62 rho63 rho64 rho65 rho66 rho67]
 [rho70 rho71 rho72 rho73 rho74 rho75 rho76 rho77]]
and I am multiplying this matrix with a real matrix and then I am actually getting this:
[[1.0*rho00 1.0*rho01 1.0*rho02 1.0*rho03 1.0*rho04 1.0*rho05 1.0*rho07
  1.0*rho06]
 [1.0*rho10 1.0*rho11 1.0*rho12 1.0*rho13 1.0*rho14 1.0*rho15 1.0*rho17
  1.0*rho16]
 [1.0*rho20 1.0*rho21 1.0*rho22 1.0*rho23 1.0*rho24 1.0*rho25 1.0*rho27
  1.0*rho26]
 [1.0*rho30 1.0*rho31 1.0*rho32 1.0*rho33 1.0*rho34 1.0*rho35 1.0*rho37
  1.0*rho36]
 [1.0*rho40 1.0*rho41 1.0*rho42 1.0*rho43 1.0*rho44 1.0*rho45 1.0*rho47
  1.0*rho46]
 [1.0*rho50 1.0*rho51 1.0*rho52 1.0*rho53 1.0*rho54 1.0*rho55 1.0*rho57
  1.0*rho56]
 [1.0*rho70 1.0*rho71 1.0*rho72 1.0*rho73 1.0*rho74 1.0*rho75 1.0*rho77
  1.0*rho76]
 [1.0*rho60 1.0*rho61 1.0*rho62 1.0*rho63 1.0*rho64 1.0*rho65 1.0*rho67
  1.0*rho66]]
instead of getting directly this:

[[rho00 rho01 rho02 rho03 rho04 rho05 rho07 rho06]
 [rho10 rho11 rho12 rho13 rho14 rho15 rho17 rho16]
 [rho20 rho21 rho22 rho23 rho24 rho25 rho27 rho26]
 [rho30 rho31 rho32 rho33 rho34 rho35 rho37 rho36]
 [rho40 rho41 rho42 rho43 rho44 rho45 rho47 rho46]
 [rho50 rho51 rho52 rho53 rho54 rho55 rho57 rho56]
 [rho70 rho71 rho72 rho73 rho74 rho75 rho77 rho76]
 [rho60 rho61 rho62 rho63 rho64 rho65 rho67 rho66]]
SO now it is a bit more complicated since 1*rho00 is not equal rho00 in terms of walking the matrixes by for loop
idk what can I do now.. I am checking your link but still I am confused
Reply


Messages In This Thread
Write the Matrix2 by using Matrix1 - by quest - Jan-19-2022, 12:20 PM
RE: Write the Matrix2 by using Matrix1 - by quest - Jan-19-2022, 11:43 PM
RE: Write the Matrix2 by using Matrix1 - by quest - Jan-20-2022, 08:20 AM
RE: Write the Matrix2 by using Matrix1 - by quest - Jan-20-2022, 11:37 AM
RE: Write the Matrix2 by using Matrix1 - by quest - Jan-20-2022, 11:54 AM
RE: Write the Matrix2 by using Matrix1 - by quest - Jan-20-2022, 12:29 PM
RE: Write the Matrix2 by using Matrix1 - by quest - Jan-20-2022, 11:18 PM
RE: Write the Matrix2 by using Matrix1 - by quest - Jan-20-2022, 11:58 PM
RE: Write the Matrix2 by using Matrix1 - by quest - Jan-22-2022, 12:41 AM
RE: Write the Matrix2 by using Matrix1 - by quest - Jan-23-2022, 11:57 PM
RE: Write the Matrix2 by using Matrix1 - by quest - Jan-24-2022, 01:07 AM

Forum Jump:

User Panel Messages

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