Opened 10 years ago

Closed 10 years ago

#2757 closed defect (fixed)

double sum fail

Reported by: Vitalij Ruge Owned by: Martin Sjölund
Priority: high Milestone: 1.9.1
Component: Frontend Version: trunk
Keywords: Cc:

Description

the model:

model testSum
  Real[:,:] A=ones(5, 5);
  Real b = sum({{A[i, j] for i in 1:5} for j in 1:5});
end testSum;

fail with the error:

Error: Too many equations, over-determined system. The model has 5 equation(s) and 1 variable(s).
Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed!

Change History (3)

comment:1 by Martin Sjölund, 10 years ago

Component: BackendFrontend

I believe this is a front-end issue. b should be the scalar sum A[1,1] + ... + A[5,5], but the front-end returns an array of size 1: {A[1,1] + ... + A[5,5]}

comment:2 by Martin Sjölund, 10 years ago

Owner: changed from somebody to Martin Sjölund
Status: newaccepted

comment:3 by Martin Sjölund, 10 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in r21780. I was lazy and did not add a testcase.

Note: See TracTickets for help on using tickets.