1function C = cs_permute (A,p,q) %#ok 2%CS_PERMUTE permute a sparse matrix. 3% C = cs_permute(A,p,q) computes C = A(p,q) 4% 5% Example: 6% Prob = ssget ('HB/arc130') ; A = Prob.A ; [m n] = size (A) ; 7% p = randperm (m) ; q = randperm (n) ; 8% C = cs_permute (A,p,q) ; % C = A(p,q) 9% 10% See also CS_SYMPERM, SUBSREF. 11 12% Copyright 2006-2012, Timothy A. Davis, http://www.suitesparse.com 13 14error ('cs_permute mexFunction not found') ; 15