摘要: ``` /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers ``` 阅读全文
posted @ 2019-03-08 23:05 2021年的顺遂平安君 阅读(618) 评论(0) 推荐(0)
摘要: /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers 阅读全文
posted @ 2019-03-08 23:05 2021年的顺遂平安君 阅读(60) 评论(0) 推荐(0)
摘要: 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)
摘要: 搜索当前目录下的文件,把 替换成 ,注意 和`\`之间有个空格。 全词替换 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)
摘要: `OpenFOAM sqrt std::sqrt()`,否则会报如下错误: 阅读全文
posted @ 2019-03-08 21:09 2021年的顺遂平安君 阅读(1090) 评论(0) 推荐(0)
摘要: OpenFOAM定义了新的sqrt,当引入新的Library时,必须显式地使用std::sqrt(),否则会报如下错误: error: call of overloaded ‘sqrt(double&)’ is ambiguous ... 阅读全文
posted @ 2019-03-08 21:09 2021年的顺遂平安君 阅读(209) 评论(0) 推荐(0)
摘要: 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)
摘要: ``` 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)