Liking cljdoc? Tell your friends :D

clj-nd4j.ndarray


->nd-arrayclj

(->nd-array obj)

Like nd-array constructor but also works for already existing NDArray instances (do nothing). Useful mostly internally to allow flexibility but can be used to design external generic functions as well

Like nd-array constructor but also works for
already existing NDArray instances (do nothing).
Useful mostly internally to allow flexibility but
can be used to design external generic functions
as well
sourceraw docstring

->nilable-nd-arrayclj

(->nilable-nd-array obj)

Internal usage. Also deal with nil

Internal usage.
Also deal with nil
sourceraw docstring

absclj

(abs a__2098__auto__)
source

abs!clj

(abs! a__2104__auto__)
source

acosclj

(acos a__2098__auto__)
source

acos!clj

(acos! a__2104__auto__)
source

arg-maxclj

(arg-max a dimension)

Returns a NDArray of maximal values along dimension

Returns a NDArray of maximal values along dimension
sourceraw docstring

arg-minclj

(arg-min a dimension)

Returns a NDArray of muinimal values along dimension

Returns a NDArray of muinimal values along dimension
sourceraw docstring

asinclj

(asin a__2098__auto__)
source

asin!clj

(asin! a__2104__auto__)
source

atanclj

(atan a__2098__auto__)
source

atan!clj

(atan! a__2104__auto__)
source

atanhclj

(atanh a__2098__auto__)
source

atanh!clj

(atanh! a__2104__auto__)
source

ceilclj

(ceil a__2098__auto__)
source

ceil!clj

(ceil! a__2104__auto__)
source

cloneclj

(clone nd-array)

Clones a nd-array. Useful for immutability

Clones a nd-array.
Useful for immutability
sourceraw docstring

cosclj

(cos a__2098__auto__)
source

cos!clj

(cos! a__2104__auto__)
source

coshclj

(cosh a__2098__auto__)
source

cosh!clj

(cosh! a__2104__auto__)
source

cosine-distanceclj

(cosine-distance a1 a2)
source

cotransformclj

(cotransform kind a1 a2)
(cotransform kind arg1 a1 a2)
(cotransform kind arg1 arg2 a1 a2)
Transforms a vector using an element-wise operator.
This operation preserves input. See transform! for
destructive operations.
Slower than directly calling the specific operation,
use this when needed.
Usage (NDArray representation simplified for readibility, this is not a vector !) :
(transform :ln [1.0 2.0 3.0])
~
(ln [1.0 2.0 3.0])
=
[0.0 0.693.. 1.098..]
sourceraw docstring

cotransform!clj

(cotransform! kind a1 a2)
(cotransform! kind arg1 a1 a2)
(cotransform! kind arg1 arg2 a1 a2)
Transforms a vector using an element-wise operator.
This is a destructive operation, i.e. the input is
altered to target value. Use 'transform' for immutability.
Slower than directly calling the specific operation,
use this when needed.
Usage (NDArray representation simplified for readibility, this is not a vector !) :
(transform! :ln [1.0 2.0 3.0])
~
(ln! [1.0 2.0 3.0])
=
[0.0 0.693.. 1.098..]
sourceraw docstring

defcooperatorcljmacro

(defcooperator fn-name static-name)
source

defcooperator!cljmacro

(defcooperator! fn-name static-name)
source

defoperatorcljmacro

(defoperator fn-name static-name)
source

defoperator!cljmacro

(defoperator! fn-name static-name)
source

deluclj

(delu a__2098__auto__)
source

delu!clj

(delu! a__2104__auto__)
source

dhard-tanhclj

(dhard-tanh a__2098__auto__)
source

dhard-tanh!clj

(dhard-tanh! a__2104__auto__)
source

distanceclj

(distance a1 a2)
(distance kind a1 a2)

Computes distance between two NDArray instances using euclidean distance by default (two arities) or the selected method. Methods are : :abs (n1), :euclidean (n2), :cos, :manhattan, :jaccard, :hamming Usage : (distance nd1 nd2) (distance :method nd1 nd2)

Computes distance between two
NDArray instances using euclidean distance
by default (two arities) or the selected
method.
Methods are : :abs (n1), :euclidean (n2),
              :cos, :manhattan, :jaccard,
              :hamming
Usage :
(distance nd1 nd2)
(distance :method nd1 nd2)
sourceraw docstring

dleaky-reluclj

(dleaky-relu a__2098__auto__)
source

dleaky-relu!clj

(dleaky-relu! a__2104__auto__)
source

dsigmoidclj

(dsigmoid a__2098__auto__)
source

dsigmoid!clj

(dsigmoid! a__2104__auto__)
source

dsoftsignclj

(dsoftsign a__2098__auto__)
source

dsoftsign!clj

