Liking cljdoc? Tell your friends :D
Mostly cljs.
Exceptions indicated.

thi.ng.ndarray.core


ctor-registryclj/s


make-raw-ndarray1-booleanclj

(make-raw-ndarray1-boolean data__1073__auto__
                           o__1074__auto__
                           [_stride0]
                           [_shape0])

make-raw-ndarray1-float32clj/s

(make-raw-ndarray1-float32 data__1073__auto__
                           o__1074__auto__
                           [_stride0]
                           [_shape0])

make-raw-ndarray1-float64clj/s

(make-raw-ndarray1-float64 data__1073__auto__
                           o__1074__auto__
                           [_stride0]
                           [_shape0])

make-raw-ndarray1-genericclj/s

(make-raw-ndarray1-generic data__1073__auto__
                           o__1074__auto__
                           [_stride0]
                           [_shape0])

make-raw-ndarray1-int16clj/s

(make-raw-ndarray1-int16 data__1073__auto__
                         o__1074__auto__
                         [_stride0]
                         [_shape0])

make-raw-ndarray1-int32clj/s

(make-raw-ndarray1-int32 data__1073__auto__
                         o__1074__auto__
                         [_stride0]
                         [_shape0])

make-raw-ndarray1-int64clj

(make-raw-ndarray1-int64 data__1073__auto__
                         o__1074__auto__
                         [_stride0]
                         [_shape0])

make-raw-ndarray1-int8clj/s

(make-raw-ndarray1-int8 data__1073__auto__ o__1074__auto__ [_stride0] [_shape0])

make-raw-ndarray1-uint16cljs

(make-raw-ndarray1-uint16 data__1073__auto__
                          o__1074__auto__
                          [_stride0]
                          [_shape0])

make-raw-ndarray1-uint32cljs

(make-raw-ndarray1-uint32 data__1073__auto__
                          o__1074__auto__
                          [_stride0]
                          [_shape0])

make-raw-ndarray1-uint8cljs

(make-raw-ndarray1-uint8 data__1073__auto__
                         o__1074__auto__
                         [_stride0]
                         [_shape0])

make-raw-ndarray1-uint8-clampedcljs

(make-raw-ndarray1-uint8-clamped data__1073__auto__
                                 o__1074__auto__
                                 [_stride0]
                                 [_shape0])

make-raw-ndarray2-booleanclj

(make-raw-ndarray2-boolean data__1073__auto__
                           o__1074__auto__
                           [_stride0 _stride1]
                           [_shape0 _shape1])

make-raw-ndarray2-float32clj/s

(make-raw-ndarray2-float32 data__1073__auto__
                           o__1074__auto__
                           [_stride0 _stride1]
                           [_shape0 _shape1])

make-raw-ndarray2-float64clj/s

(make-raw-ndarray2-float64 data__1073__auto__
                           o__1074__auto__
                           [_stride0 _stride1]
                           [_shape0 _shape1])

make-raw-ndarray2-genericclj/s

(make-raw-ndarray2-generic data__1073__auto__
                           o__1074__auto__
                           [_stride0 _stride1]
                           [_shape0 _shape1])

make-raw-ndarray2-int16clj/s

(make-raw-ndarray2-int16 data__1073__auto__
                         o__1074__auto__
                         [_stride0 _stride1]
                         [_shape0 _shape1])

make-raw-ndarray2-int32clj/s

(make-raw-ndarray2-int32 data__1073__auto__
                         o__1074__auto__
                         [_stride0 _stride1]
                         [_shape0 _shape1])

make-raw-ndarray2-int64clj

(make-raw-ndarray2-int64 data__1073__auto__
                         o__1074__auto__
                         [_stride0 _stride1]
                         [_shape0 _shape1])

make-raw-ndarray2-int8clj/s

(make-raw-ndarray2-int8 data__1073__auto__
                        o__1074__auto__
                        [_stride0 _stride1]
                        [_shape0 _shape1])

make-raw-ndarray2-uint16cljs

(make-raw-ndarray2-uint16 data__1073__auto__
                          o__1074__auto__
                          [_stride0 _stride1]
                          [_shape0 _shape1])

make-raw-ndarray2-uint32cljs

(make-raw-ndarray2-uint32 data__1073__auto__
                          o__1074__auto__
                          [_stride0 _stride1]
                          [_shape0 _shape1])

make-raw-ndarray2-uint8cljs

(make-raw-ndarray2-uint8 data__1073__auto__
                         o__1074__auto__
                         [_stride0 _stride1]
                         [_shape0 _shape1])

make-raw-ndarray2-uint8-clampedcljs

(make-raw-ndarray2-uint8-clamped data__1073__auto__
                                 o__1074__auto__
                                 [_stride0 _stride1]
                                 [_shape0 _shape1])

