View source: R/049_atoms_affine_reshape.R
| deep_flatten | R Documentation |
Flattens 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.
deep_flatten(x)
x |
An Expression, a numeric value, or a (possibly nested) list of them. |
An Expression of shape c(n, 1).
vec(), vdot()
a <- Variable(); b <- Variable()
deep_flatten(list(a, b))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.