Out-of-place `CoupledSDEs` erroring with `trajectory`
bug
**Describe the bug**
Using `trajectory` on a `CoupledSDEs` with specified `covariance` works for in-place deterministic functions but not for out-of-place. The code below throws the following error:
`DimensionMismatch: Sizes (Size(2,), Size(2, 2)) of input arrays do not match`
**Minimal Working Example**
```julia
using DynamicalSystemsBase
using StochasticDiffEq
ρ = 0.3
Σ = [1 ρ; ρ 1]
f!(du, u, p, t) = du .= 1.01u
f(u, p, t) = 1.01u
sde_iip = CoupledSDEs(f!, zeros(2); covariance=Σ)
sde_oop = CoupledSDEs(f, zeros(2); covariance=Σ)
trajectory(sde_iip, 1) # works
trajectory(sde_oop, 1) # throws error
```
**Package versions**
DynamicalSystemsBase `v3.11.2`
StochasticDiffEq `v6.70.0`
Julia `v1.10.0`
关闭于 2024-10-29 7 条评论