Skip to contents

Reorder states within a system. This function is primarily used for debugging and may be removed from the interface if it is not generally useful.

Usage

dust_system_reorder(sys, index)

Arguments

sys

A dust_system object

index

The parameter ordering. For an ungrouped system this is a vector where each element is the parameter index (if element i is j then after reordering the ith particle will have the state previously used by j). All elements must lie in [1, n_particles], repetition of an index is allowed (so that many new particles may have the state as one old particle). If the system is grouped, index must be a matrix with n_particles rows and n_groups columns, with each column corresponding to the reordering for a group.

Value

Nothing, called for side effects only.