Scilab 5.5.0
- Scilab Help
- Java from Scilab
- Getting started - Beginning
- Getting started - Second step
- jallowClassReloading
- jarray
- jautoTranspose
- jautoUnwrap
- jcast
- jcompile
- jconvMatrixMethod
- jcreatejar
- jdeff
- jdisableTrace
- jenableTrace
- jexists
- jgetclassname
- jgetfield
- jgetfields
- jgetinfo
- jgetmethods
- jimport
- jinvoke
- jinvoke_db
- jnewInstance
- jnull
- jremove
- jsetfield
- junwrap
- junwraprem
- jvoid
- jwrap
- jwrapinchar
- jwrapinfloat
- new
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.
jconvMatrixMethod
Set the way to convert matrices This function is obsolete.
Calling Sequence
method = jconvMatrixMethod() jconvMatrixMethod(method)
Parameters
- method
A string giving the type of conversion: 'rc' or 'cr'
Description
This function is obsolete and will be removed in Scilab 6.0.0, use preferabily the jautoTranspose function. |
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'.
Examples
jconvMatrixMethod() jconvMatrixMethod("cr")
See Also
- jautoTranspose — Set the way to convert matrices
History
Version | Description |
5.5.0 | Function introduced. Based on the 'JIMS' module. The main difference in the behavior compared to the JIMS module is that jautoUnwrap is enabled by default. |
Report an issue | ||
<< jcompile | Java from Scilab | jcreatejar >> |