1.2.3-SNAPSHOT permalink Arrow_down_16x16
  • (abs A)
Returns the absolute value of the elements in the given matrix, sequence or number.
Equivalent to R's abs function.

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:545 top

(defn abs
  "Returns the absolute value of the elements in the given matrix, sequence or number.
   Equivalent to R's abs function."
   ([A] (transform-with A #(Math/abs (float %)) abs)))
Vars in incanter.core/abs: defn float
Used in 0 other vars

Comments top

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