(dsoftsign! a__2104__auto__)
source

eluclj

(elu a__2098__auto__)
source

elu!clj

(elu! a__2104__auto__)
source

expclj

(exp a__2098__auto__)
source

exp!clj

(exp! a__2104__auto__)
source

floorclj

(floor a__2098__auto__)
source

floor!clj

(floor! a__2104__auto__)
source

get-columnclj

(get-column nd-array n)

Gets nth column of the given nd-array

Gets nth column of the given nd-array
sourceraw docstring

get-doubleclj

(get-double nd-array n)

Gets the nth leaf element of the flattended nd-array (line first) as a double

Gets the nth leaf element of the flattended nd-array
(line first) as a double
sourceraw docstring

get-in-doubleclj

(get-in-double nd-array indexes)

Gets the leaf element at specified location, following the standard java specification as a double

Gets the leaf element at specified location,
following the standard java specification as a
double
sourceraw docstring

get-in-scalarclj

(get-in-scalar nd-array indexes)

Gets the leaf element at specified location, following the standard java specification as a nd-array (0d-array)

Gets the leaf element at specified location,
following the standard java specification as a
nd-array (0d-array)
sourceraw docstring

get-rowclj

(get-row nd-array n)

Gets nth row of the given nd-array

Gets nth row of the given nd-array
sourceraw docstring

get-scalarclj

(get-scalar nd-array n)

Gets the nth leaf element of the flattended nd-array (line first) as a scalar nd-array (0d-array)

Gets the nth leaf element of the flattended nd-array
(line first) as a scalar nd-array (0d-array)
sourceraw docstring

get-shapeclj

(get-shape nd-array)

Gets shape of a NDArray as long[]

Gets shape of a NDArray as long[]
sourceraw docstring

hamming-distanceclj

(hamming-distance a1 a2)
source

hard-tanhclj

(hard-tanh a__2098__auto__)
source

hard-tanh!clj

(hard-tanh! a__2104__auto__)
source

jaccard-distanceclj

(jaccard-distance a1 a2)
source

leaky-reluclj

(leaky-relu a__2098__auto__)
source

leaky-relu!clj

(leaky-relu! a__2104__auto__)
source

lnclj

(ln a__2098__auto__)
source

ln!clj

(ln! a__2104__auto__)
source

load-nd-arrayclj

(load-nd-array path)

Load a NDArray from a file written with write-nd-array!

Load a NDArray from a file written with
write-nd-array!
sourceraw docstring

logclj

(log base a)
source

log!clj

(log! base a)
source

manhattan-distanceclj

(manhattan-distance a1 a2)
source

mmaxclj

(mmax n1__2195__auto__ n2__2196__auto__)
source

mmax!clj

(mmax! n1__2202__auto__ n2__2203__auto__)
source

n1-distanceclj

(n1-distance a1 a2)
source

n2-distanceclj

(n2-distance a1 a2)
source

nd-arrayclj

(nd-array data)
(nd-array shape data)

Creates a nd array (n dimensional array) from data. For predictable input, indicating a shape (dimensions) is wiser. Else, shape will be infered from a walk from every first element unless input is When you indicate a shape, data must be provided flattened, else the structure must be already formatted as a nested structure. The sole exceptions to this rules are when you want to create a matrix or a (1D) array (most common cases). There you can replace shape by a type hint : :array or :matrix. You can also use specialized constructors : matrix and array Example : (nd-array [2 2] [1 2 3 4]) ;; or (->nd-array [[1 2] [3 4]]) or (->nd-array :matrix [[1 2] [3 4]]) ~ [[1 2] [3 4]] (a matrix) (nd-array [4] [1 2 3 4]) ;; (or (->nd-array [1 2 3 4])) ~ [1 2 3 4] (an array)

Creates a nd array (n dimensional array) from data.
For predictable input, indicating a shape (dimensions) is wiser.
Else, shape will be infered from a walk from every first element
unless input is
When you indicate a shape, data must be provided flattened, else
the structure must be already formatted as a nested structure.
The sole exceptions to this rules are when you want to create
a matrix or a (1D) array (most common cases). There you can replace
shape by a type hint : :array or :matrix.
You can also use specialized constructors : matrix and array
Example :
(nd-array [2 2] [1 2 3 4]) ;;  or (->nd-array [[1 2] [3 4]]) or (->nd-array :matrix [[1 2] [3 4]])
~
[[1 2]
 [3 4]] (a matrix)
(nd-array [4] [1 2 3 4]) ;;  (or (->nd-array [1 2 3 4]))
~
[1 2 3 4] (an array)
sourceraw docstring

nd-array?clj

(nd-array? obj)
source

nd-onesclj

(nd-ones shape)

Creates a NDArray full of ones of input shape. Example : (nd-ones [2 2]) ~ [[1 1] [1 1]]

