承接上文:
http://blog.csdn.net/wangqi880/article/details/52875524
对了,每台机子的防火墙要关闭哈,不然spark集群启动不起来
前一次,...
分类:
编程语言 时间:
2016-10-22 12:25:47
阅读次数:
405
恢复内容开始 矩阵相乘程序的简单C语言实现: 这是矩阵相乘的公式: 源代码: 程序中先初始化矩阵,然后判断第一个矩阵的列数和第二个矩阵的行数是否相等,如果不相等则直接提示错误后退出程序 相等的话则利用公式计算乘积,结果赋给matrix二维数组。 最后用for循环打印出结果验证 eg: 由于该矩阵是用 ...
分类:
编程语言 时间:
2016-10-22 07:17:08
阅读次数:
216
矩阵快速幂,请参照模板 http://www.cnblogs.com/pach/p/5978475.html 直接sum=A+A2+A3...+Ak这样累加肯定会超时,但是 sum=A+A2+...+Ak/2+A(k/2)*(A+A2+...+Ak/2) k为偶数时; sum=A+A2+...+A( ...
分类:
其他好文 时间:
2016-10-22 00:06:07
阅读次数:
217
Feature extraction - sklearn文本特征提取 http://blog.csdn.net/pipisorry/article/details/41957763 http://scikit-learn.org/stable/modules/feature_extraction.h ...
分类:
其他好文 时间:
2016-10-21 19:56:43
阅读次数:
453
表达式分析+矩阵+计算器+寄存器=矩阵计算器 怎么想起来搞这个呢.. //刚看龙书兴致勃勃要搞表达式分析 这个寄存器比较简陋,26字母+4缓存,//字母不分大小写 当然,不只能算矩阵,还能算数= = 简陋的命令行如图 尚处于初步阶段,奇怪的功能们尚待加入=ω= 代码 展示一下接口吧= = //mat ...
分类:
其他好文 时间:
2016-10-21 15:58:27
阅读次数:
223
54.Spiral Matrix Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example,Given the follow ...
分类:
其他好文 时间:
2016-10-20 21:26:42
阅读次数:
136
drugs_tartgets.csv是经过求和,分割后的源数据 drugs_targets_interaction_matrix是得到的邻接矩阵(行的排序在drugs中,列的排序在targets中) to_matrix.py 用于将csv文件转为邻接矩阵格式 ...
分类:
其他好文 时间:
2016-10-19 16:52:02
阅读次数:
108
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. For example, given the following ...
分类:
编程语言 时间:
2016-10-19 13:20:22
阅读次数:
175
% MATLAB:MATLAB 为 Matrix Laboratory ,用来处理矩阵可编程可实现算法逻辑的计算工具% % eg:1 绘制正弦和余弦曲线x=[0:0.1:4*pi]; %建立角度向量plot(x,sin(x),x,cos(x)) %画图axis([0,2*pi,-1,1]) %设定坐 ...
分类:
其他好文 时间:
2016-10-17 14:32:45
阅读次数:
182
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted f ...
分类:
编程语言 时间:
2016-10-16 00:55:29
阅读次数:
133