by armchairhacker · 3y ago · 0 comments
foo: Box<f32> // or &’a f32 or &f32 if borrowing
Multidimensional arrays: foo: [[f32; M]; N]
(These have flat storage. However I do assume most Rust devs use external libraries, which also have flat storage but the incompatibility issues you mentioned)(The average data science/ML-ish person encounters/figures out custom algorithms maybe three or four times a year, and three of these are fast enough with vectorization contortions. I've had two cases that were recursive and 25X faster in $fast_lang than I could possibly make in Python.)