Liking cljdoc? Tell your friends :D

tupelo.array.mutable


Arrayclj/s

Plumatic Schema type definition for a 2-D array of values (a vector of vectors).

Plumatic Schema type definition for a 2-D array of values (a vector of vectors).
sourceraw docstring

array->col-valsclj/s

(array->col-vals arr)

Inputs: [arr :- Array] Returns: tsk/Vec

Returns the concatenation of all array cols.

Inputs: [arr :- Array]
Returns: tsk/Vec

Returns the concatenation of all array cols.
sourceraw docstring

array->colsclj/s≠

clj
(array->cols arr)
(array->cols arr col-idxs)
(array->cols arr low high)
cljs
(array->cols G__51812)
(array->cols G__51816 G__51817)
(array->cols G__51821 G__51822 G__51823)

Inputs: ([arr] [arr col-idxs :- [s/Int]] [arr :- Array low :- s/Int high :- s/Int]) Returns: [[s/Any]]

Usage: (array->cols arr) Returns all array cols (array->cols arr col-idxs) Returns array cols specified by col-idxs (array->cols arr low high) Returns array cols in half-open interval [low..high)

Inputs: ([arr] [arr col-idxs :- [s/Int]] [arr :- Array low :- s/Int high :- s/Int])
Returns: [[s/Any]]

Usage:
   (array->cols arr)           Returns all array cols
   (array->cols arr col-idxs)  Returns array cols specified by col-idxs
   (array->cols arr low high)  Returns array cols in half-open interval [low..high) 
sourceraw docstring

array->edn-rowsclj/s

(array->edn-rows arr)

Inputs: [arr :- Array] Returns: [[s/Any]]

Returns a persistant EDN data structure (vector-of-vectors) from the array.

Inputs: [arr :- Array]
Returns: [[s/Any]]

Returns a persistant EDN data structure (vector-of-vectors) from the array.
sourceraw docstring

array->row-valsclj/s

(array->row-vals arr)

Inputs: [arr :- Array] Returns: tsk/Vec

Returns the concatenation of all array rows.

Inputs: [arr :- Array]
Returns: tsk/Vec

Returns the concatenation of all array rows.
sourceraw docstring

array->rowsclj/s≠

clj
(array->rows arr)
(array->rows arr row-idxs)
(array->rows arr low high)
cljs
(array->rows G__51786)
(array->rows G__51790 G__51791)
(array->rows G__51795 G__51796 G__51797)

Inputs: ([arr] [arr row-idxs :- [s/Int]] [arr :- Array low :- s/Int high :- s/Int]) Returns: [[s/Any]]

Usage: (array->rows arr) Returns all array rows (array->rows arr row-idxs) Returns array rows specified by row-idxs (array->rows arr low high) Returns array rows in half-open interval [low..high)

Inputs: ([arr] [arr row-idxs :- [s/Int]] [arr :- Array low :- s/Int high :- s/Int])
Returns: [[s/Any]]

Usage:
   (array->rows arr)           Returns all array rows
   (array->rows arr row-idxs)  Returns array rows specified by row-idxs
   (array->rows arr low high)  Returns array rows in half-open interval [low..high) 
sourceraw docstring

array->strclj/s

(array->str arr)

Inputs: [arr :- Array] Returns: s/Str

Returns a string representation of an array

Inputs: [arr :- Array]
Returns: s/Str

Returns a string representation of an array
sourceraw docstring

col-dropclj/s≠

clj
(col-drop orig & idxs-drop)
cljs
(col-drop G__51880 & rest51881)

Inputs: [orig :- Array & idxs-drop :- [s/Int]] Returns: Array

Drop one or more cols from an array

Inputs: [orig :- Array & idxs-drop :- [s/Int]]
Returns: Array

Drop one or more cols from an array
sourceraw docstring

col-getclj/s

(col-get arr jj)

Inputs: [arr :- Array jj :- s/Int] Returns: tsk/Vec

Gets an Array col

Inputs: [arr :- Array jj :- s/Int]
Returns: tsk/Vec

Gets an Array col
sourceraw docstring

col-setclj/s

(col-set arr jj new-col)

Inputs: [arr :- Array jj :- s/Int new-col :- tsk/Vec] Returns: Array

Sets an Array col

Inputs: [arr :- Array jj :- s/Int new-col :- tsk/Vec]
Returns: Array

