2015年7月5日
摘要: git init # 初始化本地git仓库(创建新仓库)git config --global user.name "xxx" # 配置用户名git conf... 阅读全文
posted @ 2015-07-05 21:20 简刀 阅读(388) 评论(0) 推荐(0) 编辑
  2015年6月15日
摘要: 问题描述:Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321输入一个整形数字,然后输出它的反转需要注意的是,int形变量的反转有可能是超过int的限制的,比如123456789... 阅读全文
posted @ 2015-06-15 16:06 简刀 阅读(164) 评论(0) 推荐(0) 编辑
  2015年6月7日
摘要: 因为不是计算机专业的,算法基础有点差,所以最近开始在leetcode上刷刷题补一补。#1 问题链接:twoSum问题描述:Given an array of integers, find two numbers such that they add up to a specific target n... 阅读全文
posted @ 2015-06-07 16:01 简刀 阅读(590) 评论(0) 推荐(0) 编辑
  2015年6月6日
摘要: 因为最近在看caffe的源代码,几乎都是模板,因此想把自己写的几个函数程序也改为模板函数,但发现分离编译的时候make总是报错,找不到对应的模板函数。后来查了查资料发现是模板函数没有特化造成的。下面用简单的代码把这个问题展现一遍。max.cpp:template dtype max(dtype... 阅读全文
posted @ 2015-06-06 19:53 简刀 阅读(2082) 评论(0) 推荐(0) 编辑
  2014年9月21日
摘要: matlab与c混合的mex编程中一些需要注意的地方 阅读全文
posted @ 2014-09-21 17:10 简刀 阅读(31730) 评论(0) 推荐(3) 编辑