Try to simplify the descriptors function by factorizing the code.
Now, at user level CHAMELEON_Desc_Create allocates the descriptor and initialize it. At chameleon library level, chameleon_desc_init does all the initialization, but no allocation of the descriptor. If mat is equal to: