Returns the transpose of the given matrix. Equivalent to R's t function
Examples:
(def A (matrix [[1 2 3]
[4 5 6]
[7 8 9]]))
(trans A)
(defn ^Matrix trans
" Returns the transpose of the given matrix. Equivalent to R's t function
Examples:
(def A (matrix [[1 2 3]
[4 5 6]
[7 8 9]]))
(trans A)
"
([mat]
(cond
(matrix? mat)
(.viewDice ^Matrix mat)
(coll? mat)
(.viewDice ^Matrix (matrix ^double-array mat)))))
Comments top
No comments for trans. Log in to add a comment.