Liking cljdoc? Tell your friends :D

clojure.core.matrix.utils


abutnthcljmacro

(abutnth i xs)

areversecljmacro

(areverse xs)

base-index-seq-for-shapeclj

(base-index-seq-for-shape sh)

broadcast-shapeclj

(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)
raw docstring

c-forcljmacro

(c-for loops & body)

C-like loop with nested loops support

C-like loop with nested loops support
raw docstring

copy-double-arrayclj

(copy-double-array arr)

Returns a copy of a double array

Returns a copy of a double array
raw docstring

copy-long-arrayclj

(copy-long-array arr)

Returns a copy of a long array

Returns a copy of a long array
raw docstring

copy-object-arrayclj

(copy-object-array arr)

Returns a copy of a long array

Returns a copy of a long array
raw docstring

doseq-indexedcljmacro

(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
raw docstring

enhance-protocol-kvclj

(enhance-protocol-kv [name p])

Transform MapEntry to just map with some additional fields

Transform MapEntry to just map with some additional fields
raw docstring

errorcljmacro

(error & vals)

Throws an error with the provided message(s)

Throws an error with the provided message(s)
raw docstring

error?cljmacro

(error? & body)

Returns true if executing body throws an error, false otherwise.

Returns true if executing body throws an error, false otherwise.
raw docstring

extract-protocolsclj

(extract-protocols)

Extracts protocol info from clojure.core.matrix.protocols

Extracts protocol info from clojure.core.matrix.protocols
raw docstring

iaecljmacro

(iae exception-str)

Throws IllegalArgumentException with provided string

Throws IllegalArgumentException with provided string
raw docstring

iae-when-notcljmacro

(iae-when-not pred? exception-str)

Throws an IllegalArgumentException when the predicate is not satisfied

Throws an IllegalArgumentException when the predicate is not satisfied
raw docstring

is-double-array?cljmacro

(is-double-array? m)

is-long-array?cljmacro

(is-long-array? m)

is-object-array?cljmacro

(is-object-array? m)

java-array?cljmacro

(java-array? m)

long-array-ofclj

(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.
raw docstring

long-rangeclj

(long-range end)

Returns a range of longs in a long[] array

Returns a range of longs in a long[] array
raw docstring

object-array-ofclj

(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.
raw docstring

protocol?clj

(protocol? p)

Returns true if an argument is a protocol'

Returns true if an argument is a protocol'
raw docstring

same-shape-object?clj

(same-shape-object? sa sb)

Returns true if two shapes are the same.

Returns true if two shapes are the same.
raw docstring

scalar-coercecljmacro

(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
raw docstring

to-long-arrayclj

(to-long-array data)

TODOcljmacro

(TODO)

valid-shape?clj

(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.
raw docstring

xorclj

(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
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close