Convert Layer Structure to Vector
These functions are used to reorganize the state vector state-wise resp. layer-wise.
1 2 3 4 5
state vector resp. state matrix
number of state variables
number of layers
state vectors from layer wise (ABCABCABC) to state wise (AAABBBCCC) and vice
layers2vector creates a state vector from a matrix
(layers x variables).
rearranged vector of state variables
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.