A 2-D array of values (a vector of vectors).
A 2-D array of values (a vector of vectors).
(array->str arr)
Inputs: [arr :- Array] Returns: s/Str
Inputs: [arr :- Array] Returns: s/Str
(array-cols->vec arr)
Inputs: [arr :- Array] Returns: Vector
Returns the concatenation of all array cols.
Inputs: [arr :- Array] Returns: Vector Returns the concatenation of all array cols.
(array-rows->vec arr)
Inputs: [arr :- Array] Returns: Vector
Returns the concatenation of all array rows.
Inputs: [arr :- Array] Returns: Vector Returns the concatenation of all array rows.
(col-add orig & cols)
Inputs: [orig :- Array & cols :- [Vector]] Returns: Array
Inputs: [orig :- Array & cols :- [Vector]] Returns: Array
(col-drop orig & idxs-drop)
Inputs: [orig :- Array & idxs-drop :- [s/Int]] Returns: Array
Drop one or more colss from an array
Inputs: [orig :- Array & idxs-drop :- [s/Int]] Returns: Array Drop one or more colss from an array
(col-get arr jj)
Inputs: [arr :- Array jj :- s/Int] Returns: Vector
Gets an Array col
Inputs: [arr :- Array jj :- s/Int] Returns: Vector Gets an Array col
(col-set orig jj new-col)
Inputs: [orig :- Array jj :- s/Int new-col :- Vector] Returns: Array
Sets an Array col
Inputs: [orig :- Array jj :- s/Int new-col :- Vector] Returns: Array Sets an Array col
(cols->array col-vecs)
Inputs: [col-vecs :- Array] Returns: Array
[col-vecs] Return a new Array initialized from col-vecs. Cols must all have same length.
Inputs: [col-vecs :- Array] Returns: Array [col-vecs] Return a new Array initialized from col-vecs. Cols must all have same length.
(cols-get arr)
(cols-get arr col-idxs)
(cols-get arr low high)
Inputs: ([arr] [arr col-idxs] [arr :- Array low :- s/Int high :- s/Int]) Returns: Array
[arr] Returns all array cols [arr col-idxs] Returns array cols specified by col-idxs [arr low high] Returns array cols in half-open interval [low..high)
Inputs: ([arr] [arr col-idxs] [arr :- Array low :- s/Int high :- s/Int]) Returns: Array [arr] Returns all array cols [arr col-idxs] Returns array cols specified by col-idxs [arr low high] Returns array cols in half-open interval [low..high)
(create nrows ncols)
(create nrows ncols init-val)
Inputs: ([nrows :- s/Int ncols :- s/Int] [nrows :- s/Int ncols :- s/Int init-val :- s/Any]) Returns: Array
([nrows ncols] [nrows ncols init-val]) Return a new Array of size=[nrows ncols] initialized to zero (or init-val if supplied)
Inputs: ([nrows :- s/Int ncols :- s/Int] [nrows :- s/Int ncols :- s/Int init-val :- s/Any]) Returns: Array ([nrows ncols] [nrows ncols init-val]) Return a new Array of size=[nrows ncols] initialized to zero (or init-val if supplied)
(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
(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.
(flip-lr orig)
Inputs: [orig :- Array] Returns: Array
Inputs: [orig :- Array] Returns: Array
(flip-ud orig)
Inputs: [orig :- Array] Returns: Array
Inputs: [orig :- Array] Returns: Array
(glue-horiz & arrays)
Inputs: [& arrays :- [Array]] Returns: Array
Inputs: [& arrays :- [Array]] Returns: Array
(glue-vert & arrays)
Inputs: [& arrays :- [Array]] Returns: Array
Inputs: [& arrays :- [Array]] Returns: Array
(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.
(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.
(rot-left orig)
Inputs: [orig :- Array] Returns: Array
Inputs: [orig :- Array] Returns: Array
(rot-right orig)
Inputs: [orig :- Array] Returns: Array
Inputs: [orig :- Array] Returns: Array
(row-add orig & rows)
Inputs: [orig :- Array & rows :- [Vector]] Returns: Array
Inputs: [orig :- Array & rows :- [Vector]] Returns: Array
(row-drop orig & idxs-drop)
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
(row-get arr ii)
Inputs: [arr :- Array ii :- s/Int] Returns: Vector
Gets an Array row
Inputs: [arr :- Array ii :- s/Int] Returns: Vector Gets an Array row
(row-set orig ii new-row)
Inputs: [orig :- Array ii :- s/Int new-row :- Vector] Returns: Array
Sets an Array row
Inputs: [orig :- Array ii :- s/Int new-row :- Vector] Returns: Array Sets an Array row
(rows->array row-vecs)
Inputs: [row-vecs :- Array] Returns: Array
[row-vecs] Return a new Array initialized from row-vecs. Rows must all have same length.
Inputs: [row-vecs :- Array] Returns: Array [row-vecs] Return a new Array initialized from row-vecs. Rows must all have same length.
(rows-get arr)
(rows-get arr row-idxs)
(rows-get arr low high)
Inputs: ([arr] [arr row-idxs] [arr :- Array low :- s/Int high :- s/Int]) Returns: Array
[arr] Returns all array rows [arr row-idxs] Returns array rows specified by row-idxs [arr low high] Returns array rows in half-open interval [low..high)
Inputs: ([arr] [arr row-idxs] [arr :- Array low :- s/Int high :- s/Int]) Returns: Array [arr] Returns all array rows [arr row-idxs] Returns array rows specified by row-idxs [arr low high] Returns array rows in half-open interval [low..high)
(symmetric? arr)
Inputs: [arr :- Array] Returns: s/Bool
Inputs: [arr :- Array] Returns: s/Bool
(transpose orig)
Inputs: [orig :- Array] Returns: Array
Inputs: [orig :- Array] Returns: Array
(vec->array-cols nrows ncols data-vec)
Inputs: [nrows :- s/Int ncols :- s/Int data-vec :- Vector] Returns: Array
([nrows ncols data-vec]) Return a new Array of size=[nrows ncols] col-wise from data-vec.
Inputs: [nrows :- s/Int ncols :- s/Int data-vec :- Vector] Returns: Array ([nrows ncols data-vec]) Return a new Array of size=[nrows ncols] col-wise from data-vec.
(vec->array-rows nrows ncols data-vec)
Inputs: [nrows :- s/Int ncols :- s/Int data-vec :- Vector] Returns: Array
([nrows ncols data-vec]) Return a new Array of size=[nrows ncols] row-wise from data-vec.
Inputs: [nrows :- s/Int ncols :- s/Int data-vec :- Vector] Returns: Array ([nrows ncols data-vec]) Return a new Array of size=[nrows ncols] row-wise from data-vec.
A 1-D array of values (a vector of vectors).
A 1-D array of values (a vector of vectors).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close