Matrix-Matrix Multiply
In the following tables, matrix A represents the quantities of the materials P and Q to produce products M and N. Matrix B represents the prices of the materials P and Q of the suppliers C1 and C2.
In this case, the first row of the second column of AB, aq + bs, represents the total cost of the producing product A.
Product\Resource |
|
| ||||||
|
|
| ||||||
|
|
|
...
Resource\Company
...
No Format |
---|
}}} C1 {{{ |
...
No Format |
---|
}}} C2 {{{ |
...
No Format |
---|
}}} P {{{ |
...
No Format |
---|
}}} p {{{ |
...
No Format |
---|
}}} q {{{ |
...
No Format |
---|
}}} Q {{{ |
...
No Format |
---|
}}} r {{{ |
...
- See how to multiply matrices using Map/Reduce