Sets an Array col
sourceraw docstring

col-vals->arrayclj/s

(col-vals->array nrows ncols col-data)

Inputs: [nrows :- s/Int ncols :- s/Int col-data :- tsk/Vec] Returns: Array

Return a new Array of size=[nrows ncols] with its columns constructed from from col-data.

Inputs: [nrows :- s/Int ncols :- s/Int col-data :- tsk/Vec]
Returns: Array

Return a new Array of size=[nrows ncols] with its columns constructed from from col-data.
sourceraw docstring

cols-appendclj/s≠

clj
(cols-append arr & cols)
cljs
(cols-append G__51846 & rest51847)

Inputs: [arr :- Array & cols :- [tsk/Vec]] Returns: Array

Appends one or more cols onto an array. Returns a new array.

Inputs: [arr :- Array & cols :- [tsk/Vec]]
Returns: Array

Appends one or more cols onto an array. Returns a new array.
sourceraw docstring

edn-cols->arrayclj/s

(edn-cols->array col-vecs)

Inputs: [col-vecs :- [[s/Any]]] Returns: Array

[col-vecs] Return a new Array initialized from col-vecs. Cols must all have same length.

Inputs: [col-vecs :- [[s/Any]]]
Returns: Array

[col-vecs]
Return a new Array initialized from col-vecs. Cols must all have same length.
sourceraw docstring

edn-rows->arrayclj/s

(edn-rows->array row-vecs)

Inputs: [row-vecs :- [[s/Any]]] Returns: Array

Return a new Array initialized from row-vecs. Rows must all have same length.

Inputs: [row-vecs :- [[s/Any]]]
Returns: Array

Return a new Array initialized from row-vecs. Rows must all have same length.
sourceraw docstring

elem-getclj/s

(elem-get arr ii jj)

Inputs: [arr :- Array ii :- s/Int jj :- s/Int] Returns: s/Any

Gets an Array element

Inputs: [arr :- Array ii :- s/Int jj :- s/Int]
Returns: s/Any

Gets an Array element
sourceraw docstring

elem-setclj/s

(elem-set arr ii jj newVal)

Inputs: [arr :- Array ii :- s/Int jj :- s/Int newVal :- s/Any] Returns: Array

Puts a value into an Array element, returning the updated Array.

Inputs: [arr :- Array ii :- s/Int jj :- s/Int newVal :- s/Any]
Returns: Array

Puts a value into an Array element, returning the updated Array.
sourceraw docstring

equalsclj/s

(equals x y)

Inputs: [x :- Array y :- Array] Returns: s/Bool

Returns true if two arrays contain equal data

Inputs: [x :- Array y :- Array]
Returns: s/Bool

Returns true if two arrays contain equal data
sourceraw docstring

flip-lrclj/s

(flip-lr orig)

Inputs: [orig :- Array] Returns: Array

Flips an array in the left-right direction, reversing the order of the cols of an array. Returns a new array.

Inputs: [orig :- Array]
Returns: Array

Flips an array in the left-right direction,
reversing the order of the cols of an array. Returns a new array.
sourceraw docstring

flip-udclj/s

(flip-ud orig)

Inputs: [orig :- Array] Returns: Array

Flips an array in the up-down direction, reversing the order of the rows of an array. Returns a new array.

Inputs: [orig :- Array]
Returns: Array

Flips an array in the up-down direction,
reversing the order of the rows of an array. Returns a new array.
sourceraw docstring

glue-horizclj/s≠

clj
(glue-horiz & arrays)
cljs
(glue-horiz & rest51923)

Inputs: [& arrays :- [Array]] Returns: Array

Concatenates 2 or more arrays horizontally. All arrays must have the same number of rows. Returns a new array.

Inputs: [& arrays :- [Array]]
Returns: Array

Concatenates 2 or more arrays horizontally. All arrays must have the same number of rows. Returns a new array.
sourceraw docstring

glue-vertclj/s≠

clj
(glue-vert & arrays)
cljs
(glue-vert & rest51917)

Inputs: [& arrays :- [Array]] Returns: Array

Concatenates 2 or more arrays vertically. All arrays must have the same number of cols. Returns a new array.

Inputs: [& arrays :- [Array]]
Returns: Array

