1.2.3-SNAPSHOT permalink Arrow_down_16x16

identity-matrix

incanter.core

  • (identity-matrix n)
Returns an n-by-n identity matrix.

Examples:
(identity-matrix 4)

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

(defn identity-matrix
"   Returns an n-by-n identity matrix.

    Examples:
      (identity-matrix 4)

"
([^Integer n] (Matrix. (.identity DoubleFactory2D/dense n))))
Vars in incanter.core/identity-matrix: defn
Used in 0 other vars

Comments top

No comments for identity-matrix. Log in to add a comment.