Liking cljdoc? Tell your friends :D

sicmutils.matrix


*careful-conversion*clj


->structureclj

(->structure m outer-orientation inner-orientation t?)

Convert m to a structure with given outer and inner orientations. Rows of M will become the inner tuples, unless t? is true, in which columns of m will form the inner tuples.

Convert m to a structure with given outer and inner orientations. Rows of
M will become the inner tuples, unless t? is true, in which columns of m will
form the inner tuples.
raw docstring

by-rowsclj

(by-rows & rs)

characteristic-polynomialclj

(characteristic-polynomial m x)

Compute the characteristic polynomial of the square matrix m, evaluated at x. Typically x will be a dummy variable, but if you wanted to get the value of the characteristic polynomial at some particular point, you could supply a different expression.

Compute the characteristic polynomial of the square matrix m, evaluated
at x. Typically x will be a dummy variable, but if you wanted to get the
value of the characteristic polynomial at some particular point, you could
supply a different expression.
raw docstring

cofactorsclj

(cofactors m)

Computes the matrix of cofactors of the given structure with the same shape, if s is square.

Computes the matrix of cofactors of the given structure with the
same shape, if s is square.
raw docstring

columnclj

(column & es)

determinantclj

(determinant m)

Computes the determinant of m, which must be square. Generic operations are used, so this works on symbolic square matrix.

Computes the determinant of m, which must be square. Generic
operations are used, so this works on symbolic square matrix.
raw docstring

dimensionclj

(dimension m)

fmapclj

(fmap f m)

Maps f over the elements of m, returning an object of the same type.

Maps f over the elements of m, returning an object of the same type.
raw docstring

generateclj

(generate r c f)

Create the r by c matrix whose entries are (f i j)

Create the r by c matrix whose entries are (f i j)
raw docstring

get-inclj

(get-in m is)

Like get-in for matrices, but obeying the scmutils convention: only one index is required to get an unboxed element from a column vector. This is perhaps an unprincipled exception...

Like get-in for matrices, but obeying the scmutils convention: only one
index is required to get an unboxed element from a column vector. This is
perhaps an unprincipled exception...
raw docstring

Iclj

(I n)

Return the identity matrix of order n.

Return the identity matrix of order n.
raw docstring

invertclj

(invert m)

Computes the inverse of a square matrix.

Computes the inverse of a square matrix.
raw docstring

m->sclj

(m->s ls m rs)

Convert the matrix m into a structure S, guided by the requirement that (* ls S rs) should be a scalar

Convert the matrix m into a structure S, guided by the requirement that (* ls S rs)
should be a scalar
raw docstring

matrix-someclj

(matrix-some f m)

True if f is true for some element of m.

True if f is true for some element of m.
raw docstring

matrix?clj

(matrix? m)

nth-colclj

(nth-col m j)

s->mclj

(s->m ls ms rs)

Convert the structure ms, which would be a scalar if the (compatible) multiplication (* ls ms rs) were performed, to a matrix.

Convert the structure ms, which would be a scalar if the (compatible) multiplication
(* ls ms rs) were performed, to a matrix.
raw docstring

s:inverseclj

(s:inverse ls ms rs)

s:transposeclj

(s:transpose ls ms rs)

seq->clj

(seq-> s)

Convert a sequence (typically, of function arguments) to an up-structure. GJS: Any matrix in the argument list wants to be converted to a row of columns

Convert a sequence (typically, of function arguments) to an up-structure.
GJS: Any matrix in the argument list wants to be converted to a row of
columns
raw docstring

square-structure->clj

(square-structure-> s k)

Converts the square structure s into a matrix, and calls the continuation with that matrix and a function which will restore a matrix to a structure with the same inner and outer orientations as s.

Converts the square structure s into a matrix, and calls the
continuation with that matrix and a function which will restore a
matrix to a structure with the same inner and outer orientations as
s.
raw docstring

square-structure-operationclj

(square-structure-operation s f)

Applies matrix operation f to square structure s, returning a structure of the same type as that given.

Applies matrix operation f to square structure s, returning a structure of the same
type as that given.
raw docstring

transposeclj

(transpose m)

Transpose the matrix m.

Transpose the matrix m.
raw docstring

withoutclj

(without m i j)

The matrix formed by deleting the i'th row and j'th column of the given matrix.

The matrix formed by deleting the i'th row and j'th column of the given matrix.
raw docstring

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

× close