Construct a new object - generally prefer dustStateTime
which also allocates the data
correctly
The underlying data
The number of state elements per particle
The number of particles
The number of time steps
Readonly
nThe number of particles
Readonly
nThe number of state elements per particle
Readonly
nThe number of time steps
Readonly
stateThe underlying state
Copy the state for a single vector at a single point in time into a plain JavaScript numeric array. This will then be decoupled from the underlying object
The index of the particle to fetch
The index of the time to fetch
Copy a single state variable across all particles at a single point in time into a plain JavaScript numeric array. This will then be decoupled from the underlying object
The index of the state to fetch
The index of the time to fetch
Copy the state for a single trace of a variable for a single particle over all time points into a plain JavaScript numeric array. This will then be decoupled from the underlying object
The index of the state to fetch
The index of the particle to fetch
Construct a VectorView for a single particle at a single point in time. This can then be easily read from or written to.
The index of the particle to fetch
The index of the time to fetch
Construct a VectorView for a single state, across all particles at a single point in time. This can then be easily read from or written to.
The index of the state to fetch
The index of the time to fetch
Construct a VectorView for a single trace (or variable) for a single particle over all points in time. This can then be easily read from or written to.
The index of the state to fetch
The index of the particle to fetch
Generated using TypeDoc
3d-array-like object representing the state of a dust model at multiple points in time (vs a matrix-like object DustState. This object exists to simplify thinking about accessing different parts of the data, as primitives for doing this don't really exist in JavaScript. It also leaves us free to swap out the underlying storage later (currently using
ndarray
)