Liking cljdoc? Tell your friends :D

org.clojars.punit-naik.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
sourceraw docstring

adjust-rref-indicesclj

(adjust-rref-indices n rref)

Adusts the indices of the RREF of a matrix by looking at the first <x> zeros of the rows

Adusts the indices of the RREF of a matrix by looking at the first <x> zeros of the rows
sourceraw docstring

characteristic-equation-partsclj

(characteristic-equation-parts concatenated-matrix-minus-lambda-i num-rows)
(characteristic-equation-parts concatenated-matrix-minus-lambda-i
                               num-rows
                               positive-part?)

Finds the positive or the negative parts of the characteristic equation Both the positive and negative parts will be added to form the final eqution

Finds the positive or the negative parts of the characteristic equation
Both the positive and negative parts will be added to form the final eqution
sourceraw docstring

concat-matrix-rowsclj

(concat-matrix-rows matrix num-cols)

Concatenates matrix rows with the first (num-cols - 1) values of the same row This helps in finding the characteristic equation of the matrix

Concatenates matrix rows with the first `(num-cols - 1)` values of the same row
This helps in finding the characteristic equation of the matrix
sourceraw docstring

covarianceclj

(covariance m)

Calculates the covariance matrix of a 2-D matrix

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

create-identity-matrixclj

(create-identity-matrix m)

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

Same as `org.clojars.punit-naik.clj-ml.utils.matrix/create-matrix`
But this one creates a 2-D identity matrix
sourceraw 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.
sourceraw 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
sourceraw docstring

determinantclj

(determinant matrix)

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

eigen-valuesclj

(eigen-values matrix)

Gets the eigen values of a matrix from it's characteristic equation

Gets the eigen values of a matrix from it's characteristic equation
sourceraw docstring

eigen-vector-for-lambaclj

(eigen-vector-for-lamba matrix lambda)
(eigen-vector-for-lamba matrix lambda already-calculated?)

Finds the eigenvector for a matrix with a particular eigenvalue

Finds the eigenvector for a matrix with a particular eigenvalue
sourceraw docstring

eigen-vectorsclj

(eigen-vectors matrix eigen-values)

Finds the Eigenvectors of a matrix by using it's Eigenvalues

Finds the Eigenvectors of a matrix by using it's Eigenvalues
sourceraw docstring

equal-dimensions?clj

(equal-dimensions? m)

Checks if the nested matrices of a matrix have euqal dimensions or not

Checks if the nested matrices of a matrix have euqal dimensions or not
sourceraw 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
sourceraw 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`
sourceraw 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
sourceraw docstring

index-matrix-rowsclj

(index-matrix-rows matrix)

This function indexes matrix's rows and returns a map where key is the row number and value is the row itself

This function indexes `matrix`'s rows and returns a map where key is the row number and value is the row itself
sourceraw docstring

matrix-minus-lambda-iclj

(matrix-minus-lambda-i matrix)
(matrix-minus-lambda-i matrix lambda)

Does A-λI when λ is known as well as unkonwn

Does A-λI when λ is known as well as unkonwn
sourceraw 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
sourceraw 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
sourceraw docstring

meanclj

(mean m)

Calculates the mean of a 2-D matrix

Calculates the mean of a 2-D matrix
sourceraw 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
sourceraw docstring

random-fncljmacro

(random-fn n f)

Executes the function f repeatedly n times

Executes the function `f` repeatedly `n` times
sourceraw 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
sourceraw docstring

recursive-row-adjustclj

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

reduced-row-echelon-formclj

(reduced-row-echelon-form matrix)
source

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

row-adjust-rrefclj

(row-adjust-rref row-1 row-2 i)

Adjusts the element of row-1 at index i and makes it zero using the elements of row-2

Adjusts the element of `row-1` at index `i` and makes it zero using the elements of `row-2`
sourceraw docstring

sigmoidclj

(sigmoid m)
(sigmoid m _)

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

Returns the sigmoid/logistic values of a 2-D matrix
sourceraw 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
sourceraw docstring

transposeclj

(transpose m)

Returns the transpose of a 2-D matrix

Returns the transpose of a 2-D matrix
sourceraw docstring

triangular-matrix?clj

(triangular-matrix? m)
source

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

zero-above-below-i-jclj

(zero-above-below-i-j matrix [i j] num-rows)

Makes all the elements above and below matrix[i, j] zero using row transformations

Makes all the elements above and below `matrix[i, j]` zero using row transformations
sourceraw docstring

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

× close