- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 c++ 知识点
unique_lock 利用锁的生命周期进行加锁解锁,简化了锁的使用流程。子线程访问主线程的变量 需要管理生命周期。互斥锁 std::mutex。静态编辑检查 assert。call_onece使用。c++ 11重要新特性。nullexptr指针。thread 多线程。
2024-11-28 14:43:40
101
原创 c++ primer 文本查询功能再探(第五版)
/保存每个单词对应的行号集合。//这里的begin、end以及get_file函数用到了我们之前自己定义的。//QueryResult类中的函数。//保存每一行的文本。
2024-10-30 18:53:04
1070
原创 grpofile 生成性能分析图
查看性能: 1.生成gmon.out 2.生成报告 grpofile ./helloworld > report.txt 3.生成.dot文件 gpro2dot report.txt> report.dot 4.生成性能分析图 dot -Tsvg report.dot -o report.svg 需要安装 pip3 install gprof2dot sudo apt-get install python graphviz ...
2022-05-25 19:23:57
189
原创 Leetcode 刷题记录
之前零零散散的刷过一些题,很容易忘记,准备花一些时间,按照网上大神的思路,认真系统的做一遍,在这里记录一下 滑动窗口问题 3. Longest Substring Without Repeating Characters 遍历字符串,如果字符曾经出现过(用hash表 key:字符,value:字符出现的位置),则移动左指针到字符位置下一个点 和 左指针的较大值位置(这个地方容易错,调试了很多遍才ac) int lengthOfLongestSubstring(string s) {
2022-02-17 02:13:19
440
转载 神经网络参数设置
>> input=x(1:52,1:80); >> output=y(1:52,1:80); >> [inputn,inputs]=mapminmax(input); >> [outputn,outputs]=mapminmax(output); >> net=newff(inputn,outputn,10); >> net.trainParam.epochs=1000; >> net
2015-09-17 22:18:22
612
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人