Command: Transpose

NEST HelpDesk Command Index NEST Quick Reference

Name:
 Transpose - Transposes the first two levels of its argument

Synopsis:
      array Transpose -> array

Description:
     Transpose gives the usual transpose of a matrix.
     Acting on a tensor Tijkl... Transpose gives the tensor Tjikl...

Parameters:

Examples:
     [ [3 4 5] [6 7 8] ] Transpose  -> [[3 6] [4 7] [5 8]]

Bugs:
     protected for non-rectangular shapes by assert().
     Transpose should raise
       /NonRectangularShapeError error
     and message
      "The first two levels of the one-dimensional list cannot be transposed."
Author:
 Markus Diesmann, July 9, 2000
FirstVersion:
 June, 2000
References:
   [1] The Mathematica Book V4.0 "Transpose"
SeeAlso:Flatten Partition
Source:
 /home/abuild/rpmbuild/BUILD/nest-2.4.1/sli/sliarray.cc

NEST HelpDesk Command Index NEST Quick Reference

© 2000-2010 The NEST Initiative