## BTRAN Function

**computes the block transpose**
**BTRAN(** *x*, *n*, *m***)**

The inputs to the BTRAN function are as follows:
*x*
- is an (
*inx*) ×(*jmx*) 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* ×*n*.
If the *i*th, *j*th submatrix of the argument *x*
is denoted **A**_{ij}, then the *i*th, *j*th
submatrix of the result is **A**_{ji}.
The value returned by the BTRAN function is a
(*jn*) ×(*im*) matrix, the block tranpose
of *x*, where the blocks are *n* ×*m*.

For example, the statements

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

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

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.