(array->col-vals arr)
Inputs: [arr :- tsk/Array] Returns: tsk/Vec
Returns the concatenation of all array cols.
Inputs: [arr :- tsk/Array] Returns: tsk/Vec Returns the concatenation of all array cols.
(array->cols arr)
(array->cols arr col-idxs)
(array->cols arr low high)
(array->cols G__108932)
(array->cols G__108936 G__108937)
(array->cols G__108941 G__108942 G__108943)
Inputs: ([arr] [arr col-idxs] [arr :- tsk/Array low :- s/Int high :- s/Int]) Returns: tsk/Array
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] [arr :- tsk/Array low :- s/Int high :- s/Int]) Returns: tsk/Array 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)
(array->row-vals arr)
Inputs: [arr :- tsk/Array] Returns: tsk/Vec
Returns the concatenation of all array rows.
Inputs: [arr :- tsk/Array] Returns: tsk/Vec Returns the concatenation of all array rows.
(array->rows arr)
(array->rows arr row-idxs)
(array->rows arr low high)
(array->rows G__108869)
(array->rows G__108873 G__108874)
(array->rows G__108878 G__108879 G__108880)
Inputs: ([arr] [arr row-idxs] [arr :- tsk/Array low :- s/Int high :- s/Int]) Returns: tsk/Array
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] [arr :- tsk/Array low :- s/Int high :- s/Int]) Returns: tsk/Array 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)
(array->str arr)
Inputs: [arr :- tsk/Array] Returns: s/Str
Returns a string representation of an array
Inputs: [arr :- tsk/Array] Returns: s/Str Returns a string representation of an array
(col-drop orig & idxs-drop)
(col-drop G__109032 & rest109033)
Inputs: [orig :- tsk/Array & idxs-drop :- [s/Int]] Returns: tsk/Array
Drop one or more colss from an array
Inputs: [orig :- tsk/Array & idxs-drop :- [s/Int]] Returns: tsk/Array Drop one or more colss from an array
(col-get arr jj)
Inputs: [arr :- tsk/Array jj :- s/Int] Returns: tsk/Vec
Gets an Array col
Inputs: [arr :- tsk/Array jj :- s/Int] Returns: tsk/Vec Gets an Array col
(col-set orig jj new-col)
Inputs: [orig :- tsk/Array jj :- s/Int new-col :- tsk/Vec] Returns: tsk/Array
Sets an Array col
Inputs: [orig :- tsk/Array jj :- s/Int new-col :- tsk/Vec] Returns: tsk/Array Sets an Array col
(col-vals->array nrows ncols col-data)
Inputs: [nrows :- s/Int ncols :- s/Int col-data :- tsk/Vec] Returns: tsk/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: tsk/Array Return a new Array of size=[nrows ncols] with its columns constructed from from col-data.
(cols-append orig & cols)
(cols-append G__109060 & rest109061)
Inputs: [orig :- tsk/Array & cols :- [tsk/Vec]] Returns: tsk/Array
Appends one or more cols onto an array.
Inputs: [orig :- tsk/Array & cols :- [tsk/Vec]] Returns: tsk/Array Appends one or more cols onto an array.
(create nrows ncols)
(create nrows ncols init-val)
(create G__108746 G__108747)
(create G__108751 G__108752 G__108753)
Inputs: ([nrows :- s/Int ncols :- s/Int] [nrows :- s/Int ncols :- s/Int init-val :- s/Any]) Returns: tsk/Array
Return a new Array (vector-of-vectors) 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: tsk/Array Return a new Array (vector-of-vectors) of size=[nrows ncols], initialized to `init-val` (default=nil)
(diagonal-anti arr)
Inputs: [arr :- tsk/Array] Returns: tsk/Vec
Returns the anti-diagonal of an array
Inputs: [arr :- tsk/Array] Returns: tsk/Vec Returns the anti-diagonal of an array
(diagonal-main arr)
Inputs: [arr :- tsk/Array] Returns: tsk/Vec
Returns the main diagonal of an array
Inputs: [arr :- tsk/Array] Returns: tsk/Vec Returns the main diagonal of an array
(edn-cols->array col-vecs)
Inputs: [col-vecs :- tsk/Array] Returns: tsk/Array
[col-vecs] Return a new Array initialized from col-vecs. Cols must all have same length.
Inputs: [col-vecs :- tsk/Array] Returns: tsk/Array [col-vecs] Return a new Array initialized from col-vecs. Cols must all have same length.
(edn-rows->array row-vecs)
Inputs: [row-vecs :- tsk/Array] Returns: tsk/Array
Return a new Array initialized from row-vecs. Rows must all have same length.
Inputs: [row-vecs :- tsk/Array] Returns: tsk/Array Return a new Array initialized from row-vecs. Rows must all have same length.
(elem-get arr ii jj)
Inputs: [arr :- tsk/Array ii :- s/Int jj :- s/Int] Returns: s/Any
Gets an Array element
Inputs: [arr :- tsk/Array ii :- s/Int jj :- s/Int] Returns: s/Any Gets an Array element
(elem-set arr ii jj newVal)
Inputs: [arr :- tsk/Array ii :- s/Int jj :- s/Int newVal :- s/Any] Returns: tsk/Array
Puts a value into an Array element, returning the updated Array.
Inputs: [arr :- tsk/Array ii :- s/Int jj :- s/Int newVal :- s/Any] Returns: tsk/Array Puts a value into an Array element, returning the updated Array.
(flip-lr orig)
Inputs: [orig :- tsk/Array] Returns: tsk/Array
Flips an array in the left-right direction, reversing the order of the cols of an array
Inputs: [orig :- tsk/Array] Returns: tsk/Array Flips an array in the left-right direction, reversing the order of the cols of an array
(flip-ud orig)
Inputs: [orig :- tsk/Array] Returns: tsk/Array
Flips an array in the up-down direction, reversing the order of the rows of an array
Inputs: [orig :- tsk/Array] Returns: tsk/Array Flips an array in the up-down direction, reversing the order of the rows of an array
(glue-horiz & arrays)
(glue-horiz & rest109087)
Inputs: [& arrays :- [tsk/Array]] Returns: tsk/Array
Concatenates 2 or more arrays horizontally. Arrays must all have the same number of rows.
Inputs: [& arrays :- [tsk/Array]] Returns: tsk/Array Concatenates 2 or more arrays horizontally. Arrays must all have the same number of rows.
(glue-vert & arrays)
(glue-vert & rest109080)
Inputs: [& arrays :- [tsk/Array]] Returns: tsk/Array
Concatenates 2 or more arrays vertically. Arrays must all have the same number of cols.
Inputs: [& arrays :- [tsk/Array]] Returns: tsk/Array Concatenates 2 or more arrays vertically. Arrays must all have the same number of cols.
(num-cols arr)
Inputs: [arr :- tsk/Array] Returns: s/Int
Returns the number of cols of an Array.
Inputs: [arr :- tsk/Array] Returns: s/Int Returns the number of cols of an Array.
(num-rows arr)
Inputs: [arr :- tsk/Array] Returns: s/Int
Returns the number of rows of an Array.
Inputs: [arr :- tsk/Array] Returns: s/Int Returns the number of rows of an Array.
(rotate-left orig)
Inputs: [orig :- tsk/Array] Returns: tsk/Array
Rotates an array 90 deg counter-clockwise.
Inputs: [orig :- tsk/Array] Returns: tsk/Array Rotates an array 90 deg counter-clockwise.
(rotate-right orig)
Inputs: [orig :- tsk/Array] Returns: tsk/Array
Rotates an array 90 deg clockwise.
Inputs: [orig :- tsk/Array] Returns: tsk/Array Rotates an array 90 deg clockwise.
(row-drop orig & idxs-drop)
(row-drop G__109020 & rest109021)
Inputs: [orig :- tsk/Array & idxs-drop :- [s/Int]] Returns: tsk/Array
Drop one or more rows from an array
Inputs: [orig :- tsk/Array & idxs-drop :- [s/Int]] Returns: tsk/Array Drop one or more rows from an array
(row-get arr ii)
Inputs: [arr :- tsk/Array ii :- s/Int] Returns: tsk/Vec
Gets an Array row
Inputs: [arr :- tsk/Array ii :- s/Int] Returns: tsk/Vec Gets an Array row
(row-set orig ii new-row)
Inputs: [orig :- tsk/Array ii :- s/Int new-row :- tsk/Vec] Returns: tsk/Array
Sets an Array row
Inputs: [orig :- tsk/Array ii :- s/Int new-row :- tsk/Vec] Returns: tsk/Array Sets an Array row
(row-vals->array nrows ncols row-data)
Inputs: [nrows :- s/Int ncols :- s/Int row-data :- tsk/Vec] Returns: tsk/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: tsk/Array Return a new Array of size=[nrows ncols] with its rows constructed from from row-data.
(rows-append orig & rows)
(rows-append G__109052 & rest109053)
Inputs: [orig :- tsk/Array & rows :- [tsk/Vec]] Returns: tsk/Array
Appends one or more rows onto an array.
Inputs: [orig :- tsk/Array & rows :- [tsk/Vec]] Returns: tsk/Array Appends one or more rows onto an array.
(symmetric? arr)
Inputs: [arr :- tsk/Array] Returns: s/Bool
Returns true iff an array is symmetric
Inputs: [arr :- tsk/Array] Returns: s/Bool Returns true iff an array is symmetric
(transpose orig)
Inputs: [orig :- tsk/Array] Returns: tsk/Array
Returns the transpose of an array
Inputs: [orig :- tsk/Array] Returns: tsk/Array Returns the transpose of an array
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close