Message Boards Message Boards

0
|
2119 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Finding linear mapping between two matrices

Posted 2 years ago

Hello, I recently started to use Mathematica and I wonder if we have a method to find linear mapping between two matrices in Mathematica. For example: If I have those 2 matrices:

enter image description here enter image description here

Then, I will have this linear mapping as matrix:

enter image description here

This is the simplest case. I have matrices with different coefficients and higher dimensions like 16*16.. This is why I wonder if we have a method in Mathematica which can do that.. Or how can I do this map in Mathematica?

Thanks in advance.

POSTED BY: Gozde USTUN
2 Replies

For the example given, there are four equations, and 16 variables. So you will need to constrain the problem more if you want a unique solution.

If you treated it as a transformation using a 2 x 2 matrix, it could be done like so.

amat = Array[a, {2, 2}];
romat = Array[rho, {2, 2}, 0];
Solve[amat . 
   romat == {{rho[1, 1], rho[1, 0]}, {rho[0, 1], rho[0, 0]}}, 
 Flatten[amat]]

(* Out[11]= {{a[1, 1] -> -((-rho[1, 0]^2 + rho[1, 1]^2)/(
    rho[0, 1] rho[1, 0] - rho[0, 0] rho[1, 1])), 
  a[1, 2] -> -((rho[0, 0] rho[1, 0] - rho[0, 1] rho[1, 1])/(
    rho[0, 1] rho[1, 0] - rho[0, 0] rho[1, 1])), 
  a[2, 1] -> -((-rho[0, 0] rho[1, 0] + rho[0, 1] rho[1, 1])/(
    rho[0, 1] rho[1, 0] - rho[0, 0] rho[1, 1])), 
  a[2, 2] -> -((rho[0, 0]^2 - rho[0, 1]^2)/(
    rho[0, 1] rho[1, 0] - rho[0, 0] rho[1, 1]))}}*)
POSTED BY: Daniel Lichtblau
Posted 2 years ago

Thanks!

POSTED BY: Gozde USTUN
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract