stephano33

Results 5 comments of stephano33

Hi, Yes, I will give you the one line. But need to check again if it improves only my code or all code. Did you see the video of my...

The one line improvement is truing on strict evaluation on the modulate that allocates most; for instance, -X Strict on Rasterize.hs can help. But as you see, this is just...

I implemented a simplified version of the snow demo. It only displays rectangles at the moment: https://gist.github.com/anonymous/ce7614ee2abf8110b78325063084da6e

``` // https://docs.rs/statrs/0.13.0/statrs/distribution/struct.MultivariateNormal.html MultivariateNormal { pub fn new(mean: Vec, cov: Vec) -> Result { let mean = DVector::from_vec(mean); let cov = DMatrix::from_vec(mean.len(), mean.len(), cov); ... } ``` For creating a...

PS: I found help via Reddit: `my_dvector.data.as_vec()` or better `my_dvector.data.as_vec().to_vec()` should work. But is there a better way?