高斯消去法的可并行性 高斯消元法并行化.docVIP

  • 90
  • 0
  • 约7.5千字
  • 约 25页
  • 2018-07-10 发布于江西
  • 举报

高斯消去法的可并行性 高斯消元法并行化.doc

高斯消去法的可并行性 高斯消元法并行化.doc

高斯消去法的可并行性 高斯消元法并行化 导读:就爱阅读网友为您分享以下“高斯消元法并行化”资讯,希望对您有所帮助,感谢您对92的支持! #include lt;stdio.hgt; #include lt;math.hgt; #include lt;stdlib.hgt; #include lt;iostreamgt; #include lt;time.hgt; void main() { int i,j,k,n,l,h,flag; float a[100][100],b[100],m[100][100],x[100],y[100],z[100],c[100],d,t; srand((unsigned) time(NULL)); printf(“Input n:\n”); scanf(“%d”,n); printf(“input a[i][j]:\n”); for (i=0;ilt;n;i++) { for (j=0;jlt;n;j++) { a[i][j]=rand(); } } printf(“input b[i]:\n”); for (i=0;ilt;n;i++) { b[i]=rand(); } /*******运算过程*******/ flag=1; for (k=0;klt;n;k++) { /*---选主元素-

文档评论(0)

1亿VIP精品文档

相关文档