Opened 12 years ago

Closed 12 years ago

#1950 closed defect (fixed)

symmetric: failed to elaborate expression

Reported by: Christian Schubert Owned by: Martin Sjölund
Priority: high Milestone: 1.9.0
Component: Frontend Version: trunk
Keywords: symmetric failed to elaborate expression Cc: Adrian Pop

Description

It seems that the Modelica builtin function 'symmetric' is missing.
Running the model

model test_symmetric
	Real A[2,2] = [[1,2]; 
	               [3,4]];
	Real B[:,:] = symmetric(A);
end test_symmetric;

yields

Error: Failed to elaborate expression: symmetric(A)
Error occurred while flattening model test_symmetric

Attachments (3)

symmetric.mo (121 bytes ) - added by Christian Schubert 12 years ago.
symmetric.2.mo (121 bytes ) - added by Christian Schubert 12 years ago.
symmetric.mos (108 bytes ) - added by Christian Schubert 12 years ago.

Download all attachments as: .zip

Change History (5)

by Christian Schubert, 12 years ago

Attachment: symmetric.mo added

by Christian Schubert, 12 years ago

Attachment: symmetric.2.mo added

by Christian Schubert, 12 years ago

Attachment: symmetric.mos added

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

Status: newaccepted

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

Resolution: fixed
Status: acceptedclosed

Fixed in r14075. Flattening testcase added, ExpressionSimplify handles it. If it is needed in generated code, someone working in the backend should add it.

Note: See TracTickets for help on using tickets.