(abutnth i xs)(areverse xs)(base-index-seq-for-shape sh)(broadcast-shape a)(broadcast-shape a b)Returns the smallest compatible shape that a set of shapes can all broadcast to. Returns nil if this is not possible (i.e. the shapes are incompatible). Returns an empty list if both shape sequences are empty (i.e. represent scalars)
Returns the smallest compatible shape that a set of shapes can all broadcast to. Returns nil if this is not possible (i.e. the shapes are incompatible). Returns an empty list if both shape sequences are empty (i.e. represent scalars)
(c-for loops & body)C-like loop with nested loops support
C-like loop with nested loops support
(copy-double-array arr)Returns a copy of a double array
Returns a copy of a double array
(copy-long-array arr)Returns a copy of a long array
Returns a copy of a long array
(copy-object-array arr)Returns a copy of a long array
Returns a copy of a long array
(doseq-indexed [val-sym values index-sym] & code)loops over a set of values, binding index-sym to the 0-based index of each value
loops over a set of values, binding index-sym to the 0-based index of each value
(enhance-protocol-kv [name p])Transform MapEntry to just map with some additional fields
Transform MapEntry to just map with some additional fields
(error & vals)Throws an error with the provided message(s)
Throws an error with the provided message(s)
(error? & body)Returns true if executing body throws an error, false otherwise.
Returns true if executing body throws an error, false otherwise.
(extract-protocols)Extracts protocol info from clojure.core.matrix.protocols
Extracts protocol info from clojure.core.matrix.protocols
(iae exception-str)Throws IllegalArgumentException with provided string
Throws IllegalArgumentException with provided string
(iae-when-not pred? exception-str)Throws an IllegalArgumentException when the predicate is not satisfied
Throws an IllegalArgumentException when the predicate is not satisfied
(is-double-array? m)(is-long-array? m)(is-object-array? m)(java-array? m)(long-array-of)(long-array-of a)(long-array-of a b)(long-array-of a b & more)Creates a long array with the specified values.
Creates a long array with the specified values.
(long-range end)Returns a range of longs in a long[] array
Returns a range of longs in a long[] array
(object-array-of)(object-array-of a)(object-array-of a b)(object-array-of a b & more)Creates a long array with the specified values.
Creates a long array with the specified values.
(protocol? p)Returns true if an argument is a protocol'
Returns true if an argument is a protocol'
(same-shape-object? sa sb)Returns true if two shapes are the same.
Returns true if two shapes are the same.
(scalar-coerce x)Macro to coerce to scalar value with an efficient dispatch sequence
Macro to coerce to scalar value with an efficient dispatch sequence
(to-long-array data)(TODO)(valid-shape? shape)returns true if the given object is a valid core.matrix array shape.
returns true if the given object is a valid core.matrix array shape.
(xor)(xor x)(xor x y)(xor x y & more)Returns the logical xor of a set of values, considered as booleans
Returns the logical xor of a set of values, considered as booleans
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 |