(build-matrix rows cols f)
Builds a new matrix of shape rows x cols with the value m[i, j] is f(i, j).
Builds a new matrix of shape rows x cols with the value m[i, j] is f(i, j).
(column-vector m j)
Returns the column vector of the matrix m at column j.
Returns the column vector of the matrix m at column j.
Returns the column vectors of the matrix m.
Returns the column vectors of the matrix m.
(columns m)
Returns the number of columns of the matrix m.
Returns the number of columns of the matrix m.
(diagonal i j)
Returns 1 if i = j, otherwise 0.
Returns 1 if i = j, otherwise 0.
(element m i j)
Returns the element of the matrix m at row i and column j.
Returns the element of the matrix m at row i and column j.
(identity-matrix n)
Builds an identity matrix of shape n x n.
Builds an identity matrix of shape n x n.
(lower-triangular m)
Returns the lower triangular matrix of the matrix m.
Returns the lower triangular matrix of the matrix m.
(matrix-add m n)
Adds the matrices m and n.
Adds the matrices m and n.
(matrix-difference m n)
Substracts the matrices m and n.
Substracts the matrices m and n.
(row-vector m i)
Returns the row vector of the matrix m at row i.
Returns the row vector of the matrix m at row i.
(rows m)
Returns the number of rows of the matrix m.
Returns the number of rows of the matrix m.
(scalar-add s m)
Adds the scalar s to the matrix m.
Adds the scalar s to the matrix m.
(scalar-product s m)
Multiplies the scalar s to the matrix m.
Multiplies the scalar s to the matrix m.
(shape m)
Returns the shape of the matrix as a vector of the number of rows and columns.
Returns the shape of the matrix as a vector of the number of rows and columns.
(transpose m)
Returns the transposed matrix of the matrix m.
Returns the transposed matrix of the matrix m.
(upper-triangular m)
Returns the upper triangular matrix of the matrix m.
Returns the upper triangular matrix of the matrix m.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close