odem-rs Util
odem-rs-util offers additional utility structures that improve model development in odem-rs. It provides object pools, random number streams, and statistics collection tools to improve modeling ergonomics.
Features
- Dynamic object pooling for efficient memory reuse.
- Deterministic random number generation with independent streams using
rand. - Statistical utilities for model evaluation.
- Physical dimensions for quantities using
uom.
Feature Flags
| Feature | Default | Description |
|---|---|---|
std |
yes | Standard library support (implies alloc). |
alloc |
yes | Heap allocation for dynamic object pools. |
uom |
yes | Type-safe SI quantities for model time. |
rand_pcg |
yes | PCG-family pseudo-random number generators. |
rand_xoshiro |
no | XoShiRo-family pseudo-random number generators. |
rayon |
no | Parallel iteration for independent simulation runs. |
libm |
no | Software math functions for no_std environments. |
See the API documentation for detailed descriptions of each feature flag.
Installation
It is recommended to use the odem-rs entry crate for odem-rs, but it is possible to use this crate together with the simulator core from odem-rs-core. To use it, add the following line to your Cargo.toml:
[]
= "0.3"
License
Licensed under MIT. See LICENSE for details.