SciML / ModelingToolkit.jl

An acausal modeling framework for automatically parallelized scientific machine learning (SciML) in Julia. A computer algebra system for integrated symbolics for physics-informed machine learning and automated transformations of differential equations
https://mtk.sciml.ai/dev/
Other
1.38k stars 196 forks source link

Cannot provide default value for array parameter #2810

Open baggepinnen opened 2 weeks ago

baggepinnen commented 2 weeks ago
julia> @mtkmodel Baz begin
           @parameters begin
               n[1:3] = [0, 0, 1]
           end
       end
ERROR: Cannot parse default [0, 0, 1] Expr
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] parse_default(mod::Module, a::Expr)