#ndarray

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?

ndarray 0.16 is released: github.com/rust-ndarray/ndarra

A release has been needed for a long time to say the least, and it's a very big one too. I'm happy it's out.

#rust #ndarray

Mo Bitar :ferris:mo8it@fosstodon.org
2023-02-02

@smranaldi Coming from #Python and #JuliaLang, 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 #ndarray for it. So I wrote my small matrix for fun. It was not hard! Next time I will try #ndarray if I need multidimensional arrays more often.

(2)

2023-01-06

hidefix (github.com/gauteh/hidefix) can now be used as an #xarray backend: more than 6x faster on a 8 CPU machine!

This reads a full variable of about 370mb.

#rust #rayon #pyo3 #ndarray #netcdf4 #hdf5

Mo Bitar :ferris:mo8it@fosstodon.org
2022-12-13

@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 #polars, #ndarray and #plotters.

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

Rust crate ndarray got a 0.14 release finally. Release note: github.com/rust-ndarray/ndarra
#rust #rustsci #ndarray

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst