Permute            package:GraphAlignment            R Documentation

_P_e_r_m_u_t_e _r_o_w_s _a_n_d _c_o_l_u_m_n_s _o_f _a _m_a_t_r_i_x

_D_e_s_c_r_i_p_t_i_o_n:

     Permute rows and columns of the input matrix.

_U_s_a_g_e:

     Permute(m, p, invertp=FALSE)

_A_r_g_u_m_e_n_t_s:

       m: matrix

       p: permutation vector

 invertp: apply inverse permutation

_D_e_t_a_i_l_s:

     This function permutes rows and columns of a matrix using the
     specified permutation vector. The inverse of the permutation will
     be applied if the invertp argument is set to TRUE.

_V_a_l_u_e:

     The return value is the row- and columnwise Permutation of the
     elements of the input matrix, so Permute(m, p)[i, j] is equal to
     m[p[i], p[j]].

_A_u_t_h_o_r(_s):

     Joern P. Meier, Michal Kolar, Ville Mustonen, Michael Laessig, and
     Johannes Berg

_E_x_a_m_p_l_e_s:

       example <- GenerateExample(10, 10, 1, 0.5, TRUE, 4)
       b <- example$b
       p <- rank(rnorm(10))
       Permute(b, p, TRUE)

