当前位置:网站首页>C language for calculating the product of two matrices
C language for calculating the product of two matrices
2022-07-07 08:52:00 【Please Sit Down】
int main(){
int a[3][2]={2,-1,-4,0,3,1},b[2][2]={7,-9,-8,10};
int i,j,k,s,c[3][2];
for(i=0;i<3;i++){
for(j=0;j<2;j++){
for(k=s=0;k<2;k++) s+=a[i][k]*b[k][j];
c[i][j]=s;
}
}
for(i=0;i<3;i++){
for(j=0;j<2;j++) printf("%5d",c[i][j]);
printf("\n");
}
return 0;
}
边栏推荐
- oracle一次性说清楚,多种分隔符的一个字段拆分多行,再多行多列多种分隔符拆多行,最终处理超亿亿。。亿级别数据量
- 【踩坑】nacos注册一直连接localhost:8848,no available server
- 平台化,强链补链的一个支点
- Greenplum6.x监控软件搭建
- RuntimeError: Calculated padded input size per channel: (1 x 1). Kernel size: (5 x 5). Kernel size c
- 快速集成认证服务-HarmonyOS平台
- [Chongqing Guangdong education] audio visual language reference materials of Xinyang Normal University
- 求有符号数的原码、反码和补码【C语言】
- leetcode134. gas station
- Tips for using jeditabletable
猜你喜欢

Count sort (diagram)

NCS Chengdu New Electric interview Experience
![FPGA knowledge accumulation [6]](/img/db/c3721c3e842ddf4c1088a3f54e9f2a.jpg)
FPGA knowledge accumulation [6]

IP地址的类别

PPT模板、素材下载网站(纯干货,建议收藏)

Lenovo hybrid cloud Lenovo xcloud: 4 major product lines +it service portal

Introduction to data fragmentation
![[MySQL] detailed explanation of trigger content of database advanced](/img/6c/8aad649e4ba1160db3aea857ecf4a1.png)
[MySQL] detailed explanation of trigger content of database advanced

LeetCode 736. Lisp 语法解析

LeetCode 715. Range module
随机推荐
Markdown editor Use of MD plug-in
Greenplum6.x重新初始化
Data analysis methodology and previous experience summary 2 [notes dry goods]
模拟卷Leetcode【普通】1706. 球会落何处
登山小分队(dfs)
POJ - 3784 running medium
Qt Charts使用(重写QChartView,实现一些自定义功能)
JS的操作
How to add a mask of a target in a picture
Problems encountered in the use of go micro
数据分片介绍
LeetCode 715. Range module
idea里使用module项目的一个bug
Three series of BOM elements
数字三角形模型 AcWing 275. 传纸条
平台化,强链补链的一个支点
数据分析方法论与前人经验总结2【笔记干货】
详解华为应用市场2022年逐步减少32位包体上架应用和策略
模拟卷Leetcode【普通】1705. 吃苹果的最大数目
Greenplum6.x搭建_安装