4 ms·
> Indexing, slicing, and broadcasting are three fundamental functions to manipulate multidimensional arrays. ... > Indexing and slicing is arguably the most i
by ihnorton 6y ago
> Indexing, slicing, and broadcasting are three fundamental functions to manipulate
multidimensional arrays.
...
> Indexing and slicing is arguably the most important function in any numerical
library.
These statements are undoubtedly true. The first question any practitioner familiar with other systems will ask is: what does basic arithmetic, array manipulation, and linear algebra look like?
But from what I can tell on a very quick skim, that question isn't really answered until the section starting with these sentences, on page 123. I've noticed this situation every time I look at the Owl docs webpage too, FWIW (have not looked recently though).
I understand the need to be perceived as fully-capable for modern tasks -- and that's fine for a 2-4 page set of teaser examples up front -- but I think this book would become much more approachable if the basic mechanics of doing math were presented first.
- srean 6y agoIf anyone wants a quick access to see how slicing and indexing is done https://ocaml.xyz/book/slicing.html https://ocaml.xyz/book/slicing.html An older thread on HN on slicing https://news.ycombinator.com/item?id=20457884 https://news.ycombinator.com/item?id=20457884