Construct a new object - generally prefer dustState
which also allocates the data
correctly
The underlying data
The number of state elements per particle
The number of particles
Readonly
nThe number of particles
Readonly
nThe number of state elements per particle
Readonly
stateThe underling state
Create a matrix of particle states. The i
th element of the
returned matrix is the state of the i
th particle, itself a
vector of length nState
. This is a copy of the underlying
data, decoupled from the state.
Copy the state for a single vector into a plain JavaScript numeric array. This will then be decoupled from the underlying object
The index of the particle to fetch
Copy a single state across all variables into a plain JavaScript numeric array. This will then be decoupled from the underlying object
The index of the state to fetch
Construct a VectorView for a single particle. This can then be easily read from or written to.
The index of the particle to fetch
Construct a VectorView for a single state, across all particles. This can then be easily read from or written to.
The index of the state to fetch
Generated using TypeDoc
Matrix-like object representing the state of a dust model at a single point in time (vs a 3d-array like object DustStateTime. 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 underling storage later (currently using
ndarray
)