<< dependence Indirect Influences for Graphs heatkernel >>

Indirect Influences for Graphs >> Indirect Influences for Graphs > gpm

gpm

Returns a permutation matrix according with a vector of desired permutation.

Calling Sequence

gpm(v) // Show the permutation matrix calculated using the vector v. Always needs the parameter v.
d = gpm(v)

Parameters

v:

Vector of desired permutation, that is the second-line vector in the two line representation of a permutation.

Description

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.

Examples

v=[2 3 1 4]
M = gpm(v)

Authors

<< dependence Indirect Influences for Graphs heatkernel >>