1
function 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).
11
% Prob = UFget ('HB/bcsstk01') ; A = Prob.A ; c = cs_counts (A)
12
% full (sum (spones (chol (A)')))
16
% Copyright 2006-2007, Timothy A. Davis.
17
% http://www.cise.ufl.edu/research/sparse
19
error ('cs_counts mexFunction not found') ;