Liking cljdoc? Tell your friends :D

org.soulspace.math.matrix


build-matrixclj/s

(build-matrix rows cols f)

Builds a new matrix of shape rows x cols with function f so that the value m[i, j] is f(i, j).

Builds a new matrix of shape `rows` x `cols` with function `f` so that the value m[i, j] is f(i, j).
sourceraw docstring

column-vectorclj/s

(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`.
sourceraw docstring

column-vectorsclj/s

Returns the column vectors of the matrix m.

Returns the column vectors of the matrix `m`.
sourceraw docstring

columnsclj/s

(columns m)

Returns the number of columns of the matrix m.

Returns the number of columns of the matrix `m`.
sourceraw docstring

diagonalclj/s

(diagonal i j)

Returns 1 if i = j, otherwise 0.

Returns 1 if i = j, otherwise 0.
sourceraw docstring

elementclj/s

(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`.
sourceraw docstring

identity-matrixclj/s

(identity-matrix n)

Builds an identity matrix of shape n x n.

Builds an identity matrix of shape `n` x `n`.
sourceraw docstring

lower-triangularclj/s

(lower-triangular m)

Returns the lower triangular matrix of the matrix m.

Returns the lower triangular matrix of the matrix `m`.
sourceraw docstring

matrix-addclj/s

(matrix-add m n)

Adds the matrices m and n.

Adds the matrices `m` and `n`.
sourceraw docstring

matrix-differenceclj/s

(matrix-difference m n)

Substracts the matrices m and n.

Substracts the matrices `m` and `n`.
sourceraw docstring

matrix-productclj/s

(matrix-product m n)

Matrix product of m and n.

Matrix product of `m` and `n`.
sourceraw docstring

matrix-sumclj/s

(matrix-sum & ms)

Adds the matrices.

Adds the matrices.
sourceraw docstring

row-vectorclj/s

(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`.
sourceraw docstring

rowsclj/s

(rows m)

Returns the number of rows of the matrix m.

Returns the number of rows of the matrix `m`.
sourceraw docstring

scalar-addclj/s

(scalar-add s m)

Adds the scalar s to the matrix m.

Adds the scalar `s` to the matrix `m`.
sourceraw docstring

scalar-productclj/s

(scalar-product s m)

Multiplies the scalar s to the matrix m.

Multiplies the scalar `s` to the matrix `m`.
sourceraw docstring

shapeclj/s

(shape m)

Returns the shape of the matrix m as a vector of the number of rows and columns.

Returns the shape of the matrix `m` as a vector of the number of rows and columns.
sourceraw docstring

solveclj/s

(solve m v)
source

transposeclj/s

(transpose m)

Returns the transposed matrix of the matrix m.

Returns the transposed matrix of the matrix `m`.
sourceraw docstring

upper-triangularclj/s

(upper-triangular m)

Returns the upper triangular matrix of the matrix m.

Returns the upper triangular matrix of the matrix `m`.
sourceraw docstring

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

× close