-
-
Notifications
You must be signed in to change notification settings - Fork 233
Closed
Labels
Description
(initially reported in #797, which was prematurely closed)
There doesn't seem to be a way of defining matrix differential equation.
The code below,
@parameters x y
@variables u[1:2,1:2]
Dx = Differential(x)
A = [1.0*x 2.0*y; 3.0 4.0];
eq = Dx.(u) .~ A*u
B = [1.0 2.0; 3.0 4.0];
bcs = [u(0,y) .~ 0.f0*B; u(1,y) .~ -sin(pi*1)*sin(pi*y)*B; u(x,0) .~ 0.f0*B; u(x,1) .~ -sin(pi*x)*sin(pi*1)*B]
which was partially based on suggestions in #797, fails with the following error:
MethodError: objects of type Array{Variable{Number},2} are not callable
Use square brackets [] for indexing an Array.
Stacktrace:
[1] top-level scope at In[51]:6