function c = cs_counts (A,mode)                                             %#ok
%CS_COUNTS column counts for sparse Cholesky factor L.
%   c = cs_counts(A) returns a vector of the column counts of L, for the
%   Cholesky factorization L*L' = A.  That is, c = sum(spones(chol(A)')),
%   except the Cholesky factorization is not computed.
%   c = cs_counts(A), returns counts for cs_chol(A).
%   c = cs_counts(A,'col'), returns counts for cs_chol(A'*A).
%   c = cs_counts(A,'sym'), same as cs_counts(A).
%
%   Example:
%       Prob = UFget ('HB/bcsstk01') ; A = Prob.A ; c = cs_counts (A)
%       full (sum (spones (chol (A)')))
%
%   See also SYMBFACT.

%   Copyright 2006-2007, Timothy A. Davis.
%   http://www.cise.ufl.edu/research/sparse

error ('cs_counts mexFunction not found') ;
