(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
(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 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
(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 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
(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
Gets the eigen values of a matrix
(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
(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
(mean-coll c)
Calculates the mean of a collection c
Calculates the mean of a collection `c`
(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
(recursive-row-adjust matrix row-index-to-be-processed)
(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
(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
(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
(upper-triangular-matrix? m)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close