Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2024.1.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Java from Scilab > jautoTranspose

jautoTranspose

Set the way to convert matrices

Calling Sequence

method = jautoTranspose()
jautoTranspose(method)

Parameters

method

A boolean giving the type of conversion

Description

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 '%f' (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 't' (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 '%f'.

Examples

jautoTranspose()
jautoTranspose(%t)

History

VersionDescription
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
<< jarray Java from Scilab jautoUnwrap >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 13:47:02 CEST 2014