Is there a way to map an array function to every column of a matrix? #533
Replies: 1 comment 4 replies
-
Mapping over the columns of a matrix is equivalent to mapping over the rows of the matrix if you transpose before and after, so I'll just assume you want to map over the inner vectors of a 2-dimensional array. If your function (that you want to map) can be written rank-polymorphically, i.e. with the type Taking an Does this perhaps already help? |
Beta Was this translation helpful? Give feedback.
-
There's a map function that applies a function to every element of an array, but I need one that works at the level of arrays and not elements. I've searched through the documentation and as far as I can tell there doesn't seem to be any function for it.
Beta Was this translation helpful? Give feedback.
All reactions