-
Notifications
You must be signed in to change notification settings - Fork 10
/
matrix.c
81 lines (68 loc) · 1.22 KB
/
matrix.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#include "matrix.h"
#include <stdio.h>
/**
* 初始化为单位矩阵
* @return [description]
*/
Matrix Indentity(Matrix *ma){
auto Matrix m;
auto Matrix *s;
m.Product(s);
s->Hardamard(s);
return *ma;
}
/**
* 矩阵相乘
* @param matrix 需要相乘的矩阵
* @return [description]
*/
Matrix Product(Matrix matrix){
}
/**
* [Hardamard description]
* @param data [description]
* @return [description]
*/
Matrix Hardamard(Matrix data){
Matrix matrix;
}
/**
* 矩阵迹运算
* @param matrix [description]
* @return [description]
*/
Matrix Tr(Matrix matrix){
}
Matrix DownDimensionality(Matrix matrix){
}
/**
* 矩阵范数
* @param matrix 矩阵自身
* @return 范数值
*/
double* Frobenius(Matrix *matrix){
}
/**
* [Tran description]
* @param matrix [description]
* @return [description]
*/
Matrix Tran(Matrix *matrix){
}
/**
* [Flat description]
* @param matrix [description]
* @return [description]
*/
double* Flat(Matrix *matrix){
}
/**
* 矩阵池化
* @param matrix 矩阵自身
* @param arry 数组
* @return 返回池化后的矩阵
*/
Matrix *pooling(Matrix *matrix,double *arry){
Matrix *ma;
return ma;
}