Inability to solve SDEProblem with a custom array type (say CustomArray) that is not a subtype of AbstractArray, as DiffEqBase.__init requires that you define Base.:(/)(x::CustomArray, y::CustomArray).
Environment (please complete the following information):
Output of using Pkg; Pkg.status()
Status `~/Documents/Julia Packages/QuantumJulia/Project.toml`
[4c88cf16] Aqua v0.8.7
[4fba245c] ArrayInterface v7.14.0
[6e4b80f9] BenchmarkTools v1.5.0
[0c46a032] DifferentialEquations v7.13.0
[ffbed154] DocStringExtensions v0.9.3
[e30172f5] Documenter v1.5.0
[daee34ce] DocumenterCitations v1.3.3
[7a1cc6ca] FFTW v1.8.0
[7034ab61] FastBroadcast v0.3.5
[1a297f60] FillArrays v1.11.0
[f6369f11] ForwardDiff v0.10.36
⌃ [e9467ef8] GLMakie v0.9.11
[c3a54625] JET v0.9.7
[8ac3fa9e] LRUCache v1.6.1
[23fbe1c1] Latexify v0.16.4
[16fef848] LiveServer v1.3.1
[1914dd2f] MacroTools v0.5.13
[f9640e96] MultiScaleArrays v1.12.0
[1dea7af3] OrdinaryDiffEq v6.87.0
[e4faabce] PProf v3.1.0
[32113eaa] PkgBenchmark v0.2.12
[d330b81b] PyPlot v2.11.5
[0525e862] QuantumClifford v0.9.7
[5717a53b] QuantumInterface v0.3.4 `QuantumInterface.jl`
[6e0679c1] QuantumOptics v1.1.1 `QuantumOptics.jl`
[4f57444f] QuantumOpticsBase v0.5.1 `QuantumOpticsBase.jl`
[efa7fd63] QuantumSymbolics v0.3.4 `QuantumSymbolics.jl`
[2576dda1] RandomMatrices v0.5.5
[731186ca] RecursiveArrayTools v3.26.0
[295af30f] Revise v3.5.17
[1bc83da4] SafeTestsets v0.1.0
[2913bbd2] StatsBase v0.34.3
[789caeaf] StochasticDiffEq v6.67.0
[5e0ebb24] Strided v2.1.0
[4db3bf67] StridedViews v0.3.1
⌅ [d1185830] SymbolicUtils v2.1.2
[0c5d862f] Symbolics v5.34.0
[ade2ca70] Dates
[37e2e46d] LinearAlgebra
[9abbd945] Profile
[2f01184e] SparseArrays v1.10.0
Info Packages marked with ⌃ and ⌅ have new versions available. Those with ⌃ may be upgradable, but those with ⌅ are restricted by compatibility constraints from upgrading. To see why use `status --outdated`
Additional context
For context, I am working to define a broadcast interface for QuantumOptics.jl types (which wrap around arrays and basis information) that integrates with SciML.
Describe the bug 🐞
Inability to solve
SDEProblem
with a custom array type (sayCustomArray
) that is not a subtype ofAbstractArray
, asDiffEqBase.__init
requires that you defineBase.:(/)(x::CustomArray, y::CustomArray)
.Minimal Reproducible Example 👇
I am modifying the test example: https://github.com/SciML/StochasticDiffEq.jl/blob/master/test/noindex_tests.jl so that it the custom type is not a subtype of
AbstractArray
, which requires a few more methods to be defined:You can solve this defined type on
ODEProblem
s, but not onSDEProblem
s:Error & Stacktrace ⚠️
Environment (please complete the following information):
using Pkg; Pkg.status()
Additional context
For context, I am working to define a broadcast interface for QuantumOptics.jl types (which wrap around arrays and basis information) that integrates with SciML.