make-raw-ndarray3-booleanclj

(make-raw-ndarray3-boolean data__1073__auto__
                           o__1074__auto__
                           [_stride0 _stride1 _stride2]
                           [_shape0 _shape1 _shape2])

make-raw-ndarray3-float32clj/s

(make-raw-ndarray3-float32 data__1073__auto__
                           o__1074__auto__
                           [_stride0 _stride1 _stride2]
                           [_shape0 _shape1 _shape2])

make-raw-ndarray3-float64clj/s

(make-raw-ndarray3-float64 data__1073__auto__
                           o__1074__auto__
                           [_stride0 _stride1 _stride2]
                           [_shape0 _shape1 _shape2])

make-raw-ndarray3-genericclj/s

(make-raw-ndarray3-generic data__1073__auto__
                           o__1074__auto__
                           [_stride0 _stride1 _stride2]
                           [_shape0 _shape1 _shape2])

make-raw-ndarray3-int16clj/s

(make-raw-ndarray3-int16 data__1073__auto__
                         o__1074__auto__
                         [_stride0 _stride1 _stride2]
                         [_shape0 _shape1 _shape2])

make-raw-ndarray3-int32clj/s

(make-raw-ndarray3-int32 data__1073__auto__
                         o__1074__auto__
                         [_stride0 _stride1 _stride2]
                         [_shape0 _shape1 _shape2])

make-raw-ndarray3-int64clj

(make-raw-ndarray3-int64 data__1073__auto__
                         o__1074__auto__
                         [_stride0 _stride1 _stride2]
                         [_shape0 _shape1 _shape2])

make-raw-ndarray3-int8clj/s

(make-raw-ndarray3-int8 data__1073__auto__
                        o__1074__auto__
                        [_stride0 _stride1 _stride2]
                        [_shape0 _shape1 _shape2])

make-raw-ndarray3-uint16cljs

(make-raw-ndarray3-uint16 data__1073__auto__
                          o__1074__auto__
                          [_stride0 _stride1 _stride2]
                          [_shape0 _shape1 _shape2])

make-raw-ndarray3-uint32cljs

(make-raw-ndarray3-uint32 data__1073__auto__
                          o__1074__auto__
                          [_stride0 _stride1 _stride2]
                          [_shape0 _shape1 _shape2])

make-raw-ndarray3-uint8cljs

(make-raw-ndarray3-uint8 data__1073__auto__
                         o__1074__auto__
                         [_stride0 _stride1 _stride2]
                         [_shape0 _shape1 _shape2])

make-raw-ndarray3-uint8-clampedcljs

(make-raw-ndarray3-uint8-clamped data__1073__auto__
                                 o__1074__auto__
                                 [_stride0 _stride1 _stride2]
                                 [_shape0 _shape1 _shape2])

make-raw-ndarray4-booleanclj

(make-raw-ndarray4-boolean data__1073__auto__
                           o__1074__auto__
                           [_stride0 _stride1 _stride2 _stride3]
                           [_shape0 _shape1 _shape2 _shape3])

make-raw-ndarray4-float32clj/s

(make-raw-ndarray4-float32 data__1073__auto__
                           o__1074__auto__
                           [_stride0 _stride1 _stride2 _stride3]
                           [_shape0 _shape1 _shape2 _shape3])

make-raw-ndarray4-float64clj/s

(make-raw-ndarray4-float64 data__1073__auto__
                           o__1074__auto__
                           [_stride0 _stride1 _stride2 _stride3]
                           [_shape0 _shape1 _shape2 _shape3])

make-raw-ndarray4-genericclj/s

(make-raw-ndarray4-generic data__1073__auto__
                           o__1074__auto__
                           [_stride0 _stride1 _stride2 _stride3]
                           [_shape0 _shape1 _shape2 _shape3])

make-raw-ndarray4-int16clj/s

(make-raw-ndarray4-int16 data__1073__auto__
                         o__1074__auto__
                         [_stride0 _stride1 _stride2 _stride3]
                         [_shape0 _shape1 _shape2 _shape3])

make-raw-ndarray4-int32clj/s

(make-raw-ndarray4-int32 data__1073__auto__
                         o__1074__auto__
                         [_stride0 _stride1 _stride2 _stride3]
                         [_shape0 _shape1 _shape2 _shape3])

make-raw-ndarray4-int64clj

(make-raw-ndarray4-int64 data__1073__auto__
                         o__1074__auto__
                         [_stride0 _stride1 _stride2 _stride3]
                         [_shape0 _shape1 _shape2 _shape3])

make-raw-ndarray4-int8clj/s

