Fork me on GitHub
#uncomplicate
<
2018-09-18
>
jon.armond12:09:24

can i have an example of how to use permute-cols? the following doesn't work

(def x (native/dge 3 3 (range 9)))
(aux/permute-cols x (native/dv [2 1]))

jon.armond12:09:07

nevermind, i figured it out. you have to use integer vector with right number of cols

(aux/permute-cols x (native/iv [1 2 2]))

blueberry13:09:20

Usually, for less-popular functions, your best source of examples are the tests.

👍 4