Previous Page Next Page Contents

linalg::transpose -- transpose of a matrix

Introduction

linalg::transpose(A) returns the transpose A^T of the matrix A.

Call(s)

linalg::transpose(A)

Parameters

A - a matrix of a domain of category Cat::Matrix

Returns

a matrix of the same domain type as A.

Details

Example 1

We define a 3x4 matrix:

>> A := matrix([[1, 2, 3, 4], [-1, 0, 1, 0], [3, 5, 6, 9]])
                             +-             -+
                             |   1, 2, 3, 4  |
                             |               |
                             |  -1, 0, 1, 0  |
                             |               |
                             |   3, 5, 6, 9  |
                             +-             -+

Then the transpose of A is the 4x3 matrix:

>> linalg::transpose(A)
                              +-          -+
                              |  1, -1, 3  |
                              |            |
                              |  2,  0, 5  |
                              |            |
                              |  3,  1, 6  |
                              |            |
                              |  4,  0, 9  |
                              +-          -+

Background




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000