(make-raw-ndarray4-int8 data__1073__auto__
                        o__1074__auto__
                        [_stride0 _stride1 _stride2 _stride3]
                        [_shape0 _shape1 _shape2 _shape3])

make-raw-ndarray4-uint16cljs

(make-raw-ndarray4-uint16 data__1073__auto__
                          o__1074__auto__
                          [_stride0 _stride1 _stride2 _stride3]
                          [_shape0 _shape1 _shape2 _shape3])

make-raw-ndarray4-uint32cljs

(make-raw-ndarray4-uint32 data__1073__auto__
                          o__1074__auto__
                          [_stride0 _stride1 _stride2 _stride3]
                          [_shape0 _shape1 _shape2 _shape3])

make-raw-ndarray4-uint8cljs

(make-raw-ndarray4-uint8 data__1073__auto__
                         o__1074__auto__
                         [_stride0 _stride1 _stride2 _stride3]
                         [_shape0 _shape1 _shape2 _shape3])

make-raw-ndarray4-uint8-clampedcljs

(make-raw-ndarray4-uint8-clamped data__1073__auto__
                                 o__1074__auto__
                                 [_stride0 _stride1 _stride2 _stride3]
                                 [_shape0 _shape1 _shape2 _shape3])

ndarrayclj/s

(ndarray type data)
(ndarray type data shape)

NDArray1float32cljs


NDArray1float64cljs


NDArray1genericcljs


NDArray1int16cljs


NDArray1int32cljs


NDArray1int8cljs


NDArray1uint16cljs


NDArray1uint32cljs


NDArray1uint8cljs


NDArray1uint8-clampedcljs


NDArray2float32cljs


NDArray2float64cljs


NDArray2genericcljs


NDArray2int16cljs


NDArray2int32cljs


NDArray2int8cljs


NDArray2uint16cljs


NDArray2uint32cljs


NDArray2uint8cljs


NDArray2uint8-clampedcljs


NDArray3float32cljs


NDArray3float64cljs


NDArray3genericcljs


NDArray3int16cljs


NDArray3int32cljs


NDArray3int8cljs


NDArray3uint16cljs


NDArray3uint32cljs


NDArray3uint8cljs


NDArray3uint8-clampedcljs


NDArray4float32cljs


NDArray4float64cljs


NDArray4genericcljs


NDArray4int16cljs


NDArray4int32cljs


NDArray4int8cljs


NDArray4uint16cljs


NDArray4uint32cljs


NDArray4uint8cljs


NDArray4uint8-clampedcljs


orderclj/s

(order coll)

PNDArrayclj/sprotocol

index-seqclj/s

(index-seq _)

Returns a lazy seq of all array indices in an ndarray view.

Returns a lazy seq of all array indices in an ndarray view.

stepclj/s

(step _ x)
(step _ x y)
(step _ x y z)
(step _ x y z w)

Returns new ndarray view with stride steps/direction changed as per given vector. Values >1 result in skipping of items in that dimension, negative value flip direction, nil keeps current stride for that dimension. Does not mutate backing array.

Returns new ndarray view with stride steps/direction changed as
per given vector. Values >1 result in skipping of items in that
dimension, negative value flip direction, `nil` keeps current
stride for that dimension. Does not mutate backing array.

strideclj/s

(stride _)

Returns a vector of the ndarray's strides in each dimension.

Returns a vector of the ndarray's strides in each dimension.

get-atclj/s

(get-at _ x)
(get-at _ x y)
(get-at _ x y z)
(get-at _ x y z w)

Returns value at given position in an ndarray view (without bounds check, assumes position is safe).

Returns value at given position in an ndarray view (without bounds check,
assumes position is safe).

index-posclj/s

(index-pos _ i)

Computes relative position in an ndarray view from given absolute array index.

Computes relative position in an ndarray view from given absolute
array index.

dataclj/s

(data _)

Returns the backing data array.

Returns the backing data array.

get-at-indexclj/s

(get-at-index _ i)

Returns value at given global index in an ndarray view's backing array.

Returns value at given global index in an ndarray view's backing
array.

update-at-safeclj/s

(update-at-safe _ x f)
(update-at-safe _ x y f)
(update-at-safe _ x y z f)
(update-at-safe _ x y z w f)

Same as update-at but with bounds check.

Same as `update-at` but with bounds check.

data-typeclj/s

(data-type _)

Returns the ndarray's type id (keyword).

Returns the ndarray's type id (keyword).

offsetclj/s

(offset _)

Returns the ndarray view's start index in the backing data array

Returns the ndarray view's start index in the backing data array

set-atclj/s

(set-at _ x v)
(set-at _ x y v)
(set-at _ x y z v)
(set-at _ x y z w v)

Sets backing data array at given position in an ndarray view to new value v (without bounds check). Returns same NDArray instance.

