Liking cljdoc? Tell your friends :D

tupelo.array


Arrayclj

A 2-D array of values (a vector of vectors).

A 2-D array of values (a vector of vectors).
sourceraw docstring

array->strclj

(array->str arr)

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

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

array-cols->vecclj

(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.
sourceraw docstring

array-rows->vecclj

(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.
sourceraw docstring

col-addclj

(col-add orig & cols)

Inputs: [orig :- Array & cols :- [Vector]] Returns: Array

Inputs: [orig :- Array & cols :- [Vector]]
Returns: Array
sourceraw docstring

col-dropclj

(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
sourceraw docstring

col-getclj

(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
sourceraw docstring

col-setclj

(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
sourceraw docstring

cols->arrayclj

(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.
sourceraw docstring

cols-getclj

(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) 
sourceraw docstring

createclj

(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)
sourceraw docstring

elem-getclj

(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

(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

flip-lrclj

(flip-lr orig)

Inputs: [orig :- Array] Returns: Array

Inputs: [orig :- Array]
Returns: Array
sourceraw docstring

flip-udclj

(flip-ud orig)

Inputs: [orig :- Array] Returns: Array

Inputs: [orig :- Array]
Returns: Array
sourceraw docstring

glue-horizclj

(glue-horiz & arrays)

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

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

glue-vertclj

(glue-vert & arrays)

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

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

num-colsclj

(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

(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

rot-leftclj

(rot-left orig)

Inputs: [orig :- Array] Returns: Array

Inputs: [orig :- Array]
Returns: Array
sourceraw docstring

rot-rightclj

(rot-right orig)

Inputs: [orig :- Array] Returns: Array

Inputs: [orig :- Array]
Returns: Array
sourceraw docstring

row-addclj

(row-add orig & rows)

Inputs: [orig :- Array & rows :- [Vector]] Returns: Array

Inputs: [orig :- Array & rows :- [Vector]]
Returns: Array
sourceraw docstring

row-dropclj

(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
sourceraw docstring

row-getclj

(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
sourceraw docstring

row-setclj

(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
sourceraw docstring

rows->arrayclj

(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.
sourceraw docstring

rows-getclj

(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) 
sourceraw docstring

symmetric?clj

(symmetric? arr)

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

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

transposeclj

(transpose orig)

Inputs: [orig :- Array] Returns: Array

Inputs: [orig :- Array]
Returns: Array
sourceraw docstring

vec->array-colsclj

(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.
sourceraw docstring

vec->array-rowsclj

(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.
sourceraw docstring

Vectorclj

A 1-D array of values (a vector of vectors).

A 1-D array of values (a vector of vectors).
sourceraw docstring

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

× close