Close
Close window
Transpose - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

ListTools

Transpose

transpose a list of lists (as if it were a matrix)

Calling Sequence

Transpose(L)

Parameters

L

-

list of lists (type listlist)

Description

The Transpose(L) function transposes a list of lists as if it were a matrix.

Note: Within a procedure, it is likely that changing the indices is more efficient than creating a new transposed list of lists. Therefore, procedure Transpose should only be used for modifying lists of lists that need to be returned in transposed form.

In the special case where the argument is of type list, is returned.

Examples

>

withListTools:

>

L1,2,3,a,b,c,X,Y,Z

L1,2,3,a,b,c,X,Y,Z

(1)
>

L1,2

2

(2)
>

L2,1

a

(3)
>

RTransposeL

R1,a,X,2,b,Y,3,c,Z

(4)
>

R1,2

a

(5)
>

Transpose,,

(6)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /