摘要:
随机数生成设备 随机数生成设备random_device,生成非确定性随机数,在Linux中通过读取/dev/urandom设备,Windows中使用rand_s 重载了()运算符,每次调用会生成一个min()到max()之间的高质量随机数种子,若在Linux(Unix Like)下,可以使用这个生 阅读全文
posted @ 2024-11-01 19:08
sgqmax
阅读(82)
评论(0)
推荐(0)
摘要:
ratio 先看一下ratio的定义 template<intmax_t N,intmax_t D=1> class ratio; ratio是由非类型参数定义的模板,用来定义一个比率N/D,如ratio<1,-2>表示-0.5 标准库中定义的常用ratio类型 type definition 说明 阅读全文
posted @ 2024-11-01 19:08
sgqmax
阅读(43)
评论(0)
推荐(0)
摘要:
Emacs安装 # Install essential build tools sudo apt-get install build-essential texinfo libx11-dev libxpm-dev libjpeg-dev libpng-dev libgif-dev libtiff-d 阅读全文
posted @ 2024-11-01 14:29
sgqmax
阅读(74)
评论(0)
推荐(0)
摘要:
{ "files.autoSave": "afterDelay", "editor.lineNumbers": "relative", "vim.easymotion": true, "vim.leader": "<space>", "vim.useSystemClipboard": true, " 阅读全文
posted @ 2024-11-01 14:24
sgqmax
阅读(116)
评论(0)
推荐(0)
摘要:
[Desktop Entry] Encoding=UTF-8 Name=ApplicationName Comment=ApplicationComment Exec=/path/exe # 可执行文件路径 Icon=/path/icon # icon路径 Terminal=false #软件打开时 阅读全文
posted @ 2024-11-01 14:13
sgqmax
阅读(29)
评论(0)
推荐(0)
摘要:
Richard Matthew Stallman 被誉为自由软件的斗士和精神领袖,是伟大的理想主义者。作品: GNU Emacs GPL CopyLeft FSF 进入八十年代后,黑客社群在软件工业商业化的强大压力下日渐土崩瓦解,黑客文化正在受到攻击,Matthew作为一名黑客,于1985年发表了著 阅读全文
posted @ 2024-11-01 14:13
sgqmax
阅读(20)
评论(0)
推荐(0)
摘要:
建立dev分支 在当前分支下新建一个dev分支然后切换到该分支 git branch dev git checkout dev # 相当于 git checkout -b dev git branch -a 查看分支,当前分支前会有*标识 git add . git commit -m "some 阅读全文
posted @ 2024-11-01 13:15
sgqmax
阅读(21)
评论(0)
推荐(0)
摘要:
远程仓库 Git是分布式版本控制系统,同一个仓库可以分布到不同机器上 可用git remote查看远程仓库信息,使用-v显示更详细的信息 克隆远程仓库 git clone git@github.com:username/gitrepo.git git支持多种协议,如https等,但通过ssh支持的原 阅读全文
posted @ 2024-11-01 13:15
sgqmax
阅读(48)
评论(0)
推荐(0)
摘要:
ubuntu安装git sudo apt-get install git 全局配置 git config --global user.name "your name" git config --global user.email "your email" --global参数表示在这台机器上的git 阅读全文
posted @ 2024-11-01 13:14
sgqmax
阅读(39)
评论(0)
推荐(0)
摘要:
卷积层 提取数据特征,矩阵点乘求和运算 import torch from torch import nn conv = nn.Conv2d(in_channels=1, out_channels=1, kernel_size=3, stride=1, padding=1, dilation=1, 阅读全文
posted @ 2024-11-01 13:13
sgqmax
阅读(35)
评论(0)
推荐(0)

浙公网安备 33010602011771号