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