Class constructor for permutation class.
- Parameters:
-
n | : size of the permutation object |
clear | : flag for different options described below |
This function allocates memory for a new permutation of size n. The permutation is not initialized and its elements are undefined. If clear = true then a permutation is created which is initialized to the identity. A null pointer is returned if insufficient memory is available to create the permutation. If clear = false, function only function allocates memory for a new permutation of size n
- Author:
- Ramin Nakisa, Marcel Bosc etc.