UoY-RoboStar / robochart-textual

This repository contains the plugins for the RoboChart textual editor
Eclipse Public License 2.0
0 stars 1 forks source link

Matrices should be represented in row-major format #58

Open alvarohm opened 2 years ago

alvarohm commented 2 years ago

The syntax will be more intuitive.

The metamodel. syntax and semantics need to be changed.

This replaces issue #51

alvarohm commented 2 years ago

To be consistent with matlab and numpy, vector will be row-vectors by default. If a column vector is desired, a n-by-1 matrix is created.

row vector: [1,2,3] column vector: [1;2;3]

alvarohm commented 2 years ago

I have updated the metamodel, syntax and semantics. These are in new branches called row-major in each repository.

I have also checked that the robosim and physmod plugins remain compatible (by code inspection).

There is currently an issue with the declaration of core_int, which may introduce a cycle through the use of inner products.