Returns a permutation matrix according with a vector of desired permutation.
gpm(v) // Show the permutation matrix calculated using the vector v. Always needs the parameter v. d = gpm(v)
Vector of desired permutation, that is the second-line vector in the two line representation of a permutation.
This function gives the permutation matrix for a given permutation. Note that the entries on the vector must be less or equal to the size of the given vector and each one must appear only one time.