Description Usage Arguments Value Examples
Split a state vector into the h,u and r components. Basically the opposite of sweq_stack
1 | sweq_split(state, ndim, names.only = FALSE)
|
state |
Vector (3ndim) or matrix (3ndim x N) if ensemble |
ndim |
number of dimensions in physical space |
names.only |
T/F create factors (useful in sweq_plot) |
a list with components h, u and r, each of size ndim
1 2 3 4 5 | state0 <- .sweq_init(10, umean=0, unoise=FALSE, topo=1)
hur <- sweq_split(state0$state, 10)
h <- hur$h
u <- hur$u
r <- hur$r
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.