Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Built-In Fnc, zeros(.), ones(.), identity(.)

Built-In Fnc, zeros(.), ones(.), identity(.)

Hello Everybody,

currently I'm porting some models I developed and tested successfully in Dymola to OpenModelica.
In this context I need help with the usage of the built-in functions zeros(.), ones(.), identity(.).

The following behavior of the OpenMOdelica I can't explain.
Giving in OMShell:
a_1 := zeros(3)
a_2 := ones(3)
n := 3
a_3 := identity(n)
leads to a_1, a_2, a_3 empty arrays.

What's the problem?

Thanks in anticipation.

There are 0 guests and 0 other users also viewing this topic
You are here: