(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
(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
(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
(covariance m)
Calculates the covariance matrix of a 2-D matrix
Calculates the covariance matrix of a 2-D matrix
(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
(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.
(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
(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
(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
(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
(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
(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
(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
(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
(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`
(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
(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
(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
(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
(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
(mean m)
Calculates the mean of a 2-D matrix
Calculates the mean of a 2-D matrix
(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
(random-fn n f)
Executes the function f
repeatedly n
times
Executes the function `f` repeatedly `n` times
(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
(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
(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`
(sigmoid m)
(sigmoid m _)
Returns the sigmoid/logistic values of a 2-D matrix
Returns the sigmoid/logistic values of a 2-D matrix
(swap-rows m i j)
Swaps the rows at the i
th and j
th indexes
Swaps the rows at the `i`th and `j`th indexes
(transpose m)
Returns the transpose of a 2-D matrix
Returns the transpose of a 2-D matrix
(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
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close