MathGroup Archive 1998

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

Search the Archive

Re: Re: Compile and NormalDistribution


On Tue, Dec 22, 1998, Paul Abbott <paul at physics.uwa.edu.au> wrote:

>Andrew Watson wrote:
>
>> In[1]:= <<Statistics`ContinuousDistributions`
>> 
>> gaussianArray[n_] :=
>>         RandomArray[NormalDistribution[0.0, 1.0],{n,n}]  +
>>          I  RandomArray[NormalDistribution[0.0, 1.0],{n,n}]
>> 
>> In[6]:= Timing[tmp=gaussianArray[128] ;]
>> 
>> Out[6]= {1.26667 Second,Null}
>
>You must have a very fast computer. This is much slower on my PowerMac!


Not on all PowerMacs! On my 266 MHZ G3:

<<Statistics`ContinuousDistributions` gaussianArray[n_] :=
 RandomArray[NormalDistribution[0.0, 1.0],{n,n}]  +
     I  RandomArray[NormalDistribution[0.0, 1.0],{n,n}]

Timing[tmp=gaussianArray[128] ;]
{1.43333 Second,Null}

Andrzej Kozlowski
Toyama International University
JAPAN
http://sigma.tuins.ac.jp/
http://eri2.tuins.ac.jp/



  • Prev by Date: Algebra on complex expressions: Collect
  • Next by Date: Getting rid of annoying zeroes in algebraic expressions
  • Previous by thread: Re: Re: Compile and NormalDistribution
  • Next by thread: Re: Making Change, once more