Skip to content
Prev 303503 / 398502 Next

Communative Matrix Multiplcation

You are right that the difference was dramatic, and hence your
posting was well in place, well, would have, iff it had been
earlier, when that version of Matrix was current
 (... looking it
  up: the next version after the one you used, was
  0.999375-47, CRAN-released: 2011-02-23;
  and there were *many* releases since, notably 1.0-0 & 1.0-1
  the latter released 2011-10-18.)

However, using identical() for comparisons of the results of
double precision computations is almost always "wrong", in
principle:  identical() very often can give FALSE notably from
such simple changes as algebraical shuffling (commutative,
associative, distributive laws), and indeed these things are
covered by the BFMFAQ (By Far Most Frequently Asked Question) 7.31.
Thank you in advance!
Martin