jmat

jmat — row or column block permutation

Calling sequence

[j]=jmat(n,m)  

Parameters

n : number of block rows or block columns of the matrix
m : size of the (square) blocks

Description

This function permutes block rows or block columns of a matrix