Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Re: Making a large matrix

  • To: mathgroup at
  • Subject: [mg14846] Re: [mg14832] Making a large matrix
  • From: Andrew Watson <abwatson at>
  • Date: Fri, 20 Nov 1998 02:16:55 -0500
  • Sender: owner-wri-mathgroup at

At 10:29 PM -0800 11/17/98, Ersek, Ted R wrote:
>Consider the timing experiments below for making a large matrix of
>random real numbers.
>Table[Table[Random[],{1000}],{500}];//Timing Out[1]=
>{17.47 Second,Null}
>Table[Range[Random[],1000],{500}];//Timing Out[2]=
>{9.56 Second,Null}
>      (* Make an (m,n) matrix.  *)
>{5.82 Second,Null}
>The last method is the fastest method I can come up with.   Can any of
>you find a faster way to make a large matrix with Mathematica? (short
>of using MathLink to run an executable program).
>Ted Ersek

The last may be the fastest, but they are not random numbers.

How about:



{9.7 Second,Null}

(Mac G3 266 MHz)


Andrew B. Watson
MS 262-2
NASA Ames Research Center
Moffett Field, CA 94035-1000
(650) 604-5419	(650) 604-0255 fax
abwatson at

  • Prev by Date: Re: Mechanical Systems Question
  • Next by Date: Sqrt and Listability
  • Previous by thread: Re: Making a large matrix
  • Next by thread: Re: Making a large matrix