Third, this is a more natural interpretation and lets us more gracefully support cases where we are converting exact MC draws with no chains.
The current behavior is a holdover from when we used the reversed ordering of dimensions, when a vector would correctly have been interpreted as a vector of draws. So I would classify this as a bug.
Currently, an
AbstractVector{<:Real}
of lengthn
is assumed to represent a single draw withn
chains:There are several reasons why we should change this behavior. First, the vector and its transpose are then interpreted identically:
Second, simply reshaping the vector into a matrix with the same leading dimension is interpreted completely differently:
Third, this is a more natural interpretation and lets us more gracefully support cases where we are converting exact MC draws with no chains.
The current behavior is a holdover from when we used the reversed ordering of dimensions, when a vector would correctly have been interpreted as a vector of draws. So I would classify this as a bug.