MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: surprising timings for multiplication of diagonalmatrix and full matrix


I suspect Dot packs first when it can. So when you are under the threshold of packed array size (250, in this case), your various functions are working with unpacked inputs. The ones that "know" to pack first come out ahead.

Fastest would  (well, should) be to use Times:

w = Timing[Do[fd = bsd*asd, {nj}]][[1]] 


Daniel Lichtblau
Wolfram Research



  • Prev by Date: Print Selection, Mathematica 7, in Lion
  • Next by Date: question about NIntegrate
  • Previous by thread: surprising timings for multiplication of diagonalmatrix and full matrix
  • Next by thread: Re: surprising timings for multiplication of diagonalmatrix and full matrix