-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
296 lines (189 loc) · 10.6 KB
/
index.html
File metadata and controls
296 lines (189 loc) · 10.6 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta name="google-site-verification" content="yxm4bamDfA8U9v3EKssUOEknTemP8kjtt_2zi7f9Eok" />
<meta name="msvalidate.01" content="13E00DA97ECD5CAB67DBA892F203C401" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Ruichen Ni's Blog</title>
<meta name="viewport" content="width=device-width,minimum-scale=1">
<meta name="description" content="A personal profile for Ruichen Ni (倪锐晨), a PhD graduate from Aerospace School of Tsinghua University and majors in computational mechanics.">
<meta name="generator" content="Hugo 0.147.7">
<meta name="robots" content="index, follow">
<meta name="author" content="Ruichen Ni">
<link rel="stylesheet" href="/ananke/css/main.min.8d048772ae72ab11245a0e296d1f2a36d3e3dd376c6c867394d6cc659c68fc37.css" >
<link rel="shortcut icon" href="/favicons/favicon.ico" type="image/x-icon" />
<link href="/index.xml" rel="alternate" type="application/rss+xml" title="Ruichen Ni's Blog" />
<link href="/index.xml" rel="feed" type="application/rss+xml" title="Ruichen Ni's Blog" />
<link rel="canonical" href="https://thueishin.github.io/">
<meta property="og:url" content="https://thueishin.github.io/">
<meta property="og:site_name" content="Ruichen Ni's Blog">
<meta property="og:title" content="Ruichen Ni's Blog">
<meta property="og:description" content="A personal profile for Ruichen Ni (倪锐晨), a PhD graduate from Aerospace School of Tsinghua University and majors in computational mechanics.">
<meta property="og:locale" content="en_us">
<meta property="og:type" content="website">
<meta itemprop="name" content="Ruichen Ni's Blog">
<meta itemprop="description" content="A personal profile for Ruichen Ni (倪锐晨), a PhD graduate from Aerospace School of Tsinghua University and majors in computational mechanics.">
<meta itemprop="datePublished" content="2025-06-14T20:25:12+08:00">
<meta itemprop="dateModified" content="2025-06-14T20:25:12+08:00">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Ruichen Ni's Blog">
<meta name="twitter:description" content="A personal profile for Ruichen Ni (倪锐晨), a PhD graduate from Aerospace School of Tsinghua University and majors in computational mechanics.">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js"
onload="renderMathInElement(document.body, {
delimiters: [
{left: '$$', right: '$$', display: true},
{left: '\\(', right: '\\)', display: false}
],
throwOnError: false
});">
</script>
<script src="/js/copy-code.js" defer></script>
<link rel="stylesheet" href="/css/custom.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.4/css/lightbox.min.css" rel="stylesheet">
</head><body class="ma0 avenir bg-near-white production">
<header>
<div class="pb3-m pb6-l bg-black">
<nav class="pv3 ph3 ph4-ns" role="navigation">
<div class="flex-l center items-center justify-between">
<a href="/" class="f3 fw2 hover-white white-90 dib no-underline">
Ruichen Ni's Blog
</a>
<div class="flex-l items-center">
<ul class="pl0 mr3">
<li class="list f5 f4-ns fw4 dib pr3">
<a class="hover-white white-90 no-underline" href="/" title="Home page">
Home
</a>
</li>
<li class="list f5 f4-ns fw4 dib pr3">
<a class="hover-white white-90 no-underline" href="/about/" title="About page">
About
</a>
</li>
<li class="list f5 f4-ns fw4 dib pr3">
<a class="hover-white white-90 no-underline" href="/post/" title="Archive page">
Archive
</a>
</li>
<li class="list f5 f4-ns fw4 dib pr3">
<a class="hover-white white-90 no-underline" href="/gallery/" title="Gallery page">
Gallery
</a>
</li>
<li class="list f5 f4-ns fw4 dib pr3">
<a class="hover-white white-90 no-underline" href="/tags/" title="Tags page">
Tags
</a>
</li>
</ul>
<div class="ananke-socials"></div>
</div>
</div>
</nav>
<div class="tc-l pv3 ph3 ph4-ns">
<h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">
Ruichen Ni's Blog
</h1>
</div>
</div>
</header>
<main class="pb7" role="main">
<article class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy nested-links mid-gray">
</article>
<div class="pa3 pa4-ns w-100 w-70-ns center">
<section class="w-100 mw8">
<div class="w-100 mb4 relative">
<article class="bb b--black-10">
<div class="db pv4 ph3 ph0-l dark-gray no-underline">
<div class="flex-column flex-row-ns flex">
<div class="blah w-100">
<h1 class="f3 fw1 athelas mt0 lh-title">
<a href="/post/%E6%96%87%E6%9C%AC%E5%87%BD%E6%95%B0%E8%A7%A3%E6%9E%90%E6%A0%91%E7%AE%97%E6%B3%95/" class="color-inherit dim link">
文本函数解析树算法
</a>
</h1>
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links">
这是我博士课题中的一个小算法,用于解析形如 \( f(X,Y,Z) \) 以空间坐标为变量的文本函数并进行表达式计算。当时的目的是为了能够统一地设置流场的初始状态,由于流场的初始状态的界面往往可以通过解析函数来表示,因此设计了以空间坐标 \( (X,Y,Z) \) 为变量的函数表达式解析。通过文本函数解析避免了初始状态文件的导出,并且在后续做多相流的时候还可以拿来计算相应的初始体积分数。
</div>
<p class="f6 lh-copy mv0">By [Ruichen Ni]</p><a href="/post/%E6%96%87%E6%9C%AC%E5%87%BD%E6%95%B0%E8%A7%A3%E6%9E%90%E6%A0%91%E7%AE%97%E6%B3%95/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a>
</div>
</div>
</div>
</article>
</div>
<div class="w-100 mb4 relative">
<article class="bb b--black-10">
<div class="db pv4 ph3 ph0-l dark-gray no-underline">
<div class="flex-column flex-row-ns flex">
<div class="blah w-100">
<h1 class="f3 fw1 athelas mt0 lh-title">
<a href="/post/%E7%A7%BB%E5%8A%A8%E6%9E%84%E9%80%A0%E5%87%BD%E6%95%B0%E5%92%8C%E5%85%B7%E5%90%8D%E8%BF%94%E5%9B%9E%E5%80%BC%E4%BC%98%E5%8C%96/" class="color-inherit dim link">
移动构造函数(浅拷贝)和具名返回值优化(NRVO)
</a>
</h1>
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links">
针对数据量特别大的对象实例,运算过程中都要特别关注对其的拷贝操作,例如大型矩阵的乘法运算\(A_{r \times s}\cdot B_{s \times t}\) 等等。出于代码的复用性考虑,我们会将这些运算封装成函数调用。在C++新标准前,通常的做法是将对象实例通过形参列表将引用或者指针传入以避免大数据的拷贝操作,在C++17新标准之后,我们可以采用C++编译器的具名返回值优化(NRVO)功能,并搭配浅拷贝的移动构造函数来避免大数据的拷贝操作。
</div>
<p class="f6 lh-copy mv0">By [Ruichen Ni]</p><a href="/post/%E7%A7%BB%E5%8A%A8%E6%9E%84%E9%80%A0%E5%87%BD%E6%95%B0%E5%92%8C%E5%85%B7%E5%90%8D%E8%BF%94%E5%9B%9E%E5%80%BC%E4%BC%98%E5%8C%96/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a>
</div>
</div>
</div>
</article>
</div>
<div class="w-100 mb4 relative">
<article class="bb b--black-10">
<div class="db pv4 ph3 ph0-l dark-gray no-underline">
<div class="flex-column flex-row-ns flex">
<div class="blah w-100">
<h1 class="f3 fw1 athelas mt0 lh-title">
<a href="/post/marriage-certificate/" class="color-inherit dim link">
Marriage Certificate
</a>
</h1>
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links">
Congratulations to ourself for marriage certificate!
</div>
<p class="f6 lh-copy mv0">By [Ruichen Ni]</p><a href="/post/marriage-certificate/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a>
</div>
</div>
</div>
</article>
</div>
</section>
<section class="w-100">
<h1 class="f3">More</h1>
<h2 class="f5 fw4 mb4 dib mr3">
<a href="/post/%E6%A8%A1%E6%9D%BF%E5%87%BD%E6%95%B0%E8%BF%94%E5%9B%9E%E7%B1%BB%E5%9E%8B%E6%8E%A8%E6%96%AD/" class="link black dim">
模板函数返回类型推断
</a>
</h2>
<h2 class="f5 fw4 mb4 dib mr3">
<a href="/post/%E8%87%AA%E5%8A%A8%E6%B3%A8%E5%86%8C%E6%9C%BA%E5%88%B6%E7%9A%84%E5%B7%A5%E5%8E%82%E6%A8%A1%E5%BC%8F/" class="link black dim">
自动注册机制的工厂模式
</a>
</h2>
<h2 class="f5 fw4 mb4 dib mr3">
<a href="/post/%E5%9F%BA%E4%BA%8Eyolo-lite%E7%9A%84%E4%BA%BA%E8%84%B8%E5%8F%A3%E7%BD%A9%E6%A3%80%E6%B5%8B/" class="link black dim">
基于YOLO LITE的人脸口罩检测
</a>
</h2>
</section>
</div>
</main>
<footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
<div class="flex justify-between">
<a class="f4 fw4 hover-white white-70 dn dib-ns pv2 ph3 no-underline" href="https://thueishin.github.io/" >
© Ruichen Ni's Blog 2025
</a>
<div><div class="ananke-socials"></div>
</div>
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.4/js/lightbox.min.js"></script>
<script src="/js/lightbox-options.js"></script>
</body>
</html>