uncomplicate

jon.armond 2018-09-18T12:36:24.000100Z

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.armond 2018-09-18T12:47:07.000100Z

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

2018-09-18T13:28:20.000100Z

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

👍 1