(transpose-matrix-3d m)

Source

(defn transpose-matrix-3d [m] [(nth m 0) (nth m 4) (nth m 8) (nth m 12) (nth m 1) (nth m 5) (nth m 9) (nth m 13) (nth m 2) (nth m 6) (nth m 10) (nth m 14) (nth m 3) (nth m 7) (nth m 11) (nth m 15)])