摘要: 一、Mac下OpenMPI的安装 所用电脑:MacBook Pro,OSX 10.11.2 1. 从openmpi官网下载相应版本: "OpenMPI 1.8下载" 2. 解压文件 双击解压或者tar zxvf openmpi .tar.gz 3. 指定安装路径 进入解压的目录,指定要安装的路径:. 阅读全文
posted @ 2016-08-14 19:39 博临天下 阅读(11182) 评论(0) 推荐(0) 编辑
摘要: 描述:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two... 阅读全文
posted @ 2014-12-24 18:35 博临天下 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 描述:Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thi... 阅读全文
posted @ 2014-12-24 18:25 博临天下 阅读(9354) 评论(1) 推荐(0) 编辑
摘要: 描述:Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in... 阅读全文
posted @ 2014-12-23 19:38 博临天下 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 描述:Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime comp... 阅读全文
posted @ 2014-12-23 19:29 博临天下 阅读(3133) 评论(0) 推荐(0) 编辑
摘要: 描述:Givenanarrayofsizen,findthemajorityelement.Themajorityelementistheelementthatappears morethan⌊ n/2⌋times. Youmayassumethatthearrayisnon-emptyandthe... 阅读全文
posted @ 2014-12-22 21:13 博临天下 阅读(10920) 评论(1) 推荐(0) 编辑
摘要: 一、引言 本材料参考Andrew Ng大神的机器学习课程http://cs229.stanford.edu 在上一篇有监督学习回归模型中,我们利用训练集直接对条件概率p(y|x;θ)建模,例如logistic回归就利用hθ(x) = g(θTx)对p(y|x;θ)建模(其中g(z)是sigmoi... 阅读全文
posted @ 2014-11-01 16:15 博临天下 阅读(52807) 评论(0) 推荐(7) 编辑
摘要: 一、引言 本材料参考Andrew Ng大神的机器学习课程http://cs229.stanford.edu,以及斯坦福无监督学习UFLDL tutorialhttp://ufldl.stanford.edu/wiki/index.php/UFLDL_Tutorial 机器学习中的回归问题属于有监... 阅读全文
posted @ 2014-10-31 21:32 博临天下 阅读(38671) 评论(4) 推荐(5) 编辑
摘要: 430的中断是按照下图1的优先级顺序定义的,有三种中断:1.系统重置、2.不可屏蔽中断(NMI)、3.可屏蔽中断。 图1.中断优先级 部分具体的中断优先级由高到低为:PORT2_VECTOR (1 * 2u) /* 0xFFE2 Port 2 */PORT1_VECTO... 阅读全文
posted @ 2012-06-19 19:44 博临天下 阅读(3270) 评论(0) 推荐(0) 编辑
摘要: RTC-Real Time Clock是430单片机的实时时钟模块,可以配置成实时时钟模式(万年历)或者一般目的的32位计数器模式,其中实时时钟模式提供了年月日、时分秒,可以选择BCD码或者二进制格式,并且具有可编程的闹钟。RTC模块支持中断。相关寄存器请参阅430系列单片机user's gui... 阅读全文
posted @ 2012-06-17 23:20 博临天下 阅读(10738) 评论(0) 推荐(0) 编辑