mikera / core.matrix

core.matrix : Multi-dimensional array programming API for Clojure
Other
700 stars 113 forks source link

Fix docstring, correcting order of arguments #354

Closed tschady closed 2 years ago

tschady commented 2 years ago

The order of arguments for norm is wrong in the example docstring for distance. Correct usage, via https://github.com/mikera/core.matrix/blob/develop/src/main/clojure/clojure/core/matrix/linear.cljc#L20

(defn norm
  ([m] (norm m 2))
  ([m p] (mp/norm m p)))
mikera commented 2 years ago

Looks good, thanks!