invperm Interface

interface

Description

Given a permutation vector , this function computes the vector representation of the inverse permutation matrix.

Syntax

    inv_perm = invperm(perm)

Arguments

  • perm : Rank-1 array of integer corresponding to the desired permutation vector. It is an intent(in) argument.

public module function invperm(perm) result(inv_perm)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: perm(:)

Return Value integer,allocatable,(:)