ListTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Tables, lists, and sets : ListTools Package : ListTools/Transpose

ListTools

  

Transpose

  

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

 

Calling Sequence

Parameters

Description

Examples

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

L:=1,2,3,a,b,c,X,Y,Z

(1)

L1,2

2

(2)

L2,1

a

(3)

RTransposeL

R:=1,a,X,2,b,Y,3,c,Z

(4)

R1,2

a

(5)

Transpose,,

(6)

See Also

inline

LinearAlgebra[Transpose]

ListTools

type[listlist]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam