Liking cljdoc? Tell your friends :D

clojure.core.matrix.impl.ndarray-macro


aadd-2dcljmacro

(aadd-2d data strides offset i j increment)

Increments value inside NDArray by a given amount

Increments value inside NDArray by a given amount
raw docstring

aget-1dcljmacro

(aget-1d data strides offset i)

Like aget, but for 1-dimensional NDArray

Like aget, but for 1-dimensional NDArray
raw docstring

aget-1d*cljmacro

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

aget-2dcljmacro

(aget-2d data strides offset i j)

Like aget, but for 2-dimensional NDArray

Like aget, but for 2-dimensional NDArray
raw docstring

aget-2d*cljmacro

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

aget-ndcljmacro

(aget-nd data strides offset idxs)

Like aget, but for n-dimensional NDArray

Like aget, but for n-dimensional NDArray
raw docstring

aset-1dcljmacro

(aset-1d data strides offset i x)

Like aset, but for 1-dimensional NDArray

Like aset, but for 1-dimensional NDArray
raw docstring

aset-1d*cljmacro

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

aset-2dcljmacro

(aset-2d data strides offset i j x)

Like aset, but for 2-dimensional NDArray

Like aset, but for 2-dimensional NDArray
raw docstring

aset-2d*cljmacro

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

aset-ndcljmacro

(aset-nd data strides offset idxs x)

Like aset, but for n-dimensional NDArray

Like aset, but for n-dimensional NDArray
raw docstring

expose-ndarrayscljmacro

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

fold-overcljmacro

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

fold-over-1d-internalcljmacro

(fold-over-1d-internal [m1 & _ :as matrices] init body)

fold-over-2d-internalcljmacro

(fold-over-2d-internal [m1 & _ :as matrices] init body)

get-strided-idxcljmacro

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

loop-overcljmacro

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

loop-over-0d-internalcljmacro

(loop-over-0d-internal [m1 & _ :as matrices] body)

loop-over-1d-internalcljmacro

(loop-over-1d-internal [m1 & _ :as matrices] body)

loop-over-2d-internalcljmacro

(loop-over-2d-internal [m1 & _ :as matrices] body)

loop-over-nd-internalcljmacro

(loop-over-nd-internal [m1 & _ :as matrices] body)

m-fieldclj

(m-field m-name field-name)

m-typed-fieldclj

(m-typed-field m-name field-name type-name)

unroll-predicateclj

(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))`
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