[Top][All Lists]

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

Re: random number vectors

From: Neil Jerram
Subject: Re: random number vectors
Date: Sun, 19 Jul 2009 19:41:08 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

matt <address@hidden> writes:

> Hello,
> Guile lets me make a single random:uniform or a single
> random:normal. It also lets me make a random:normal-vector! but
> doesn't let me make a random:uniform-vector!
> Is the reason for this?

Probably just a matter of what was needed at the time these functions
were implemented.

> Where is the source for random:normal-vector! in 1.8, so that I can
> copy it to make a random:uniform-vector!?  The only reference I found
> /usr/include/libguile/random.h

In libguile/random.c, look for "SCM_DEFINE (scm_random_normal_vector_x".

Unless you already have a copyright assignment on file for Guile,
though, it's simpler if we add the necessary function and you review
it.  I'm not an expert on this code, but it looks as though all we
need is a copy of scm_random_normal_vector_x with scm_c_normal01
replaced by scm_c_uniform01.  Does that sound right to you?


reply via email to

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