From: dafina on 11 Apr 2010 13:17 I want to multilpy two large vectors with dimensions a(16384,1) and b(1,16384) so v=a*b' but the answer is : ??? Out of memory. Type HELP MEMORY for your options.
From: Rune Allnor on 11 Apr 2010 16:49 On 11 apr, 19:17, "dafina " <d.xh...(a)gmail.com> wrote: > I want to multilpy two large vectors with dimensions a(16384,1) and b(1,16384) > so v=a*b' > > but the answer is : > > ??? Out of memory. Type HELP MEMORY for your options. Hardly surprising. The outer product of two N x 1 column vectors produces a matrix of size N x N. With the stated dimensions and double-precision real numbers, the resulting matrix requires 2 GBytes of RAM. Rune
From: ImageAnalyst on 11 Apr 2010 17:32 Did you possibly mean v = a .* b'; % Note the dot: it's dot star instead of star to do an element by element multiplication?
|
Pages: 1 Prev: How to set a password in gui form??? Next: Why cross-validation does not work? |