(make-raw-ndarray1-boolean data__1073__auto__
o__1074__auto__
[_stride0]
[_shape0])
(make-raw-ndarray1-float32 data__1073__auto__
o__1074__auto__
[_stride0]
[_shape0])
(make-raw-ndarray1-float64 data__1073__auto__
o__1074__auto__
[_stride0]
[_shape0])
(make-raw-ndarray1-generic data__1073__auto__
o__1074__auto__
[_stride0]
[_shape0])
(make-raw-ndarray1-int16 data__1073__auto__
o__1074__auto__
[_stride0]
[_shape0])
(make-raw-ndarray1-int32 data__1073__auto__
o__1074__auto__
[_stride0]
[_shape0])
(make-raw-ndarray1-int64 data__1073__auto__
o__1074__auto__
[_stride0]
[_shape0])
(make-raw-ndarray1-int8 data__1073__auto__ o__1074__auto__ [_stride0] [_shape0])
(make-raw-ndarray1-uint16 data__1073__auto__
o__1074__auto__
[_stride0]
[_shape0])
(make-raw-ndarray1-uint32 data__1073__auto__
o__1074__auto__
[_stride0]
[_shape0])
(make-raw-ndarray1-uint8 data__1073__auto__
o__1074__auto__
[_stride0]
[_shape0])
(make-raw-ndarray1-uint8-clamped data__1073__auto__
o__1074__auto__
[_stride0]
[_shape0])
(make-raw-ndarray2-boolean data__1073__auto__
o__1074__auto__
[_stride0 _stride1]
[_shape0 _shape1])
(make-raw-ndarray2-float32 data__1073__auto__
o__1074__auto__
[_stride0 _stride1]
[_shape0 _shape1])
(make-raw-ndarray2-float64 data__1073__auto__
o__1074__auto__
[_stride0 _stride1]
[_shape0 _shape1])
(make-raw-ndarray2-generic data__1073__auto__
o__1074__auto__
[_stride0 _stride1]
[_shape0 _shape1])
(make-raw-ndarray2-int16 data__1073__auto__
o__1074__auto__
[_stride0 _stride1]
[_shape0 _shape1])
(make-raw-ndarray2-int32 data__1073__auto__
o__1074__auto__
[_stride0 _stride1]
[_shape0 _shape1])
(make-raw-ndarray2-int64 data__1073__auto__
o__1074__auto__
[_stride0 _stride1]
[_shape0 _shape1])
(make-raw-ndarray2-int8 data__1073__auto__
o__1074__auto__
[_stride0 _stride1]
[_shape0 _shape1])
(make-raw-ndarray2-uint16 data__1073__auto__
o__1074__auto__
[_stride0 _stride1]
[_shape0 _shape1])
(make-raw-ndarray2-uint32 data__1073__auto__
o__1074__auto__
[_stride0 _stride1]
[_shape0 _shape1])
(make-raw-ndarray2-uint8 data__1073__auto__
o__1074__auto__
[_stride0 _stride1]
[_shape0 _shape1])
(make-raw-ndarray2-uint8-clamped data__1073__auto__
o__1074__auto__
[_stride0 _stride1]
[_shape0 _shape1])
(make-raw-ndarray3-boolean data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2]
[_shape0 _shape1 _shape2])
(make-raw-ndarray3-float32 data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2]
[_shape0 _shape1 _shape2])
(make-raw-ndarray3-float64 data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2]
[_shape0 _shape1 _shape2])
(make-raw-ndarray3-generic data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2]
[_shape0 _shape1 _shape2])
(make-raw-ndarray3-int16 data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2]
[_shape0 _shape1 _shape2])
(make-raw-ndarray3-int32 data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2]
[_shape0 _shape1 _shape2])
(make-raw-ndarray3-int64 data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2]
[_shape0 _shape1 _shape2])
(make-raw-ndarray3-int8 data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2]
[_shape0 _shape1 _shape2])
(make-raw-ndarray3-uint16 data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2]
[_shape0 _shape1 _shape2])
(make-raw-ndarray3-uint32 data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2]
[_shape0 _shape1 _shape2])
(make-raw-ndarray3-uint8 data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2]
[_shape0 _shape1 _shape2])
(make-raw-ndarray3-uint8-clamped data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2]
[_shape0 _shape1 _shape2])
(make-raw-ndarray4-boolean data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2 _stride3]
[_shape0 _shape1 _shape2 _shape3])
(make-raw-ndarray4-float32 data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2 _stride3]
[_shape0 _shape1 _shape2 _shape3])
(make-raw-ndarray4-float64 data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2 _stride3]
[_shape0 _shape1 _shape2 _shape3])
(make-raw-ndarray4-generic data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2 _stride3]
[_shape0 _shape1 _shape2 _shape3])
(make-raw-ndarray4-int16 data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2 _stride3]
[_shape0 _shape1 _shape2 _shape3])
(make-raw-ndarray4-int32 data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2 _stride3]
[_shape0 _shape1 _shape2 _shape3])
(make-raw-ndarray4-int64 data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2 _stride3]
[_shape0 _shape1 _shape2 _shape3])
(make-raw-ndarray4-int8 data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2 _stride3]
[_shape0 _shape1 _shape2 _shape3])
(make-raw-ndarray4-uint16 data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2 _stride3]
[_shape0 _shape1 _shape2 _shape3])
(make-raw-ndarray4-uint32 data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2 _stride3]
[_shape0 _shape1 _shape2 _shape3])
(make-raw-ndarray4-uint8 data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2 _stride3]
[_shape0 _shape1 _shape2 _shape3])
(make-raw-ndarray4-uint8-clamped data__1073__auto__
o__1074__auto__
[_stride0 _stride1 _stride2 _stride3]
[_shape0 _shape1 _shape2 _shape3])
(ndarray type data)
(ndarray type data shape)
(order coll)
(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.
(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.
(stride _)
Returns a vector of the ndarray's strides in each dimension.
Returns a vector of the ndarray's strides in each dimension.
(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-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.
(data _)
Returns the backing data array.
Returns the backing data array.
(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-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-type _)
Returns the ndarray's type id (keyword).
Returns the ndarray's type id (keyword).
(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-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.
(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-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)
(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-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-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-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-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-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-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-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
(size _)
Returns the element count of an ndarray view
Returns the element count of an ndarray view
(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.
(dimension _)
Returns the ndarray's dimension.
Returns the ndarray's dimension.
(shape _)
Returns a vector of the ndarray's sizes in each dimension.
Returns a vector of the ndarray's sizes in each dimension.
(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->stride shape)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close