Skip to content

Commit 732f643

Browse files
committed
fix index.html
1 parent 50f8436 commit 732f643

File tree

4 files changed

+97
-141
lines changed

4 files changed

+97
-141
lines changed

_coverpage.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
<!--_coverpage.md-->
2-
3-
<p align="center">
4-
<img src="./images/profile.jpg" style="max-width: 200px; width: 100%">
5-
</p>
6-
7-
# 闹闹 <small>3.5</small>
8-
9-
# 一个正在慢慢整理迭代的个人知识库
10-
11-
码坛皮条客 | 团队背锅侠 | AI绝缘体 | BUG收割机
12-
13-
领导难以启齿的过去 | 同事不堪回首的曾经 | 产品挥之不去的噩梦 | 测试心里永远无法抹去的痛
14-
15-
[GitHub](https://github.com/naonao-cola)
16-
[Get Started](README.md)
1+
<!--_coverpage.md-->
2+
3+
<p align="center">
4+
<img src="./images/profile.jpg" style="max-width: 200px; width: 100%">
5+
</p>
6+
7+
# 闹闹 <small>3.5</small>
8+
9+
# 一个正在慢慢整理迭代的个人知识库
10+
11+
码坛皮条客 | 团队背锅侠 | AI绝缘体 | BUG收割机
12+
13+
领导难以启齿的过去 | 同事不堪回首的曾经 | 产品挥之不去的噩梦 | 测试心里永远无法抹去的痛
14+
15+
[GitHub](https://github.com/naonao-cola)
16+
[Get Started](README.md)

cxx/nvidia.md

+45-45
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
## 常用命令
2-
3-
```bash
4-
//代码简单时,编译器会进行优化
5-
nvprof --metrics branch_efficiency
6-
7-
// 每个SM在每个cycle能够达到的最大active warp数目占总warp的比例
8-
nvprof --metrics achieved_occupancy
9-
10-
//带宽 全局内存加载事务数
11-
nvprof --metrics gld_throughput
12-
13-
//带宽比值
14-
nvprof --metrics gld_efficiency
15-
16-
17-
nvprof --metrics gst_efficiency
18-
19-
//每个warp上执行的指令数目的平均值
20-
nvprof --metrics inst_per_warp
21-
22-
//同一个thread中如果能有更多的独立的load/store操作
23-
nvprof --metrics dram_read_throughput
24-
25-
26-
//用来验证由于__syncthreads导致更少的warp
27-
nvprof --metrics stall_sync
28-
29-
//图表
30-
nvvp
31-
32-
//设备 主机 调用情况
33-
nvprof
34-
35-
//
36-
nvprof --devices 0 --metrics gld_efficiency
37-
38-
//全局内存存储事务数
39-
nvprof --devices 0 --metrics gld_efficiency --metrics gst_efficiency
40-
41-
nvprof --devices 0 --metrics gld_efficiency,gst_efficiency
42-
43-
//功能被转移到ncu了
44-
ncu --metrics
45-
```
1+
## 常用命令
2+
3+
```bash
4+
//代码简单时,编译器会进行优化
5+
nvprof --metrics branch_efficiency
6+
7+
// 每个SM在每个cycle能够达到的最大active warp数目占总warp的比例
8+
nvprof --metrics achieved_occupancy
9+
10+
//带宽 全局内存加载事务数
11+
nvprof --metrics gld_throughput
12+
13+
//带宽比值
14+
nvprof --metrics gld_efficiency
15+
16+
17+
nvprof --metrics gst_efficiency
18+
19+
//每个warp上执行的指令数目的平均值
20+
nvprof --metrics inst_per_warp
21+
22+
//同一个thread中如果能有更多的独立的load/store操作
23+
nvprof --metrics dram_read_throughput
24+
25+
26+
//用来验证由于__syncthreads导致更少的warp
27+
nvprof --metrics stall_sync
28+
29+
//图表
30+
nvvp
31+
32+
//设备 主机 调用情况
33+
nvprof
34+
35+
//
36+
nvprof --devices 0 --metrics gld_efficiency
37+
38+
//全局内存存储事务数
39+
nvprof --devices 0 --metrics gld_efficiency --metrics gst_efficiency
40+
41+
nvprof --devices 0 --metrics gld_efficiency,gst_efficiency
42+
43+
//功能被转移到ncu了
44+
ncu --metrics
45+
```

index.html

+17-17
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
window.$docsify = {
2222
name: 'Blog',
2323
repo: 'https://github.com/naonao-cola',
24-
el: '#app',
24+
el: '#app',
2525
loadNavbar: true, // 默认加载 _navbar.md,作为顶部导航栏
2626
loadSidebar: true,
2727
// 开启目录,最大层级为2
@@ -98,7 +98,7 @@
9898
logo: '🔝', // logo:字符串或svg矢量图代码,默认为svg代码图标。
9999
bgColor: '#2096ff' // 背景颜色,#fff、pink等,logo为svg图标时,不填。
100100
},
101-
giscus: {
101+
giscus: {
102102
repo: "SeaHI-Robot/docsify_template",
103103
repoId: "R_kgDOKG_QPQ",
104104
category: "Announcements",
@@ -114,23 +114,23 @@
114114
},
115115
markdown: {
116116
renderer: {
117-
image: function(href, title, text) {
118-
// 按照原来的渲染 img
119-
var image_html = this.origin.image.apply(this, arguments)
120-
// 用 figure 包一下图片,实现居中
121-
return '<figure>' + image_html + '<figcaption>' + text +
122-
'</figcaption></figure>'
123-
}
117+
image: function (href, title, text) {
118+
// 按照原来的渲染 img
119+
var image_html = this.origin.image.apply(this, arguments)
120+
// 用 figure 包一下图片,实现居中
121+
return '<figure>' + image_html + '<figcaption>' + text +
122+
'</figcaption></figure>'
123+
}
124124
}
125-
}
125+
}
126126
}
127127
</script>
128-
<style>
129-
figure {
130-
text-align: center
131-
}
132-
</style>
133-
128+
<style>
129+
figure {
130+
text-align: center
131+
}
132+
</style>
133+
134134
<!-- Docsify v4 -->
135135
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
136136

@@ -194,4 +194,4 @@
194194

195195
</body>
196196

197-
</html>
197+
</html>

math/math.md

+19-63
Original file line numberDiff line numberDiff line change
@@ -37,29 +37,16 @@ double s4 = 0.5 * std::abs(cv::determinant(m4));
3737
A为n阶矩阵,若数λ和n维非0列向量x满足Ax=λx,那么数λ称为A的特征值,x称为A的对应于特征值λ的特征向量。式Ax=λx也可写成( A-λE)x=0,并且|λE-A|叫做A 的特征多项式。当特征多项式等于0的时候,称为A的特征方程,特征方程是一个齐次线性方程组,求解特征值的过程其实就是求解特征方程的解。
3838
3939
40-
<p align="center">
41-
<img src="../images/mat_1.png" width=100%/>
42-
</p>
43-
44-
4540
![](../images/mat_1.png)
4641
42+
![](../images/mat_2.png)
4743
48-
<p align="center">
49-
<img src="../images/mat_2.png" style="max-width: 800px; width: 100%">
50-
</p>
5144
45+
![](../images/mat_3.png)
5246
5347
54-
<p align="center">
55-
<img src="../images/mat_3.png" style="max-width: 300px; width: 100%">
56-
</p>
57-
5848
计算A的特征值与特征向量
5949
60-
61-
62-
6350
```c++
6451
//https://blog.csdn.net/weixin_46537710/article/details/106337476
6552
Mat src;
@@ -71,95 +58,64 @@ eigen(src, eValuesMat, eVectorsMat);//通过openCV中eigen函数得到特征值
7158
求出特征值和特征向量有什么好处呢? 就是我们可以将矩阵A特征分解。如果我们求出了矩阵A的n个特征值 ,以及这n个特征值所对应的特征向量。那么矩阵A就可以用下式的特征分解表示:
7259

7360

74-
75-
<p align="center">
76-
<img src="../images/mat_5.png" style="max-width: 600px; width: 100%">
77-
</p>
61+
![](../images/mat_5.png)
7862

7963
其中W是这n个特征向量所张成的n×n维矩阵,而Σ为这n个特征值为主对角线的n×n维矩阵。要进行特征分解,矩阵A必须为方阵。
8064

8165
### 矩阵分解
8266
#### svd分解
8367
SVD也是对矩阵进行分解,但是和特征分解不同,SVD并不要求要分解的矩阵为方阵。假设我们的矩阵A是一个m×n的矩阵,那么我们定义矩阵A的SVD为:
8468

85-
86-
87-
<p align="center">
88-
<img src="../images/mat_6.png" style="max-width: 600px; width: 100%">
89-
</p>
90-
69+
![](../images/mat_6.png)
9170

9271
其中U是一个m * m的矩阵, 中间的是一个m * n的矩阵,除了主对角线上的元素以外全为0,主对角线上的每个元素都称为奇异值, V是一个 n*n的矩阵。 U和V都是酉矩阵,即满足它的共轭转置与自身相乘等于单位矩阵。酉矩阵是满秩的,每一列都是单位向量,其每两列都是正交的。这类矩阵性质非常好。
93-
<p align="center">
94-
<img src="../images/mat_7.png" style="max-width: 800px; width: 100%">
95-
</p>
9672

97-
<p align="center">
98-
<img src="../images/mat_8.png" style="max-width: 800px; width: 100%">
99-
</p>
73+
![](../images/mat_7.png)
10074

75+
![](../images/mat_8.png)
10176

10277
对于奇异值,它跟我们特征分解中的特征值类似,在奇异值矩阵中也是按照从大到小排列,而且奇异值的减少特别的快,在很多情况下,前10%甚至1%的奇异值的和就占了全部的奇异值之和的99%以上的比例。也就是说,我们也可以用最大的k个的奇异值和对应的左右奇异向量来近似描述矩阵。
10378

104-
105-
<p align="center">
106-
<img src="../images/mat_9.png" style="max-width: 600px; width: 100%">
107-
</p>
79+
![](../images/mat_9.png)
10880

10981
如下图所示,现在我们的矩阵A只需要灰色的部分的三个小矩阵就可以近似描述了。
11082

111-
<p align="center">
112-
<img src="../images/mat_10.png" style="max-width: 800px; width: 100%">
113-
</p>
114-
<p align="center">
115-
<img src="../images/mat_11.png" style="max-width: 800px; width: 100%">
116-
</p>
83+
![](../images/mat_10.png)
84+
85+
![](../images/mat_11.png)
11786

11887

11988
#### QR分解
12089

12190

12291
## 二维变化
12392

124-
<p align="center">
125-
<img src="../images/rotate.jpg" style="max-width: 800px; width: 100%">
126-
</p>
93+
![](../images/rotate.jpg)
94+
95+
![](../images/rotate_1.png)
12796

128-
<p align="center">
129-
<img src="../images/rotate_1.png" style="max-width: 1000px; width: 100%">
130-
</p>
13197

13298
## 三维空间中的旋转变换
13399

134100
绕Z轴旋转
135101

136-
<p align="center">
137-
<img src="../images/rotate_2.jpg" style="max-width: 800px; width: 100%">
138-
</p>
102+
![](../images/rotate_2.jpg)
139103

140104
绕X轴旋转
141105

142-
<p align="center">
143-
<img src="../images/rotate_3.jpg" style="max-width: 800px; width: 100%">
144-
</p>
106+
![](../images/rotate_3.jpg)
145107

146108
绕Y轴旋转
147109

148-
<p align="center">
149-
<img src="../images/rotate_4.jpg" style="max-width: 800px; width: 100%">
150-
</p>
110+
![](../images/rotate_4.jpg)
151111

152112
绕任意轴旋转的公式:给定具有单位长的
153-
<p align="center">
154-
<img src="../images/rotate_6.jpg" style="max-width: 800px; width: 100%">
155-
</p>
156113

157-
则物体绕OA轴旋转变换的矩阵表示可确定如下:
114+
![](../images/rotate_6.jpg)
158115

159-
<p align="center">
160-
<img src="../images/rotate_5.jpg" style="max-width: 800px; width: 100%">
161-
</p>
116+
则物体绕OA轴旋转变换的矩阵表示可确定如下:
162117

118+
![](../images/rotate_5.jpg)
163119

164120

165121
### 根据对应的三维点估计刚体变换的旋转平移矩阵

0 commit comments

Comments
 (0)