Opened 18 years ago
Last modified 13 years ago
#105 closed defect (fixed)
val function does not work with vectorization (and probably others in interactive as well)
Reported by: | Peter Aronsson | Owned by: | Peter Aronsson |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Peter Aronsson, Adrian Pop |
Description
See comments
Change History (3)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
A clarification: Modelica allows automatic vectorization of calls, for instance
sin({1,2,3}) => {sin(1),sin(2),sin(3)}.
This is implemented for "user-defined" functions in OpenModelica, but it is not
implemented in the general scheme of handling builtin functions. Now, for the
val function it is pretty useful. for instance
val(x,0:0.1:1) => {val(x,0),val(x,0.1),val(x,0.2),...,val(x,1.0)}
comment:3 by , 13 years ago
Fixed when moving val() to the builtin environment+CevalScript instead of Interactive
Note:
See TracTickets
for help on using tickets.
the val function (and probably other "interactive" functions) does not work with
vectorization.
for instance
val(x,0:0.1:1)