~logan/ubuntu/trusty/suitesparse/4.2.1-3ubuntu1

« back to all changes in this revision

Viewing changes to CXSparse/MATLAB/CSparse/cs_counts.m

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2007-05-29 09:36:29 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070529093629-zowquo0b7slkk6nc
Tags: 3.0.0-2
* suitesparse builds properly twice in a row
* Bug fix: "suitesparse - FTBFS: Broken build depens: libgfortran1-dev",
  thanks to Bastian Blank (Closes: #426349).
* Bug fix: "suitesparse_3.0.0-1: FTBFS: build-depends on
  libgfortran1-dev", thanks to Steve Langasek (Closes: #426354).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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).
 
9
%
 
10
%   Example:
 
11
%       Prob = UFget ('HB/bcsstk01') ; A = Prob.A ; c = cs_counts (A)
 
12
%       full (sum (spones (chol (A)')))
 
13
%
 
14
%   See also SYMBFACT.
 
15
 
 
16
%   Copyright 2006-2007, Timothy A. Davis.
 
17
%   http://www.cise.ufl.edu/research/sparse
 
18
 
 
19
error ('cs_counts mexFunction not found') ;