Liking cljdoc? Tell your friends :D

clj-linear.commons-math


allocate-columnsclj

(allocate-columns exprs)

Given a seq of expressions (sym -> coefficient maps), choose a unique index for each symbol.

Given a seq of expressions (sym -> coefficient maps), 
choose a unique index for each symbol.
sourceraw docstring

coefficient-vectorclj

(coefficient-vector expr column-allocation)

Turn an expression into a dense coefficient vector suitable for use with commons math, using the columns given in column-allocation.

Turn an expression into a dense coefficient vector suitable for use
with commons math, using the columns given in column-allocation.
sourceraw docstring

make-constraintclj

(make-constraint lhs-coefficients relationship rhs-constant)
source

make-solution-mapclj

(make-solution-map solution-vector column-allocation)

Turn a vector of solutions into a map, using the given column allocation

Turn a vector of solutions into a map, using the given column allocation
sourceraw docstring

minimizeclj

(minimize objective-expr constraints)
source

objectiveclj

(objective coefficients constant-term)
source

relationship-kwclj

source

solveclj

(solve objective constraints)
source

to-double-arrayclj

(to-double-array vec-or-map)

Convert a sparse vector (map of index to value) into a double array, with unfilled values set to zero. Regular vectors are converted directly.

Convert a sparse vector (map of index to value) into a double
array, with unfilled values set to zero. Regular vectors are 
converted directly. 
sourceraw docstring

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

× close