1
function 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)
6
% Prob = UFget ('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)
10
% See also CS_SYMPERM, SUBSREF.
12
% Copyright 2006, Timothy A. Davis.
13
% http://www.cise.ufl.edu/research/sparse
15
error ('cs_permute mexFunction not found') ;