Liking cljdoc? Tell your friends :D

clj-ml.utils.matrix


absoluteclj

(absolute m)

Calculates the absolute value of each and every element of a 2-D matrix

Calculates the absolute value of each and every element of a 2-D matrix
raw docstring

covarianceclj

(covariance m)

Calculates the covariance matrix of a 2-D matrix

Calculates the covariance matrix of a 2-D matrix
raw docstring

create-identity-matrixclj

(create-identity-matrix m)

Same as clj-ml.utils.matrix/create-matrix But this one creates a 2-D identity matrix

Same as `clj-ml.utils.matrix/create-matrix`
But this one creates a 2-D identity matrix
raw docstring

create-matrixclj

(create-matrix {:keys [dimensions seed] :or {seed 10}})

Creates an N-D matrix of dimenstions specified in order with random float values in it. Optional seed (Integer Value) for the random matrix generator can be specified as well.

Creates an N-D matrix of `dimenstions` specified in order with random float values in it.
Optional seed (Integer Value) for the random matrix generator can be specified as well.
raw docstring

cross-productclj

(cross-product row-1-indexed row-2-indexed)

Finds the cross product of two (indexed) rows of a matrix

Finds the cross product of two (indexed) rows of a matrix
raw docstring

determinantclj

(determinant m)

Caluclates the determinant of a square matrix by first calculating it's uper triangular matrix and then multiplying it's diagonal elements together while taking into account the number of row swaps made in the process

Caluclates the determinant of a square matrix by first calculating it's uper triangular matrix
and then multiplying it's diagonal elements together while taking into account the number of row swaps made in the process
raw docstring

dimensionclj

(dimension m)

Returns the dimenston of a 2-D matrix in a vector two elements

Returns the dimenston of a 2-D matrix in a vector two elements
raw docstring

eigen-valuesclj

(eigen-values matrix)

Gets the eigen values of a matrix

Gets the eigen values of a matrix
raw docstring

exponentialclj

(exponential m)

Calculates the exponential of each and every element of a 2-D matrix

Calculates the exponential of each and every element of a 2-D matrix
raw docstring

get-valclj

(get-val m index-path)

Get's a specific value from the martix m based on the path provided in index-path

Get's a specific value from the martix `m` based on the path provided in `index-path`
raw docstring

identity-matrix?clj

(identity-matrix? m)

Checks if the matrix m is a 2-D identity matrix or not

Checks if the matrix `m` is a 2-D identity matrix or not
raw docstring

matrix-multiplyclj

(matrix-multiply a b)

Multiplies two matrices of MxN and NxP dimensions Calculates the dot product

Multiplies two matrices of MxN and NxP dimensions
Calculates the dot product
raw docstring

matrix?clj

(matrix? m)

Returns true if a data structure is a valid N-D matrix, else false

Returns true if a data structure is a valid N-D matrix, else false
raw docstring

meanclj

(mean m)

Calculates the mean of a 2-D matrix

Calculates the mean of a 2-D matrix
raw docstring

mean-collclj

(mean-coll c)

Calculates the mean of a collection c

Calculates the mean of a collection `c`
raw docstring

perform-arithmetic-opclj

(perform-arithmetic-op mat operand operation)

Performs arithmetic operation on a matrix with a scalar or another matrix

Performs arithmetic operation on a matrix with a scalar or another matrix
raw docstring

random-fncljmacro

(random-fn n f)

Executes the function f repeatedly n times

Executes the function `f` repeatedly `n` times
raw docstring

reciprocalclj

(reciprocal m)

Calculates the reciprocal of each and every element of a 2-D matrix

Calculates the reciprocal of each and every element of a 2-D matrix
raw docstring

recursive-row-adjustclj

(recursive-row-adjust matrix row-index-to-be-processed)

row-adjustclj

(row-adjust row-1 row-2 n)

using row-1 to adjust row elements of row-2 so that their first n values are equal to zeros

using `row-1` to adjust row elements of `row-2` so that their first `n` values are equal to zeros
raw docstring

sigmoidclj

(sigmoid m)
(sigmoid m deriv)

Returns the sigmoid/logistic values of a 2-D matrix

Returns the sigmoid/logistic values of a 2-D matrix
raw docstring

swap-rowsclj

(swap-rows m i j)

Swaps the rows at the ith and jth indexes

Swaps the rows at the `i`th and `j`th indexes
raw docstring

transposeclj

(transpose m)

Returns the transpose of a 2-D matrix

Returns the transpose of a 2-D matrix
raw docstring

upper-triangular-matrixclj

(upper-triangular-matrix matrix)

Converts any square matrix into an upper-triangular matrix where all the matrix elements below the diagonal elements are zero

Converts any square matrix into an upper-triangular matrix
where all the matrix elements below the diagonal elements are zero
raw docstring

upper-triangular-matrix?clj

(upper-triangular-matrix? m)

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

× close