Set the way to convert matrices
method = jconvMatrixMethod() jconvMatrixMethod(method)
A string giving the type of conversion: 'rc' or 'cr'
In Scilab a matrix such as [1 2 3;4 5 6]
is stored [1 4 2 5 3 6]
(column by column). In Java the same matrix is stored as [->[1 2 3] ->[4 5 6]]
(array of pointers).
When method is 'cr' (column-row), the internal array [1 4 2 5 3 6]
is passed as it is and Java creates the array [->[1 4] ->[2 5] ->[3 6]]
.
When method is 'rc' (row-column), the array [1 4 2 5 3 6]
is passed as [1 2 3 4 5 6]
and converted into [->[1 2 3] ->[4 5 6]]
.
By default the method is set to 'cr'.