comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Generate Same Sequence of Random Numbers in IDL and C
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Generate Same Sequence of Random Numbers in IDL and C [message #89083 is a reply to message #89079] Wed, 23 July 2014 11:03 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 7/23/14, 10:52 AM, sweiss1993@gmail.com wrote:
> So I made a couple of test programs myself to show you the context of
> my problem.
>
> IDL version: http://pastebin.com/bKifVSgE
>
> C version: http://pastebin.com/T9Ujaxx1 http://pastebin.com/fLhpn6Jy
> http://pastebin.com/v8dxfwB0
>
> Make sure you have the GSL and FFTW libraries before trying to use
> the C version. Let me know if you have trouble getting either program
> to run.
>
> If you run the programs, you'll see that there is in fact a
> difference in the outputs like I described.

Just doing the uniformly distributed values, I get exactly the same
values. When I do the poisson values also, I haven't been able to get
the same values.

> Also I tried to configure mglib, and I got the following error:
> "Could NOT find IDL (missing: IDL_LIBRARY IDL_INCLUDE_DIR)"
>
> Is it because I have GDL and not IDL on my computer?

Definitely need IDL, not GDL, to use the C portions of mglib.

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: rebin vs congrid
Next Topic: IDL and C inter-language communication / call_external()

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 14:52:48 PDT 2025

Total time taken to generate the page: 0.63875 seconds