Liking cljdoc? Tell your friends :D

sicmutils.matrix


*careful-conversion*clj

source

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

by-rowsclj

(by-rows & rs)
source

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

columnclj

(column & es)
source

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

dimensionclj

(dimension m)
source

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.
sourceraw 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)
sourceraw 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...
sourceraw docstring

Iclj

(I n)

Return the identity matrix of order n.

Return the identity matrix of order n.
sourceraw docstring

invertclj

(invert m)

Computes the inverse of a square matrix.

Computes the inverse of a square matrix.
sourceraw 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
sourceraw 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.
sourceraw docstring

matrix?clj

(matrix? m)
source

nth-colclj

(nth-col m j)
source

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

s:inverseclj

(s:inverse ls ms rs)
source

s:transposeclj

(s:transpose ls ms rs)
source

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

transposeclj

(transpose m)

Transpose the matrix m.

Transpose the matrix m.
sourceraw 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.
sourceraw docstring

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

× close