
Recursively flatten a nested list of expressions into one column vector
Source:R/049_atoms_affine_reshape.R
deep_flatten.RdFlattens x into a single column vector. An Expression or numeric is
vectorized column-major; a list is flattened element by element and the
pieces stacked in order, recursively. This is what lets vdot() accept
nested lists: vdot(list(a, b), c(1, 2)) is a * 1 + b * 2.