Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
tensor[permute_indices] - Permutation of the indices of a tensor_type
Calling Sequence
permute_indices(T, permutation)
Parameters
T
-
tensor_type on which to perform permutation
permutation
permutation according to which the re-indexing of the indices is to be done
Description
This procedure allows you to change the way a given tensor_type is indexed. Given any permutation of the indices of a tensor_type and a tensor, the routine will re-index the tensor according to the given permutation.
T must be of rank 2 or more.
permutation is a list of indices (integers ranging from 1 to rank(T)) with no duplications and size equal to the rank of T. It is used to specify the re-indexing of the tensor in the following way: The `nth' index of the original tensor is moved to the position of `n' in the permutation. For example, a permutation list of specifies that the third index of the original tensor will be the first index of the re-indexed tensor, the first index of the original tensor will be the second index of the re-indexed tensor, and the second index of the original tensor will be the third index of the re-indexed tensor (that is, i,j,k --> k,i,j).
This function is occasionally useful because of the rigidity in default indexing of the other utility routines, like prod, contract, and cov_diff, of the tensor package. Since you can have a preferred indexing different from the default, and switching back and forth between the two conventions could be confusing during a substantial computation, it is advised that you perform a re-ordering of indices of any computed tensor_type to comply with your indexing convention, whenever the default indexing is different from the one with which you are comfortable.
Note that any symmetrical properties of the indices of the input are not preserved in the re-indexed indices of the result.
This function is part of the tensor package, and so can be used in the form permute_indices(..) only after performing the command with(tensor) or with(tensor, permute_indices). The function can always be accessed in the long form tensor[permute_indices](..).
Examples
Find the transpose of a rank 2 tensor.
Perform a cyclic permutation on a rank 3 tensor.
See Also
tensor, tensor/cov_diff, tensor[contract], tensor[prod]
Download Help Document