Concatenates 2 or more arrays vertically. All arrays must have the same number of cols. Returns a new array.
sourceraw docstring

newclj/s≠

clj
(new nrows ncols)
(new nrows ncols init-val)
cljs
(new G__51686 G__51687)
(new G__51691 G__51692 G__51693)

Inputs: ([nrows :- s/Int ncols :- s/Int] [nrows :- s/Int ncols :- s/Int init-val :- s/Any]) Returns: Array

Return a new Array of size=[nrows ncols], initialized to init-val (default=nil)

Inputs: ([nrows :- s/Int ncols :- s/Int] [nrows :- s/Int ncols :- s/Int init-val :- s/Any])
Returns: Array

Return a new Array of size=[nrows ncols], initialized to `init-val` (default=nil)
sourceraw docstring

num-colsclj/s

(num-cols arr)

Inputs: [arr :- Array] Returns: s/Int

Returns the number of cols of an Array.

Inputs: [arr :- Array]
Returns: s/Int

Returns the number of cols of an Array.
sourceraw docstring

num-rowsclj/s

(num-rows arr)

Inputs: [arr :- Array] Returns: s/Int

Returns the number of rows of an Array.

Inputs: [arr :- Array]
Returns: s/Int

Returns the number of rows of an Array.
sourceraw docstring

rotate-leftclj/s

(rotate-left orig)

Inputs: [orig :- Array] Returns: Array

Rotates an array 90 deg counter-clockwise. Returns a new array.

Inputs: [orig :- Array]
Returns: Array

Rotates an array 90 deg counter-clockwise. Returns a new array.
sourceraw docstring

rotate-rightclj/s

(rotate-right orig)

Inputs: [orig :- Array] Returns: Array

Rotates an array 90 deg counter-clockwise. Returns a new array.

Inputs: [orig :- Array]
Returns: Array

Rotates an array 90 deg counter-clockwise. Returns a new array.
sourceraw docstring

row-dropclj/s≠

clj
(row-drop orig & idxs-drop)
cljs
(row-drop G__51868 & rest51869)

Inputs: [orig :- Array & idxs-drop :- [s/Int]] Returns: Array

Drop one or more rows from an array

Inputs: [orig :- Array & idxs-drop :- [s/Int]]
Returns: Array

Drop one or more rows from an array
sourceraw docstring

row-getclj/s

(row-get arr ii)

Inputs: [arr :- Array ii :- s/Int] Returns: tsk/Vec

Gets an Array row

Inputs: [arr :- Array ii :- s/Int]
Returns: tsk/Vec

Gets an Array row
sourceraw docstring

row-setclj/s

(row-set arr ii new-row)

Inputs: [arr :- Array ii :- s/Int new-row :- tsk/Vec] Returns: Array

Sets an Array row

Inputs: [arr :- Array ii :- s/Int new-row :- tsk/Vec]
Returns: Array

Sets an Array row
sourceraw docstring

row-vals->arrayclj/s

(row-vals->array nrows ncols row-data)

Inputs: [nrows :- s/Int ncols :- s/Int row-data :- tsk/Vec] Returns: Array

Return a new Array of size=[nrows ncols] with its rows constructed from from row-data.

Inputs: [nrows :- s/Int ncols :- s/Int row-data :- tsk/Vec]
Returns: Array

Return a new Array of size=[nrows ncols] with its rows constructed from from row-data.
sourceraw docstring

rows-appendclj/s≠

clj
(rows-append arr & rows)
cljs
(rows-append G__51838 & rest51839)

Inputs: [arr :- Array & rows :- [tsk/Vec]] Returns: Array

Appends one or more rows onto an array. Returns a new array.

Inputs: [arr :- Array & rows :- [tsk/Vec]]
Returns: Array

Appends one or more rows onto an array. Returns a new array.
sourceraw docstring

symmetric?clj/s

(symmetric? arr)

Inputs: [arr :- Array] Returns: s/Bool

Returns true iff an array is symmetric

Inputs: [arr :- Array]
Returns: s/Bool

Returns true iff an array is symmetric
sourceraw docstring

transposeclj/s

(transpose orig)

Inputs: [orig :- Array] Returns: Array

Returns the transpose of an array. Returns a new array.

Inputs: [orig :- Array]
Returns: Array

Returns the transpose of an array. Returns a new array.
sourceraw docstring

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

× close