Sets backing data array at given position in an ndarray view to
new value v (without bounds check). Returns same NDArray instance.

transposeclj/s

(transpose _ x)
(transpose _ x y)
(transpose _ x y z)
(transpose _ x y z w)

Returns a new ndarray view with stride order/axes swapped as per given vector. Does not mutate backing array.

Returns a new ndarray view with stride order/axes swapped as per
given vector. Does not mutate backing array.

get-at-safeclj/s

(get-at-safe _ x)
(get-at-safe _ x y)
(get-at-safe _ x y z)
(get-at-safe _ x y z w)

Returns value at given position in an ndarray view (with bounds check)

Returns value at given position in an ndarray view (with bounds
check)

pickclj/s

(pick _ x)
(pick _ x y)
(pick _ x y z)
(pick _ x y z w)

Generalized getter. Accepts n args (e.g. 3 for a 3D ndarray), each selecting a dimension slice (nil skips a dimension). Returns new ndarray view of selection, or if selecting in all dimensions, returns array value at that point. Does not mutate backing array.

Generalized getter. Accepts n args (e.g. 3 for a 3D ndarray),
each selecting a dimension slice (nil skips a dimension). Returns
new ndarray view of selection, or if selecting in all dimensions,
returns array value at that point. Does not mutate backing array.

truncate-lclj/s

(truncate-l _ x)
(truncate-l _ x y)
(truncate-l _ x y z)
(truncate-l _ x y z w)

Returns a new ndarray of same type with its shape truncated at lower end, effectively shifting its start index/offset towards the center of the view. Does not mutate backing array.

Returns a new ndarray of same type with its shape truncated at
lower end, effectively shifting its start index/offset towards the
center of the view. Does not mutate backing array.

update-atclj/s

(update-at _ x f)
(update-at _ x y f)
(update-at _ x y z f)
(update-at _ x y z w f)

Applies function f to given position in an ndarray view and sets backing array at same position to the return value of f. The function f itself accepts m args: first the n coordinates of the position and the value at this position

Applies function f to given position in an ndarray view and sets
backing array at same position to the return value of f. The
function f itself accepts m args: first the n coordinates of the
position and the value at this position

index-atclj/s

(index-at _ x)
(index-at _ x y)
(index-at _ x y z)
(index-at _ x y z w)

Returns the global index into the backing array for given position in an ndarray view.

Returns the global index into the backing array for given
position in an ndarray view.

set-at-indexclj/s

(set-at-index _ i v)

Sets backing data array at given global index to new value v (without bounds check). Returns same NDArray instance.

Sets backing data array at given global index to new value
v (without bounds check). Returns same NDArray instance.

set-at-safeclj/s

(set-at-safe _ x v)
(set-at-safe _ x y v)
(set-at-safe _ x y z v)
(set-at-safe _ x y z w v)

Sets backing array at given position in an ndarray view to new value v (with bounds check). Returns same NDArray instance.

Sets backing array at given position in an ndarray view to
new value v (with bounds check). Returns same NDArray instance.

truncate-hclj/s

(truncate-h _ x)
(truncate-h _ x y)
(truncate-h _ x y z)
(truncate-h _ x y z w)

Returns a new ndarray of same type with its shape truncated at top end. Negative args are considered offsets from current shape. nil values keep shape in that dimension. Does not mutate backing array.

Returns a new ndarray of same type with its shape truncated at
top end. Negative args are considered offsets from current shape.
nil values keep shape in that dimension. Does not mutate backing
array.

update-at-indexclj/s

(update-at-index _ i f)

Applies function f to given global index in an ndarray's view backing array and sets it to the return value of f. The function f itself accepts 2 args: the supplied array index and the array's value at this index

Applies function f to given global index in an ndarray's view
backing array and sets it to the return value of f. The
function f itself accepts 2 args: the supplied array index
and the array's value at this index

sizeclj/s

(size _)

Returns the element count of an ndarray view

Returns the element count of an ndarray view

position-seqclj/s

(position-seq _)

Returns a lazy seq of all position vectors in an ndarray view.

Returns a lazy seq of all position vectors in an ndarray view.

dimensionclj/s

(dimension _)

Returns the ndarray's dimension.

Returns the ndarray's dimension.

shapeclj/s

(shape _)

Returns a vector of the ndarray's sizes in each dimension.

Returns a vector of the ndarray's sizes in each dimension.

extractclj/s

(extract _)

Creates a new backing array of only values in given ndarray view and returns new ndarray of same shape, but with strides reset to defaults order.

Creates a new backing array of only values in given ndarray view
and returns new ndarray of same shape, but with strides reset to
defaults order.

shape->strideclj/s

(shape->stride shape)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close