﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1237	Array equations not handled inside of when equations	Per Östlund	Per Östlund	"Array equations are not handled inside of when equations yet. Support for DAE.ARRAY_EQUATION need to be added to at least DAEUtil.verifyWhenEquationStatements and DAE.lowerWhenEqn2. Example model:
{{{
function inv ""a function to calculate inverse of a 2x2 matrix""
input Real A[2,2];
output Real B[2,2];
Real Det;
algorithm
Det:=A[1,1]*A[2,2]-A[2,1]*A[1,2];
B[1,1]:=A[2,2]/Det;
B[1,2]:=-A[1,2]/Det;
B[2,1]:=-A[2,1]/Det;
B[2,2]:=A[1,1]/Det;
end inv;

model inverse

Real P[2,2]={{6,4},{5,7}};
Real Q[2,2];
equation
when sample(0,0.5) then
Q=inv(P);
end when;
end inverse;
}}}"	defect	closed	high		Backend	1.6.0	fixed		Per Östlund
