1.2.3-SNAPSHOT Arrow_down_16x16

transform-with

incanter.internal

  • (transform-with A op fun)

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/internal.clj:53 top

(defmacro ^Matrix transform-with [A op fun]
  `(cond
    (is-matrix ~A)
      (.assign (.copy ~A) (. DoubleFunctions ~fun))
    (and (coll? ~A) (coll? (first ~A)))
      (.assign ^Matrix (make-matrix ~A) (. DoubleFunctions ~fun))
    (coll? ~A)
      (map ~op ~A)
    (number? ~A)
      (~op ~A)))
Vars in incanter.internal/transform-with: defmacro and apply coll? concat cond first hash-map list map number? seq with-meta
Used in 0 other vars

Comments top

No comments for transform-with. Log in to add a comment.