1.2.3-SNAPSHOT Arrow_down_16x16
  • (trans mat)
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)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source incanter/core.clj:176 top

(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)))))
Vars in incanter.core/trans: coll? cond defn
Used in 0 other vars

Comments top

No comments for trans. Log in to add a comment.