uncomplicate 2018-09-18

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]))

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]))

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

👍 1