PvdBerg1998 / gsl_rust

A safe Rust wrapper around a subset of the GSL.
GNU General Public License v3.0
2 stars 1 forks source link

Random number distributions #2

Open tmbb opened 2 weeks ago

tmbb commented 2 weeks ago

Before I change my PR for the random number distributions, I'd like to discuss what the API should be.

The API I've written follows the GSL API very closely, but maybe I should implement the traits in the rand crate instead... That way maybe I could drop the dependency on ndarray and instead make it more flexible so that the users would be able to dump the random values into whatever "containers" they feel like (?).

PvdBerg1998 commented 2 weeks ago

As I also commented on your PR: I think using the rand ecosystem makes a lot of sense. I have the feeling that there might be a major overlap between the existing native Rust rand ecosystem and the functions of the GSL, is that true? Apologies, I don't have time to check this myself at this moment.

tmbb commented 2 weeks ago

I have the feeling that there might be a major overlap between the existing native Rust rand ecosystem and the functions of the GSL, is that true?

Honestly, I don't know. The thing is that all the GSL functions are meticulously documented and referenced, and I'd feel more comfortable citing GSL in a scientific paper than a random (pun intended) crate in the rand ecosystem...