Changes between Initial Version and Version 4 of Ticket #2791
- Timestamp:
- 2014-08-25T13:57:51Z (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2791
- Property Status new → reopened
- Property Milestone Future
-
Ticket #2791 – Description
initial v4 1 Th ese examples from version 3.3 of the Modelica specification, section 10.4.1.2 ''Array constructor with several iterators'', do not work (they don't even parse):1 This example from version 3.3 of the Modelica specification, section 10.4.1.2 ''Array constructor with several iterators'', does not work: 2 2 {{{ 3 Real hilb[:,:]= {(1/(i+j-1) for i in 1:n, j in 1:n}; 4 Real hilb2[:,:]={{(1/(i+j-1) for j in 1:n} for i in 1:n}; 3 model Nested 4 parameter Integer n = 4; 5 Real hilb[:,:]= {(1/(i+j-1)) for i in 1:n, j in 1:n}; 6 end Nested; 5 7 }}} 8 9 Output from the translation: 10 {{{ 11 [CodegenC.tpl:9529:14-9529:14] Error: Template error: Code generation does not support multiple iterators: array(DIVISION(1.0, /*Real*/(i + j + -1)) for j in {1, 2, 3, 4}, i in {1, 2, 3, 4}) 12 }}}