2
%TEST14 test cs_droptol
8
% Copyright 2006-2007, Timothy A. Davis.
9
% http://www.cise.ufl.edu/research/sparse
15
m = fix (100 * rand (1)) ;
16
n = fix (100 * rand (1)) ;
20
A = sparse (i,j,2*x-1) ;
21
fprintf ('test14 m %3d n %3d nz %d\n', m, n, nnz (A)) ;
26
A = A + 1i * sparse (i,j,2*rand(size(x))-1) ;
31
B = cs_droptol (A, tol) ;
34
C = A .* (abs (A) > tol) ;
39
% A = sparse (i, j, x, m, n) ;