Opened 13 years ago
Last modified 13 years ago
#1598 closed defect (fixed)
matrix: Modelica Spec 10.3.2 Dimensionality Conversion Functions
Reported by: | Jens Frenkel | Owned by: | Jens Frenkel |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Instantiation | Version: | trunk |
Keywords: | Cc: | Frenkel TUD, Per Östlund, Martin Sjölund |
Description
the "matrix" keyword from Modelica Spec 10.3.2 Dimensionality Conversion
Functions is not supported
model ArrayIndex3 parameter Real ABCD[5,5]; parameter Real A[:,:] = ABCD[1:end-1,1:end-1]; parameter Real B[:,:] = ABCD[1:end-1,end:end]; parameter Real C[:,:] = ABCD[end:end,1:end-1]; parameter Real D[:,:] = matrix(ABCD[end,end]); end ArrayIndex3;
{"[ArrayIndex3.mo:6:2-6:47:writable] Error: Failed to elaborate expression: matrix(ABCD[end,end])", "TRANSLATION", "Error", "159"}
Change History (2)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Seems odd. The examples gets:
parameter Real C[1,4] = ABCD[{5},{1,2,3,4},1,4];
Which seems quite odd
Note:
See TracTickets
for help on using tickets.
Elaboration of matrix is now implemented in r9721.