~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to intern/opennl/superlu/colamd.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ========================================================================== */
 
2
/* === colamd prototypes and definitions ==================================== */
 
3
/* ========================================================================== */
 
4
 
 
5
/*
 
6
    This is the colamd include file,
 
7
 
 
8
        http://www.cise.ufl.edu/~davis/colamd/colamd.h
 
9
 
 
10
    for use in the colamd.c, colamdmex.c, and symamdmex.c files located at
 
11
 
 
12
        http://www.cise.ufl.edu/~davis/colamd/
 
13
 
 
14
    See those files for a description of colamd and symamd, and for the
 
15
    copyright notice, which also applies to this file.
 
16
 
 
17
    August 3, 1998.  Version 1.0.
 
18
*/
 
19
 
 
20
/* ========================================================================== */
 
21
/* === Definitions ========================================================== */
 
22
/* ========================================================================== */
 
23
 
 
24
/* size of the knobs [ ] array.  Only knobs [0..1] are currently used. */
 
25
#define COLAMD_KNOBS 20
 
26
 
 
27
/* number of output statistics.  Only A [0..2] are currently used. */
 
28
#define COLAMD_STATS 20
 
29
 
 
30
/* knobs [0] and A [0]: dense row knob and output statistic. */
 
31
#define COLAMD_DENSE_ROW 0
 
32
 
 
33
/* knobs [1] and A [1]: dense column knob and output statistic. */
 
34
#define COLAMD_DENSE_COL 1
 
35
 
 
36
/* A [2]: memory defragmentation count output statistic */
 
37
#define COLAMD_DEFRAG_COUNT 2
 
38
 
 
39
/* A [3]: whether or not the input columns were jumbled or had duplicates */
 
40
#define COLAMD_JUMBLED_COLS 3
 
41
 
 
42
/* ========================================================================== */
 
43
/* === Prototypes of user-callable routines ================================= */
 
44
/* ========================================================================== */
 
45
 
 
46
int colamd_recommended          /* returns recommended value of Alen */
 
47
(
 
48
    int nnz,                    /* nonzeros in A */
 
49
    int n_row,                  /* number of rows in A */
 
50
    int n_col                   /* number of columns in A */
 
51
) ;
 
52
 
 
53
void colamd_set_defaults        /* sets default parameters */
 
54
(                               /* knobs argument is modified on output */
 
55
    double knobs [COLAMD_KNOBS] /* parameter settings for colamd */
 
56
) ;
 
57
 
 
58
int colamd                      /* returns TRUE if successful, FALSE otherwise*/
 
59
(                               /* A and p arguments are modified on output */
 
60
    int n_row,                  /* number of rows in A */
 
61
    int n_col,                  /* number of columns in A */
 
62
    int Alen,                   /* size of the array A */
 
63
    int A [],                   /* row indices of A, of size Alen */
 
64
    int p [],                   /* column pointers of A, of size n_col+1 */
 
65
    double knobs [COLAMD_KNOBS] /* parameter settings for colamd */
 
66
) ;
 
67