Skip to content

Commit 3208fea

Browse files
committed
NEW
1 parent 449f7c2 commit 3208fea

File tree

15 files changed

+1265
-17
lines changed

15 files changed

+1265
-17
lines changed

src/pkg/MatPly_Dart/docs/API/Dart/global_methods.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,17 @@
1414

1515
## set_seed
1616
设置随机种子
17+
18+
## initMp[new from V1.0.2]
19+
在打算创建矩阵实例之前,可以通过无参数传入声明这是一个开端,此处毫无作用,仅仅为了规范;如果创建了第一个矩阵实例,则可以选择性传入这个矩阵的self值,此值将作为链表的头结点
20+
> 关于Mp的实现,它的底层是一个简单的链表结构,同时记录存储了多少个Pointer<Pointer<Matrix>>?(因为创建失败返回空指针的也算)。凡涉及到__new__方法的创建,都会触发Signal信号,添加节点到Mp
21+
22+
## Signal[new from V1.0.2]
23+
手动添加新节点,不建议在开发中使用
24+
25+
## getInstances[new from V1.0.2]
26+
获取存储矩阵的self个数,也就是创建了多少个矩阵实例
27+
28+
## freeMp[new from V1.0.2]
29+
统一释放内存,防止内存泄漏
30+

src/pkg/MatPly_Dart/docs/API/Dart/methods.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
查看矩阵有哪些特殊属性
88

99
## row_ | column_
10-
获取矩阵的某行(列),调用该函数时,同时也可以声明Pointer或者List两种类型,表明要获取哪种类型,不声明会按照list类型返回,建议是不声明。
10+
获取矩阵的某行(列),调用该函数时,同时也可以声明Pointer或者List两种类型(不声明按照List类型处理),表明要获取哪种类型,不声明会按照list类型返回,建议是不声明。
1111

1212
## at
1313
获取指定位置的数据
@@ -116,4 +116,36 @@ dim=0时,按行排序;dim=1,按列排序;dim为其他整数则整体排
116116
## setMask
117117
设置矩阵nan和正负无穷大数据的替换值,会改变矩阵本身。
118118

119+
## toList[new from V1.0.2]
120+
根据传入的类型,返回对应形状的二维列表。对于泊松分布这样的数据非常有用。
121+
122+
## std[new from V1.0.2]
123+
求解标准差,如果设置sample为true,则视为样本标准差
124+
125+
## variance[new from V1.0.2]
126+
求解方差,,如果设置sample为true,则视为样本标准方差
127+
128+
## median[new from V1.0.2]
129+
求解中位数
130+
131+
## norm[new from V1.0.2]
132+
求解矩阵范数。如果n==-2,则返回矩阵的负无穷范数;如果n==-1,则返回矩阵的正无穷范数;如果设置n==1,则返回矩阵的L1范数,如果n==0或者其他不小于2的正整数,则返回范数(包含行列向量的范数模型、矩阵范数模式),注意这里L0范数是一个整数返回值
133+
134+
## norm2[new from V1.0.2]
135+
L2范数。即欧氏距离
136+
137+
## norm_inf[new from V1.0.2]
138+
矩阵的正无穷范数
139+
140+
## norm_negainf[new from V1.0.2]
141+
矩阵的负无穷范数
142+
143+
## norm_one[new from V1.0.2]
144+
矩阵的L1范数
145+
146+
## norm_zero[new from V1.0.2]
147+
L0范数
148+
149+
## mode[new from V1.0.2]
150+
求解众数(此方法没有基于C-API)
119151

src/pkg/MatPly_Dart/mkdocs.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ nav:
77
- Guide:
88
- 指南: Guide/getting-started.md
99
- API Reference:
10-
- Dart版本的实现 : API/Dart/index.md
11-
- 构造函数: API/Dart/constructor.md
12-
- 属性: API/Dart/properties.md
13-
- 方法: API/Dart/methods.md
14-
- 重载操作: API/Dart/operators.md
15-
- 全局设置: API/Dart/global_methods.md
10+
- Dart API:
11+
- Dart版本的实现: API/Dart/index.md
12+
- 构造函数: API/Dart/constructor.md
13+
- 属性: API/Dart/properties.md
14+
- 方法: API/Dart/methods.md
15+
- 重载操作: API/Dart/operators.md
16+
- 全局设置: API/Dart/global_methods.md

0 commit comments

Comments
 (0)