~ubuntu-branches/ubuntu/hardy/suitesparse/hardy

« back to all changes in this revision

Viewing changes to CSparse/MATLAB/Test/cs_rowcnt_mex.c

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere, Rafael Laboissiere, Ondrej Certik
  • Date: 2008-02-21 14:46:50 UTC
  • mfrom: (1.1.2 upstream) (5.1.1 hardy)
  • Revision ID: james.westby@ubuntu.com-20080221144650-tgeppgj0t7s759i8
Tags: 3.1.0-3
[ Rafael Laboissiere ]
* Upload to unstable

[ Ondrej Certik ]
* XS-DM-Upload-Allowed: yes field added
* Ondrej Certik added to uploaders

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
static
23
23
int *rowcnt (cs *A, int *parent, int *post) /* return rowcount [0..n-1] */
24
24
{
25
 
    int i, j, k, len, s, p, jprev, q, n, sparent, jleaf, *Ap, *Ai, *maxfirst,
 
25
    int i, j, k, p, q, n, jleaf, *Ap, *Ai, *maxfirst,
26
26
        *ancestor, *prevleaf, *w, *first, *level, *rowcount ;
27
27
    n = A->n ; Ap = A->p ; Ai = A->i ;                  /* get A */
28
28
    w = cs_malloc (5*n, sizeof (int)) ;                 /* get workspace */
62
62
{
63
63
    cs *A, Amatrix ;
64
64
    double *x ;
65
 
    int i, m, n, *parent, *post, *rowcount ;
 
65
    int i, n, *parent, *post, *rowcount ;
66
66
 
67
67
    if (nargout > 1 || nargin != 3)
68
68
    {