Language Reference

BTRAN Function

computes the block transpose

BTRAN( x, n, m)

The inputs to the BTRAN function are as follows:


x
is an (in) x (jm) numeric matrix.

n
is a scalar with a value that specifies the row dimension of the submatrix blocks.

m
is a scalar with a value that specifies the column dimension of the submatrix blocks.
The BTRAN function computes the block transpose of a partitioned matrix. The argument x is a partitioned matrix formed from submatrices of dimension n x n. If the ith, jth submatrix of the argument x is denoted a_{ij}, then the ith, jth submatrix of the result is a_{ji}.

The value returned by the BTRAN function is a (jn) x (im) matrix, the block transpose of x, where the blocks are n x m.

For example, the following statements produce the matrix z, as shown:

  
    z=btran({1 2 3 4, 
             5 6 7 8},2,2); 
    print z;
 

  
              Z             4 rows      2 cols    (numeric) 
  
  
                                   1         2 
                                   5         6 
                                   3         4 
                                   7         8
 

Previous Page | Next Page | Top of Page