Tue 29 Apr 2014 11:20:29 PM UTC, comment #1:
Works for me using current dev 4.1.0+
And Fedora 20 on x86_64 (Intel)
octave:16> assert(ones(410241024+1,2)[1 1]',2ones(410241024+1,1));
octave:17> version
ans = 4.1.0+
octave:18>
|
Tue 29 Apr 2014 10:24:33 PM UTC, original submission:
Matrix multiplication is incorrect for a large matrix.
Specifically: A*B
A dim of 410241024+1 x 2
B dim of 2 x 1
assert(ones(410241024,2)[1 1]',2ones(410241024,1)); % failure
The same multiple is correct for the following dimensions:
A dim of 410241024 x 2
B dim of 2 x 1
assert(ones(410241024,2)[1 1]',2ones(410241024,1)); % success
The following is on an HP z820 running Ubuntu 14.04, Octave 3.8.1 (from default repo) with no extra octave packages installed.
|