Axect / Peroxide

Rust numeric library with R, MATLAB & Python syntax
https://crates.io/crates/peroxide
Apache License 2.0
509 stars 31 forks source link

Rand matrix refactor #75

Open bertini97 opened 12 hours ago

bertini97 commented 12 hours ago

Hi. This PR refactors the functions initializing a random matrix:

  1. new method randn_with_distr that accepts a Distribution<T> from rand
  2. the two previous methods make use of default constructor and are more compact
  3. ~rand has been named randn in all functions to be in line with other programs (MATLAB, Julia, etc)~

Let me know what you think.