home.social

#ndarray — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #ndarray, aggregated by home.social.

  1. It took 10 days of on and off programming with #rust and #ndarray crate to solve #AdventOfCode day 4. It was bizzarely tough.

    NDarray is getting there (close to #numpy) but some key features like indexing using arrays and boolean masks was missing. Which made the implementation painful.

    codeberg.org/ashwinvis/advent-

    Could it be better?

  2. @smranaldi Coming from and , I was annoyed at first by things like

    1 + 1.0

    which does not compile. You have to cast often, but you understand after a while why this is important to prevent any surprises!

    I missed Arrays in Julia (multidimensional). I needed a matrix but felt like it would be an overkill to use for it. So I wrote my small matrix for fun. It was not hard! Next time I will try if I need multidimensional arrays more often.

    2/4

  3. @smranaldi I have used Julia and would recommend it for this field. But I wanted to try Rust for numerical computations very soon. Check out , and .

  4. ndarray 0.15 is finally released. 😓

    docs.rs/ndarray/0.15

    The following are some highlights, see the release note for the whole story.

    github.com/rust-ndarray/ndarra

    - Inserting new axes while slicing

    - two-sided broadcasting for arithmetic operations

    - `.cell_view()

    - Improved `Array::uninit`

    Thanks to **jturner314**, **SparrowLii**, **xd009642**, **dam5h**, **insideoutclub** and **bluss** who contributed the changes for this release.

    #rust #ndarray #rustsci