help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gsl] Random vectors


From: Éric Germaneau
Subject: [Help-gsl] Random vectors
Date: Wed, 30 Apr 2014 14:46:36 +0800
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Dear all,

I wonder how to generate random vectors with  GSL.
I'm aware of the *gsl_ran_dir_nd *routine but the numbers are normalized.
I need to generate random velocities for a given temperature of N particles.
I currently call *gsl_ran_gaussian* 3N times.
That's too expensive.
I'd like to generate a 3N vector at once.
Is there anyway to do this with GSL?

Thanks,

                  Éric.

--
Éric Germaneau (???), Specialist
Center for High Performance Computing
Shanghai Jiao Tong University
Room 205 Network Center, 800 Dongchuan Road, Shanghai 200240 China
M:address@hidden P:+86-136-4161-6480 W:http://hpc.sjtu.edu.cn


reply via email to

[Prev in Thread] Current Thread [Next in Thread]