Liking cljdoc? Tell your friends :D

sicmutils.matrix


*careful-conversion*clj/s


->structureclj/s

(->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/s

(by-rows & rs)

characteristic-polynomialclj/s

(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/s

(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/s

(column & es)

determinantclj/s

(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/s

(dimension m)

fmapclj/s

(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/s

(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/s

(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/s

(I n)

Return the identity matrix of order n.

Return the identity matrix of order n.
raw docstring

invertclj/s

(invert m)

Computes the inverse of a square matrix.

Computes the inverse of a square matrix.
raw docstring

m->sclj/s

(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/s

(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/s

(matrix? m)

nth-colclj/s

(nth-col m j)

s->mclj/s

(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

(s:inverse ls ms rs)

s:transposeclj/s

(s:transpose ls ms rs)

seq->clj/s

(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/s

(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/s

(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/s

(transpose m)

Transpose the matrix m.

Transpose the matrix m.
raw docstring

withoutclj/s

(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