ctranspose
R2026bLaurent matrix transpose
Syntax
Description
Examples
Create two Laurent polynomials:
lpA = laurentPolynomial(Coefficients=[2 4 6]); lpB = laurentPolynomial(Coefficients=[1 3 5],MaxOrder=2);
Create the Laurent matrix lmat = .
lmat = laurentMatrix(Elements={-1 lpA; lpB 7});Display the elements of the transpose of lmat.
lmatTrans = ctranspose(lmat); for j=1:2 for k=1:2 elt = lmatTrans.Elements{j,k}; fprintf("===================\nlmatTrans(%d,%d):\n",j,k); elt end end
=================== lmatTrans(1,1):
elt =
laurentPolynomial with properties:
Coefficients: -1
MaxOrder: 0
=================== lmatTrans(1,2):
elt =
laurentPolynomial with properties:
Coefficients: [1 3 5]
MaxOrder: 2
=================== lmatTrans(2,1):
elt =
laurentPolynomial with properties:
Coefficients: [2 4 6]
MaxOrder: 0
=================== lmatTrans(2,2):
elt =
laurentPolynomial with properties:
Coefficients: 7
MaxOrder: 0
Input Arguments
Laurent matrix, specified as a laurentMatrix object.
Output Arguments
Transpose of a Laurent matrix, returned as a laurentMatrix object.
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
GPU Code Generation
Generate CUDA® code for NVIDIA® GPUs using GPU Coder™.
The ctranspose
function fully supports thread-based environments. For more information, see Run MATLAB Functions in Thread-Based Environment.
Version History
Introduced in R2021bYou can use ctranspose in thread-based
environments. For more information, see Run MATLAB Functions in Thread-Based Environment.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)