(matrix-for [bindings shape] & body)Constructs a matrix by iterating the bindings over the given shape.
Example: (matrix-for [[i j] [3 3]] (+ i j))
Constructs a matrix by iterating the bindings over the given shape. Example: (matrix-for [[i j] [3 3]] (+ i j))
(raw-shape m)Returns the raw shape of a matrix. May be any type that suports seq, including Java arrays. The advantage of this methods is that it avoids converting the shape to a Clojure vector (the behaviour of shape).
Returns the raw shape of a matrix. May be any type that suports seq, including Java arrays. The advantage of this methods is that it avoids converting the shape to a Clojure vector (the behaviour of shape).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |