fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

8.8K
active users

#ndarray

0 posts0 participants0 posts today
ashwinvis<p>It took 10 days of on and off programming with <a href="https://mastodon.acc.sunet.se/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> and <a href="https://mastodon.acc.sunet.se/tags/ndarray" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ndarray</span></a> crate to solve <a href="https://mastodon.acc.sunet.se/tags/AdventOfCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AdventOfCode</span></a> day 4. It was bizzarely tough.</p><p>NDarray is getting there (close to <a href="https://mastodon.acc.sunet.se/tags/numpy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>numpy</span></a>) but some key features like indexing using arrays and boolean masks was missing. Which made the implementation painful.</p><p><a href="https://codeberg.org/ashwinvis/advent-of-code/src/branch/main/2024/examples/day04.rs" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">codeberg.org/ashwinvis/advent-</span><span class="invisible">of-code/src/branch/main/2024/examples/day04.rs</span></a></p><p>Could it be better?</p>
bluss<p>ndarray 0.16 is released: <a href="https://github.com/rust-ndarray/ndarray/releases/tag/0.16.0" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/rust-ndarray/ndarra</span><span class="invisible">y/releases/tag/0.16.0</span></a></p><p>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.</p><p><a href="https://social.linux.pizza/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://social.linux.pizza/tags/ndarray" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ndarray</span></a></p>
Mo Bitar :ferris:<p><span class="h-card" translate="no"><a href="https://fediscience.org/@smranaldi" class="u-url mention">@<span>smranaldi</span></a></span> Coming from <a href="https://fosstodon.org/tags/Python" class="mention hashtag" rel="tag">#<span>Python</span></a> and <a href="https://fosstodon.org/tags/JuliaLang" class="mention hashtag" rel="tag">#<span>JuliaLang</span></a>, I was annoyed at first by things like</p><p>1 + 1.0</p><p>which does not compile. You have to cast often, but you understand after a while why this is important to prevent any surprises!</p><p>I missed Arrays in Julia (multidimensional). I needed a matrix but felt like it would be an overkill to use <a href="https://fosstodon.org/tags/ndarray" class="mention hashtag" rel="tag">#<span>ndarray</span></a> for it. So I wrote my small matrix for fun. It was not hard! Next time I will try <a href="https://fosstodon.org/tags/ndarray" class="mention hashtag" rel="tag">#<span>ndarray</span></a> if I need multidimensional arrays more often.</p><p>2/4</p>
てらモス🆓<p><a href="https://github.com/termoshtt/einsum-derive" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/termoshtt/einsum-de</span><span class="invisible">rive</span></a><br><a href="https://mstdn.jp/tags/proc_macro" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>proc_macro</span></a> based <a href="https://mstdn.jp/tags/einsum" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>einsum</span></a> implementation for <a href="https://mstdn.jp/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://mstdn.jp/tags/ndarray" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ndarray</span></a></p>
Mo Bitar :ferris:<p><span class="h-card" translate="no"><a href="https://fediscience.org/@smranaldi" class="u-url mention">@<span>smranaldi</span></a></span> I have used Julia and would recommend it for this field. But I wanted to try Rust for numerical computations very soon. Check out <a href="https://fosstodon.org/tags/polars" class="mention hashtag" rel="tag">#<span>polars</span></a>, <a href="https://fosstodon.org/tags/ndarray" class="mention hashtag" rel="tag">#<span>ndarray</span></a> and <a href="https://fosstodon.org/tags/plotters" class="mention hashtag" rel="tag">#<span>plotters</span></a>.</p>
bluss<p>ndarray 0.15 is finally released. 😓 </p><p><a href="https://docs.rs/ndarray/0.15" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="">docs.rs/ndarray/0.15</span><span class="invisible"></span></a></p><p>The following are some highlights, see the release note for the whole story.</p><p><a href="https://github.com/rust-ndarray/ndarray/blob/master/RELEASES.md#version-0150-2021-03-25" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/rust-ndarray/ndarra</span><span class="invisible">y/blob/master/RELEASES.md#version-0150-2021-03-25</span></a></p><p>- Inserting new axes while slicing</p><p>- two-sided broadcasting for arithmetic operations </p><p>- `.cell_view()</p><p>- Improved `Array::uninit`</p><p>Thanks to **jturner314**, **SparrowLii**, **xd009642**, **dam5h**, **insideoutclub** and **bluss** who contributed the changes for this release.</p><p><a href="https://mastodon.online/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://mastodon.online/tags/ndarray" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ndarray</span></a> <a href="https://mastodon.online/tags/rustsci" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustsci</span></a></p>
bluss<p>Rust crate ndarray got a 0.14 release finally. Release note: <a href="https://github.com/rust-ndarray/ndarray/blob/master/RELEASES.md" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/rust-ndarray/ndarra</span><span class="invisible">y/blob/master/RELEASES.md</span></a><br><a href="https://mastodon.online/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://mastodon.online/tags/rustsci" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustsci</span></a> <a href="https://mastodon.online/tags/ndarray" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ndarray</span></a></p>