pub fn simulate_nd<const N: usize, D, G, SC>(
drift: &D,
diffusion: &G,
scheme: &SC,
x0: SVector<f64, N>,
t0: f64,
t1: f64,
n_paths: usize,
n_steps: usize,
seed: u64,
) -> Result<Array3<f64>, PathwiseError>Expand description
Simulate n_paths paths of an N-dimensional SDE from t0 to t1.
Returns Array3(n_paths, n_steps + 1, N).
Negative values in each component are NOT clipped unless the process does so
in its diffusion (e.g. CIR, Heston full-truncation).