Creates a NDArray full of ones of
input shape.
Example :
(nd-ones [2 2]) ~ [[1 1] [1 1]]
sourceraw docstring

nd-randclj

(nd-rand shape)

Creates a NDArray initialized with random values (between 0 and 1) and of input shape.

Creates a NDArray initialized with random
values (between 0 and 1) and of input shape.
sourceraw docstring

nd-zerosclj

(nd-zeros shape)

Creates a NDArray full of zeros of input shape. Example : (nd-zeros [2 2]) ~ [[0 0] [0 0]]

Creates a NDArray full of zeros of
input shape.
Example :
(nd-zeros [2 2]) ~ [[0 0] [0 0]]
sourceraw docstring

negateclj

(negate a__2098__auto__)
source

negate!clj

(negate! a__2104__auto__)
source

normalizeclj

(normalize a)

NDArray statistical normalization (zero mean and unit variance. Preserves input unlike normalize!

NDArray statistical normalization
(zero mean and unit variance.
Preserves input unlike normalize!
sourceraw docstring

normalize!clj

(normalize! a)

NDArray statistical normalization (zero mean and unit variance. Alters input unlike normalize

NDArray statistical normalization
(zero mean and unit variance.
Alters input unlike normalize
sourceraw docstring

powclj

(pow n1__2195__auto__ n2__2196__auto__)
source

pow!clj

(pow! n1__2202__auto__ n2__2203__auto__)
source

reluclj

(relu a__2098__auto__)
source

relu!clj

(relu! a__2104__auto__)
source

relu6clj

(relu6 a__2098__auto__)
source

relu6!clj

(relu6! a__2104__auto__)
source

roll-axisclj

(roll-axis nd-array index)
(roll-axis nd-array start end)
source

roundclj

(round a__2098__auto__)
source

round!clj

(round! a__2104__auto__)
source

sigmoidclj

(sigmoid a__2098__auto__)
source

sigmoid!clj

(sigmoid! a__2104__auto__)
source

signclj

(sign a__2098__auto__)
source

sign!clj

(sign! a__2104__auto__)
source

sinclj

(sin a__2098__auto__)
source

sin!clj

(sin! a__2104__auto__)
source

single-coopsclj

source

single-coops!clj

source

single-opsclj

source

single-ops!clj

source

sinhclj

(sinh a__2098__auto__)
source

sinh!clj

(sinh! a__2104__auto__)
source

softmaxclj

(softmax a__2098__auto__)
source

softmax!clj

(softmax! a__2104__auto__)
source

softplusclj

(softplus a__2098__auto__)
source

softplus!clj

(softplus! a__2104__auto__)
source

softsignclj

(softsign a__2098__auto__)
source

softsign!clj

(softsign! a__2104__auto__)
source

sqrtclj

(sqrt a__2098__auto__)
source

sqrt!clj

(sqrt! a__2104__auto__)
source

stabilizeclj

(stabilize k a)
source

stabilize!clj

(stabilize! k a)
source

t*clj

(t* left right axis)
source

tanhclj

(tanh a__2098__auto__)
source

tanh!clj

(tanh! a__2104__auto__)
source

transformclj

(transform kind a)
(transform kind arg1 a)
(transform kind arg1 arg2 a)
Transforms a vector using an element-wise operator.
This operation preserves input. See transform! for
destructive operations.
Slower than directly calling the specific operation,
use this when needed.
Usage (NDArray representation simplified for readibility, this is not a vector !) :
(transform :ln [1.0 2.0 3.0])
~
(ln [1.0 2.0 3.0])
=
[0.0 0.693.. 1.098..]
sourceraw docstring

transform!clj

(transform! kind a)
(transform! kind a arg1)
(transform! kind a arg1 arg2)
Transforms a vector using an element-wise operator.
This is a destructive operation, i.e. the input is
altered to target value. Use 'transform' for immutability.
Slower than directly calling the specific operation,
use this when needed.
Usage (NDArray representation simplified for readibility, this is not a vector !) :
(transform! :ln [1.0 2.0 3.0])
~
(ln! [1.0 2.0 3.0])
=
[0.0 0.693.. 1.098..]
sourceraw docstring

transposeclj

(transpose nd-array)

NDArray transposition

NDArray transposition
sourceraw docstring

write-nd-array!clj

(write-nd-array! path nd-array)
(write-nd-array! path split nd-array)

Writes a nd-array directly into a text file (.txt or .csv). The main advantage is to avoid the potentially costly conversion to clojure code. By default, the split is ';'

Writes a nd-array directly into a text file
(.txt or .csv). The main advantage is to avoid
the potentially costly conversion to clojure code.
By default, the split is ';'
sourceraw docstring

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

× close