Liking cljdoc? Tell your friends :D

clj-stan.r-dump-format


dimsclj

(dims coll)

Returns a list of dimensions for nested sequential types. Returns () for anything that doesn't have well defined dimensions.

A special case: {:dimensions [0 2]} is considered to represent an empty vector of length 2 vectors---something like this is needed because clojure has no types, while STAN is quite strongly typed

Returns a list of dimensions for nested sequential types.
Returns () for anything that doesn't have well defined dimensions.

A special case: `{:dimensions [0 2]}` is considered to represent an
empty vector of length 2 vectors---something like this is needed
because clojure has no types, while STAN is quite strongly typed
sourceraw docstring

r-dumpclj

(r-dump filename data)

Write the data in a clojure map to the given file in r-dump format.

Write the data in a clojure map to the given file in r-dump
format.
sourceraw docstring

r-dump-key-valueclj

(r-dump-key-value [k v])
source

r-dump-vectorclj

(r-dump-vector v)
source

r-flattenclj

(r-flatten coll)

Flatten a nested sequence, while also transposing at each level---this translates naturally between clojure's natural indexing and the way the r-dump format treats array structures.

Flatten a nested sequence, while also transposing at each
level---this translates naturally between clojure's natural indexing
and the way the r-dump format treats array structures.
sourceraw docstring

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

× close