Chapter Contents Previous Next
 Language Reference

## 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 ith, jth submatrix of the argument x is denoted Aij, then the ith, jth submatrix of the result is Aji.

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
```

 Chapter Contents Previous Next Top