(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.
(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.
(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
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close