[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: simple vector to matrix transformation
From: |
Jim Van Zandt |
Subject: |
Re: simple vector to matrix transformation |
Date: |
Tue, 22 Jun 1999 11:52:41 -0400 |
On Tue, 22 Jun 1999, Daniel Heiserer wrote:
> b=a*ones(1,4);
Seesh. I should have thought of that.
address@hidden writes:
> On my machine, this is a factor of 6 or so faster still in Matlab,
> anyway:
>
> >> tic; b=a(:,ones(1,1000)); toc
> elapsed_time =
> 0.0562
I would NOT have thought of that. Thanks!
(BTW the speedup on my machine is about a factor of two, for the
1000x1000 problem.)
- Jim Van Zandt
---------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL. To ensure
that development continues, see www.che.wisc.edu/octave/giftform.html
Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
---------------------------------------------------------------------