文件名称:cannon
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 2kb
- 下载次数:
- 0次
- 提 供 者:
- 刘*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
cannon 并行程序
Matrix multiplication with the Cannon Algorithm:
The matrices A and B are stored in files. The file names have to be specified as parameter. The root
process reads the matrices and distributes the respective values to all processes, so that processor i, j
has the values ai,j and bi,j.-Matrix multiplication with the Cannon Algorithm:
The Cannon Algorithm for matrix multiplication was presented in the course “Parallel and Distributed
Algorithms “by Dr. Klauck.
Short descr iption:
The matrices A and B are stored in files. The file names have to be specified as parameter. The root
process reads the matrices and distributes the respective values to all processes, so that processor i, j
has the values ai,j and bi,j. Matrix C = A · B should be calculated as follows:
1. step: Shift values so that processor i, j has values ai,(i+j)mod
√
p and b(i+j)mod
√
p,j.
2. step: ci,j = ai,j · bi,j
3. step: Shift values of matrix A left (i → i − 1) and values of matrix B up (j → j − 1).
Matrix multiplication with the Cannon Algorithm:
The matrices A and B are stored in files. The file names have to be specified as parameter. The root
process reads the matrices and distributes the respective values to all processes, so that processor i, j
has the values ai,j and bi,j.-Matrix multiplication with the Cannon Algorithm:
The Cannon Algorithm for matrix multiplication was presented in the course “Parallel and Distributed
Algorithms “by Dr. Klauck.
Short descr iption:
The matrices A and B are stored in files. The file names have to be specified as parameter. The root
process reads the matrices and distributes the respective values to all processes, so that processor i, j
has the values ai,j and bi,j. Matrix C = A · B should be calculated as follows:
1. step: Shift values so that processor i, j has values ai,(i+j)mod
√
p and b(i+j)mod
√
p,j.
2. step: ci,j = ai,j · bi,j
3. step: Shift values of matrix A left (i → i − 1) and values of matrix B up (j → j − 1).
相关搜索: cannon
(系统自动生成,下载前可以参看下载内容)
下载文件列表
cannon.c