![]() |
Blitz Support : |
From: krasnal (krasnal_at_[hidden])
Date: 2003-06-17 03:58:39
Hi
I've just started using Blitz++. At the beginning I wanted to play a bit
with random numbers it provides and I wonder whether there is any special
syntax for fillig arrays (it seems there isn't but I'm a newbie so I might
miss something).
A = gen.random(); is obviously wrong since it fills the array with the first
generated number. It should be easy to provide library with a wrapper of
A = Random(gen); kind (but it will take me some time before I'll learn how
to create my own expressions). On a related subject: why there's is public
inheritance used instead of private or protected one? I understand that the
reason for inheritance was the implementation inheritance together with a
simpler syntax when compared to containing the uniform generator -- probably
also empty base optimization was taken into account for sharedState
generators. But Normal ganerator __is not a__ Uniform one, right?
Best regards
--
____ _ ___
/ | \_/ |/ _ \ Andrzej Marek Ostruszka
/ _ | | (_) | Instytut Fizyki, Uniwersytet Jagiellonski (Cracow)
/_/ L|_|V|_|\___/ (GnuPG key ID: 0x3D9C498A)