Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8537
| From | danl@wolfram.com |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: surprising timings for multiplication of diagonalmatrix and full matrix |
| Date | 2012-02-14 11:44 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jhdheg$hem$1@smc.vnet.net> (permalink) |
| References | <jhaiip$56k$1@smc.vnet.net> |
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
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
surprising timings for multiplication of diagonalmatrix and full matrix "Eric Michielssen" <emichiel@eecs.umich.edu> - 2012-02-13 08:45 +0000 Re: surprising timings for multiplication of diagonalmatrix and full matrix danl@wolfram.com - 2012-02-14 11:44 +0000
csiph-web