提交 1bb59848 编写于 作者: sahduashufa's avatar sahduashufa

new_readme

上级 9c05cea6
无法预览此类型文件
......@@ -16,25 +16,22 @@ Edge : 一个开源的科学计算引擎
axis=0 :
![](./picture/apply_axis_0.png)
| 0 | 7 | 2 |
| ---- | ---- | ---- |
| 0 | 3 | 1 |
| 0 | 0 | 0 |
| 0 | 0 | 11 |
| 0 | 7 | 2 |
| 0 | 3 | 1 |
| 0 | 0 | 0 |
| 0 | 0 | 11 |
axis = 1:
0.268941
|9||0||2||0||0||0|🏃
|0||8||1||0||0||0|🏃
|0||0||0||7||0||0|🏃
|0||0||0||2||0||0|🏃
|0||0||0||4||0||0|🏃
|9||0||2||0||0||0|🏃
|0||8||1||0||0||0|🏃
|0||0||0||7||0||0|🏃
|0||0||0||2||0||0|🏃
|0||0||0||4||0||0|🏃
![](./picture/apply_axis_1.png)
| 0 | 7 | 2 | 0 | 7 | 2 |
| ---- | ---- | ---- | ---- | ---- | ---- |
| 0 | 3 | 1 | 0 | 3 | 1 |
| 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 11 | 0 | 0 | 11 |
------
......
无法预览此类型文件
......@@ -27,26 +27,26 @@ int main()
cout<<"-----------split line-----------"<<endl;
welcome();
Matrix a = CreateMatrix(5,6);
Matrix a = CreateMatrix(4,3);
double a_ = e_sigmoid(1);
cout<<a_<<endl;
change_va(a,1,2,1);
change_va(a,2,3,7);
change_va(a,3,3,2);
change_va(a,4,3,4);
change_va(a,0,0,9);
change_va(a,0,1,7);
change_va(a,0,2,2);
change_va(a,1,1,8);
change_va(a,1,1,3);
change_va(a,3,2,11);
start = clock();
Matrix applyed_ma = appply(a,a,0);
Matrix applyed_ma = appply(a,a,1);
for(int index_x = 0;index_x<applyed_ma.row;index_x++)
{
cout<<"|";
for(int index_y=0;index_y<applyed_ma.col;index_y++)
{
cout<<"|"<<applyed_ma.matrix[index_x][index_y]<<"|";
cout<<applyed_ma.matrix[index_x][index_y]<<"|";
}
cout<<"🏃"<<endl;
cout<<endl;
}
cout<<"matrix sum: "<<matrix_sum(a)<<endl;
cout<<"matrix mean: "<<matrix_mean(a)<<endl;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册