会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Marks & Co
博客园
首页
新随笔
联系
管理
上一页
1
···
22
23
24
25
26
27
28
29
30
···
72
下一页
2019年3月10日
Sublime-Text macOS 编译运行armadillo
摘要: { "cmd" : ["g++ -std=c++14 -Wall -larmadillo -framework Accelerate ${file_name} -o ${file_base_name} && ./${file_base_name}"], ...
阅读全文
posted @ 2019-03-10 17:20 2021年的顺遂平安君
阅读(55)
评论(0)
推荐(0)
2019年3月8日
macOS BLAS LAPACK
摘要: /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers
阅读全文
posted @ 2019-03-08 23:05 2021年的顺遂平安君
阅读(60)
评论(0)
推荐(0)
macOS BLAS LAPACK
摘要: ``` /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers ```
阅读全文
posted @ 2019-03-08 23:05 2021年的顺遂平安君
阅读(618)
评论(0)
推荐(0)
sed 搜索并替换
摘要: 搜索当前目录下的文件,把 替换成 ,注意 和`\`之间有个空格。 全词替换 in regular expressions match word boundaries (i.e. the location between the first word character and non word ch
阅读全文
posted @ 2019-03-08 21:18 2021年的顺遂平安君
阅读(1472)
评论(0)
推荐(0)
sed 搜索并替换
摘要: find . -type f -exec sed -i "s/std=c++11/std=c++14/g" {} \; 搜索当前目录下的文件,把std=c++11替换成std=c++14,注意{}和\之间有个空格。 全词替换 $ echo "bar ...
阅读全文
posted @ 2019-03-08 21:18 2021年的顺遂平安君
阅读(76)
评论(0)
推荐(0)
error: call of overloaded ‘sqrt(double&)’ is ambiguous
摘要: OpenFOAM定义了新的sqrt,当引入新的Library时,必须显式地使用std::sqrt(),否则会报如下错误: error: call of overloaded ‘sqrt(double&)’ is ambiguous ...
阅读全文
posted @ 2019-03-08 21:09 2021年的顺遂平安君
阅读(209)
评论(0)
推荐(0)
error: call of overloaded ‘sqrt(double&)’ is ambiguous
摘要: `OpenFOAM sqrt std::sqrt()`,否则会报如下错误:
阅读全文
posted @ 2019-03-08 21:09 2021年的顺遂平安君
阅读(1090)
评论(0)
推荐(0)
C++数组读入MATLAB数据
摘要: ``` data = rand(8, 10); fid = fopen('File.data', 'w'); if fid == - 1 error('Cannot open file for writing'); end fwrite(fid, ndims(data), 'uint16'); fwrite(fid, size(data), 'uint64'); fwrite(fid, da...
阅读全文
posted @ 2019-03-08 17:22 2021年的顺遂平安君
阅读(469)
评论(0)
推荐(0)
C++数组读入MATLAB数据
摘要: data = rand(8, 10);fid = fopen('File.data', 'w');if fid == - 1 error('Cannot open file for writing');endfwrite(fid, ndims(data...
阅读全文
posted @ 2019-03-08 17:22 2021年的顺遂平安君
阅读(65)
评论(0)
推荐(0)
2019年3月5日
Ubuntu 18.04 安装 Octave 5.1
摘要: 最新版目前只能通过编译安装。折腾了半天终于搞定: 需要使用apt-get install先把各种 dependencies 安装好。 编译JIT需要安装sudo apt-get install llvm-3.9-dev'。编译过程中会搜寻llvm-conf...
阅读全文
posted @ 2019-03-05 20:34 2021年的顺遂平安君
阅读(81)
评论(0)
推荐(0)
上一页
1
···
22
23
24
25
26
27
28
29
30
···
72
下一页
公告