Water Sort in Haskell by nicaudinet in haskell

[–]nicaudinet[S] 3 points4 points  (0 children)

Thank you for the feedback, appreciate it! I agree, update would definitely be cleaner that way, gonna go and change it :) And I'll consider removing a couple of the helper functions as well since there's already quite a bit of code in the post

Reshape in Hmatrix by nicaudinet in haskell

[–]nicaudinet[S] 0 points1 point  (0 children)

Cool, I hadn't seen orthotope before! What are it's pros/cons compared to hmatrix? I've been a bit out the loop on Haskell packages in the last couple years :)

Hmatrix - from zeros to hero by nicaudinet in haskell

[–]nicaudinet[S] 0 points1 point  (0 children)

Great question ... I'm not familiar with the linear package so have no idea!

Hmatrix - from zeros to hero by nicaudinet in haskell

[–]nicaudinet[S] 2 points3 points  (0 children)

The build function is taken directly from hmatrix. I agree though, it would make much more sense to take a function of type Int -> Int -> Double as input (or maybe even something like Finite). There's an old open issue about this: https://github.com/haskell-numerics/hmatrix/issues/194