Octave on Inspiron mini: incorrect matrix multiplication and division
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Netbook Remix |
Invalid
|
Undecided
|
Unassigned | ||
octave3.0 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In Octave, the following tests should return NaNs only.
octave:20> version
ans = 3.0.0
octave:21> octave_
ans = -llapackgf-3 -lblas-3gf
p = 2;
tmp1 = repmat(
tmp2 = repmat(
tmp3 = repmat(
tmp4 = repmat(
tmp5 = repmat(
tmp6 = repmat(
x = randn(100,
tmp7 = y/y;
tmp8 = y\y;
tmp = [tmp1;tmp2;
but on an Inspiron mini 10v, tmp is:
tmp =
0.00000 0.00000
0.00000 0.00000
0.00000 0.00000
0.00000 0.00000
0.00000 0.00000
0.00000 0.00000
0.00000 0.00000
0.00000 0.00000
NaN NaN
NaN NaN
0.00000 0.00000
0.00000 0.00000
0.50000 0.50000
0.50000 0.50000
0.50000 0.50000
0.50000 0.50000
That means, 7 out of 8 tests fail. I guess, the problem is closely related to the bug reported here:
http://
There, the problem went away after atlas was installed instead of blas.
When, I tried to install atlas3-base-dev on the Inspiron mini 10, there were a number of libraries removed and atlas added.
$ sudo aptitude install atlas3-base-dev
[sudo] password for as:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages are BROKEN:
libblas-dev liblapack-dev
The following NEW packages will be automatically installed:
atlas3-base atlas3-headers cpp-3.4 g77 g77-3.4 gcc-3.4 gcc-3.4-base libg2c0 libg2c0-dev refblas3 refblas3-dev
The following NEW packages will be installed:
atlas3-base atlas3-base-dev atlas3-headers cpp-3.4 g77 g77-3.4 gcc-3.4 gcc-3.4-base libg2c0 libg2c0-dev refblas3
refblas3-dev
0 packages upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/14.9MB of archives. After unpacking 55.8MB will be used.
The following packages have unmet dependencies:
liblapack-dev: Conflicts: liblapack-3.so which is a virtual package.
libblas-dev: Conflicts: libblas-3.so which is a virtual package.
Resolving dependencies...
The following actions will resolve these dependencies:
Remove the following packages:
libblas-dev
liblapack-dev
octave3.0-headers
But the above problem did not go away. It seems that the (incorrect) blas functions are still used.
Moved to octave3.0 under Ubuntu