Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: removing old data

Abstract definition of matrix multiplication

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

No Format
       }}} P {{{       
No Format
       }}} Q {{{       
No Format
       }}} M {{{          
No Format
       }}} a {{{       
No Format
       }}} b {{{       
No Format
       }}} N {{{          
No Format
       }}} c {{{       
No Format
       }}} d {{{       

Resource\Company

No Format
       }}} C1 {{{       
No Format
       }}} C2 {{{       
No Format
       }}} P {{{       
No Format
       }}} p {{{       
No Format
       }}} q {{{       
No Format
       }}} Q {{{       
No Format
       }}} r {{{       
No Format
       }}} s {{{       

Blocking for parallelism

Square blocking

The matrix multiplication of the original arrays can be transformed into matrix multiplication of blocks. For example,

C_block(1,1)=A_block(1,1)*B_block(1,1) + A_block(1,2)*B_block(2,1)

...