1function c = cs_counts (A,mode)                                             %#ok
2%CS_COUNTS column counts for sparse Cholesky factor L.
3%   c = cs_counts(A) returns a vector of the column counts of L, for the
4%   Cholesky factorization L*L' = A.  That is, c = sum(spones(chol(A)')),
5%   except the Cholesky factorization is not computed.
6%   c = cs_counts(A), returns counts for cs_chol(A).
7%   c = cs_counts(A,'col'), returns counts for cs_chol(A'*A).
8%   c = cs_counts(A,'sym'), same as cs_counts(A).
9%
10%   Example:
11%       Prob = ssget ('HB/bcsstk01') ; A = Prob.A ; c = cs_counts (A)
12%       full (sum (spones (chol (A)')))
13%
14%   See also SYMBFACT.
15
16% Copyright 2006-2012, Timothy A. Davis, http://www.suitesparse.com
17
18error ('cs_counts mexFunction not found') ;
19