matlab 2009b存在bug,多核电脑最好不要用此版本
2012-12-31 21:26
302 查看
昨天使用matlab 2009,在用到INTLAB工具箱时,给我如下提示,看到后让我惊了一身汗,可能我论文上东西有算错的!
提示如下:
*! You are using Matlab R2009b, which in turn uses Intel?MKL for matrix !*
*! and vector operation. For multi-core computers there are severe bugs !*
*! in ordinary rounding to nearest, see !*
*! http://software.intel.com/en-us/articles/dgemm-and-sgemm-accuracy/ !*
*! I strongly recommend to copy the two files !*
*! mkl.dll and mklcompat.dll !*
*! from Matlab R2009a into R2009b/bin/win32 to avoid erroneous results, !*
*! or to use another Matlab release. However, Frank Schmidt from !*
*! TU Chemnitz reported the following problem: !*
*! A=[ 0 2 ; 1 0 ]; b=[ 2 ; 0 ]; x=A'\b !*
*! x = !*
*! 0 !*
*! 1 !*
*! The true solution is [0;2]. So you might not want to use R2009b. !*
上面给了个例子,根据矩阵除法的运算法则
A‘/b=inv(A)*b
而inv(A')=[0 0.5;1 0];
手算一下
x果然为[0;2].而matlab竟然给出了错误解,而且还相差整整1,上面的提示说是多核电脑用2009b时舍入误差(ordinary rounding)的问题!
我办公电脑xp32系统,自己电脑win7 64,为了匹配我选用2009b版本,看来还是用2009a的好09a运算结果就正确了。
外国人搞学问就是严谨啊,佩服!!!!!!
提示如下:
*! You are using Matlab R2009b, which in turn uses Intel?MKL for matrix !*
*! and vector operation. For multi-core computers there are severe bugs !*
*! in ordinary rounding to nearest, see !*
*! http://software.intel.com/en-us/articles/dgemm-and-sgemm-accuracy/ !*
*! I strongly recommend to copy the two files !*
*! mkl.dll and mklcompat.dll !*
*! from Matlab R2009a into R2009b/bin/win32 to avoid erroneous results, !*
*! or to use another Matlab release. However, Frank Schmidt from !*
*! TU Chemnitz reported the following problem: !*
*! A=[ 0 2 ; 1 0 ]; b=[ 2 ; 0 ]; x=A'\b !*
*! x = !*
*! 0 !*
*! 1 !*
*! The true solution is [0;2]. So you might not want to use R2009b. !*
上面给了个例子,根据矩阵除法的运算法则
A‘/b=inv(A)*b
而inv(A')=[0 0.5;1 0];
手算一下
x果然为[0;2].而matlab竟然给出了错误解,而且还相差整整1,上面的提示说是多核电脑用2009b时舍入误差(ordinary rounding)的问题!
我办公电脑xp32系统,自己电脑win7 64,为了匹配我选用2009b版本,看来还是用2009a的好09a运算结果就正确了。
外国人搞学问就是严谨啊,佩服!!!!!!
相关文章推荐
- 检测电脑是否存在最好方法
- 2008-3-25号发布的PL/SQL Developer 7.1.5版本,存在几个严重BUG
- gcc 4.7.0 以上版本的gcc可能存在的bug及解决方法
- avro 1.7.7中存在致命的bug, 可以使用1.7.4版本
- 为什么在Spring的配置里,最好不要配置xsd文件的版本号
- 为什么在Spring的配置里,最好不要配置xsd文件的版本号
- 为什么在Spring的配置里,最好不要配置xsd文件的版本号
- OpenCV(2.4.4及之前版本)polyfit函数存在潜在的bug
- 为什么在Spring的配置里,最好不要配置xsd文件的版本号
- 勤哲EXCEL服务器8.3以上版本可能存在的BUG
- MATLAB中改变默认工作路径(Current Folder)的2种方法 软件版本:MATLAB2012b 电脑系统:win8.1 方法一: 1. 桌面快捷方式——右键“属性”——在选项卡里选“快
- 为什么在Spring的配置里,最好不要配置xsd文件的版本号
- 为什么在Spring的配置文件里,最好不要配置xsd文件的版本号
- 为什么在Spring的配置里,最好不要配置xsd文件的版本号
- 在设计数据库表时如果两张表中存在关联字段,那么这个字段在俩表之前名命名最好不要一致,以免联表查询出现in field list is ambiguous
- matlab (R2007a、R2009a)绿色单文件版本制做
- 发现AspNet.Core版本控制库Bug一枚,你还想入坑?
- 【电脑教程§系统中的任务管理器存在哪些你不知道的功能§】
- andfix实践--bug修复不再需要频繁更新版本了