clojure.core.matrix.operators
Namespace for core.matrix operators.
These operators provide convenient notation for common array operations (e.g. +, *, -=) that
replace equivalent functions in clojure.core and operate on whole arrays at once. Behaviour
for numerical scalar values remians the same as clojure.core
*
Array multiply operator. Uses elementwise multiplication.
*=
(*= a)
(*= a b)
(*= a b & more)
Inplace matrix multiplication operator
+
(+)
(+ a)
(+ a b)
(+ a b & more)
Array addition operator. Equivalent to clojure.core.matrix/add.
+=
(+= a)
(+= a b)
(+= a b & more)
Inplace matrix addition operator
-
(- a)
(- a b)
(- a b & more)
Array subtraction operator. Equivalent to clojure.core.matrix/sub.
-=
(-= a)
(-= a b)
(-= a b & more)
Inplace matrix subtraction operator
/
(/ a)
(/ a b)
(/ a b & more)
Element-wise matrix division. Equivalent to clojure.core.matrix/div.
==
(==)
(== a)
(== a b)
(== a b & more)
Numerical array comparison. Equivalent to reducing with clojure.core.matrix/equals.
div=
(div= a)
(div= a b)
(div= a b & more)
Inplace matrix division operator
max
(max a)
(max a b)
(max a b & more)
Computes the element-wise max of arrays
min
(min a)
(min a b)
(min a b & more)
Computes the element-wise min of arrays