(aadd-2d data strides offset i j increment)Increments value inside NDArray by a given amount
Increments value inside NDArray by a given amount
(aget-1d data strides offset i)Like aget, but for 1-dimensional NDArray
Like aget, but for 1-dimensional NDArray
(aget-1d* m i)Like aget, but for 1-dimensional NDArray. Assumes that it's inside
expose-ndarrays
Like aget, but for 1-dimensional NDArray. Assumes that it's inside `expose-ndarrays`
(aget-2d data strides offset i j)Like aget, but for 2-dimensional NDArray
Like aget, but for 2-dimensional NDArray
(aget-2d* m i j)Like aget, but for 2-dimensional NDArray. Assumes that it's inside
expose-ndarrays
Like aget, but for 2-dimensional NDArray. Assumes that it's inside `expose-ndarrays`
(aget-nd data strides offset idxs)Like aget, but for n-dimensional NDArray
Like aget, but for n-dimensional NDArray
(aset-1d data strides offset i x)Like aset, but for 1-dimensional NDArray
Like aset, but for 1-dimensional NDArray
(aset-1d* m i x)Like aset, but for 1-dimensional NDArray. Assumes that it's inside
expose-ndarrays
Like aset, but for 1-dimensional NDArray. Assumes that it's inside `expose-ndarrays`
(aset-2d data strides offset i j x)Like aset, but for 2-dimensional NDArray
Like aset, but for 2-dimensional NDArray
(aset-2d* m i j x)Like aset, but for 2-dimensional NDArray. Assumes that it's inside
expose-ndarrays
Like aset, but for 2-dimensional NDArray. Assumes that it's inside `expose-ndarrays`
(aset-nd data strides offset idxs x)Like aset, but for n-dimensional NDArray
Like aset, but for n-dimensional NDArray
(expose-ndarrays matrices & body)An anaphoric macro that takes a list of names of NDArrays and provides
properly hinted bindings for NDArray fields. For example,
(expose-ndarrays [a b]) will bind names a-shape, b-shape, a-offset
and so on in it's body
An anaphoric macro that takes a list of names of NDArrays and provides properly hinted bindings for NDArray fields. For example, `(expose-ndarrays [a b])` will bind names `a-shape`, `b-shape`, `a-offset` and so on in it's body
(fold-over [m1 & _ :as matrices] init body)Helper macro for iterating over NDArray (or NDArrays) in efficient manner
using an accumulator. Assumes that it's inside with-magic and all
operands are of the same type (current 'magic' type) and shape; striding
schemes can be different. Matrices argument should be a list of locals.
Anaphoric arguments that can be used in a body given that [a, b] are
provided: a-shape, b-shape, a-data, b-data, a-strides, b-strides, a-offset,
b-offset, a-ndims, b-ndims, a-idx, b-idx (current indeces into a and b),
loop-acc (current value of accumulator). The passed body should return a
new value of accumulator; it will be casted to current 'magic' type
Helper macro for iterating over NDArray (or NDArrays) in efficient manner using an accumulator. Assumes that it's inside `with-magic` and all operands are of the same type (current 'magic' type) and shape; striding schemes can be different. Matrices argument should be a list of locals. Anaphoric arguments that can be used in a body given that [a, b] are provided: a-shape, b-shape, a-data, b-data, a-strides, b-strides, a-offset, b-offset, a-ndims, b-ndims, a-idx, b-idx (current indeces into a and b), loop-acc (current value of accumulator). The passed body should return a new value of accumulator; it will be casted to current 'magic' type
(fold-over-1d-internal [m1 & _ :as matrices] init body)(fold-over-2d-internal [m1 & _ :as matrices] init body)(get-strided-idx strides offset idxs)Returns an index inside of a strided array given a primitive long arrays of indexes and strides
Returns an index inside of a strided array given a primitive long arrays of indexes and strides
(loop-over [m1 & _ :as matrices] body)Helper macro for iterating over NDArray (or NDArrays) in efficient manner.
Assumes that it's inside with-magic and all operands are of the same
type (current 'magic' type) and shape; striding schemes can be different.
Matrices argument should be a list of locals. Anaphoric arguments that
can be used in a body given that [a, b] are provided: a-shape, b-shape,
a-data, b-data, a-strides, b-strides, a-offset, b-offset, a-ndims, b-ndims,
a-idx, b-idx (current indexes into a and b)
Helper macro for iterating over NDArray (or NDArrays) in efficient manner. Assumes that it's inside `with-magic` and all operands are of the same type (current 'magic' type) and shape; striding schemes can be different. Matrices argument should be a list of locals. Anaphoric arguments that can be used in a body given that [a, b] are provided: a-shape, b-shape, a-data, b-data, a-strides, b-strides, a-offset, b-offset, a-ndims, b-ndims, a-idx, b-idx (current indexes into a and b)
(loop-over-0d-internal [m1 & _ :as matrices] body)(loop-over-1d-internal [m1 & _ :as matrices] body)(loop-over-2d-internal [m1 & _ :as matrices] body)(loop-over-nd-internal [m1 & _ :as matrices] body)(m-field m-name field-name)(m-typed-field m-name field-name type-name)(unroll-predicate pred xs)Generates code for unrolling a binary predicate over a list of provided
symbols. For example, (unroll-predicate 'pred ['a 'b 'c]) will return
'(and (pred a b) (pred b c))
Generates code for unrolling a binary predicate over a list of provided symbols. For example, `(unroll-predicate 'pred ['a 'b 'c])` will return `'(and (pred a b) (pred b c))`
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 |