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: [mg14856] Re: Making a large matrix
  • From: "Allan Hayes" <hay at>
  • Date: Fri, 20 Nov 1998 02:17:02 -0500
  • References: <72tt72$>
  • Sender: owner-wri-mathgroup at

Ersek, Ted R wrote in message <72tt72$isd at>...
>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


Range[Random[], 1000] does not give random entries:

Range[Random[], 6]



Allan Hayes
Mathematica Training and Consulting
hay at
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

  • Prev by Date: Plotting multiple lines with different color or line style?
  • Next by Date: Evaluation Control
  • Previous by thread: Making a large matrix
  • Next by thread: Re: Making a large matrix