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

« back to all changes in this revision

Viewing changes to CHOLMOD/Include/cholmod_core.h

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2009-02-24 11:08:12 UTC
  • mfrom: (7.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090224110812-hawvr3dh5kjbvlae
debian/control: Add an epoch to the version number of
libsuitesparse-3.0.2 in replaces/conflicts for libcolamd-3.2.0
(really, closes: #516725)

Show diffs side-by-side

added added

removed removed

Lines of Context:
244
244
 *      #endif
245
245
 */
246
246
 
247
 
#define CHOLMOD_DATE "Nov 1, 2007"
 
247
#define CHOLMOD_DATE "Sept 20, 2008"
248
248
#define CHOLMOD_VER_CODE(main,sub) ((main) * 1000 + (sub))
249
249
#define CHOLMOD_MAIN_VERSION 1
250
 
#define CHOLMOD_SUB_VERSION 6
 
250
#define CHOLMOD_SUB_VERSION 7
251
251
#define CHOLMOD_SUBSUB_VERSION 0
252
252
#define CHOLMOD_VERSION \
253
253
    CHOLMOD_VER_CODE(CHOLMOD_MAIN_VERSION,CHOLMOD_SUB_VERSION)
356
356
 */
357
357
 
358
358
/* Definitions for cholmod_common: */
359
 
#define CHOLMOD_MAXMETHODS 9    /* maximum number of different methods that
360
 
                                 * cholmod_analyze can try. Must be >= 9. */
 
359
#define CHOLMOD_MAXMETHODS 9    /* maximum number of different methods that */
 
360
                                /* cholmod_analyze can try. Must be >= 9. */
361
361
 
362
362
/* Common->status values.  zero means success, negative means a fatal error,
363
363
 * positive is a warning. */
367
367
#define CHOLMOD_TOO_LARGE (-3)          /* failure: integer overflow occured */
368
368
#define CHOLMOD_INVALID (-4)            /* failure: invalid input */
369
369
#define CHOLMOD_NOT_POSDEF (1)          /* warning: matrix not pos. def. */
370
 
#define CHOLMOD_DSMALL (2)              /* warning: D for LDL'  or diag(L) or
371
 
                                         * LL' has tiny absolute value */
 
370
#define CHOLMOD_DSMALL (2)              /* warning: D for LDL'  or diag(L) or */
 
371
                                        /* LL' has tiny absolute value */
372
372
 
373
373
/* ordering method (also used for L->ordering) */
374
374
#define CHOLMOD_NATURAL 0       /* use natural ordering */
375
375
#define CHOLMOD_GIVEN 1         /* use given permutation */
376
376
#define CHOLMOD_AMD 2           /* use minimum degree (AMD) */
377
377
#define CHOLMOD_METIS 3         /* use METIS' nested dissection */
378
 
#define CHOLMOD_NESDIS 4        /* use CHOLMOD's version of nested dissection:
379
 
                                 * node bisector applied recursively, followed
 
378
#define CHOLMOD_NESDIS 4        /* use CHOLMOD's version of nested dissection:*/
 
379
                                /* node bisector applied recursively, followed
380
380
                                 * by constrained minimum degree (CSYMAMD or
381
381
                                 * CCOLAMD) */
382
382
#define CHOLMOD_COLAMD 5        /* use AMD for A, COLAMD for A*A' */
531
531
                         * of a try/catch block.  No error message is printed
532
532
         * and the Common->error_handler function is not called. */
533
533
 
534
 
    void (*error_handler) (int status, char *file, int line, char *message) ;
 
534
    void (*error_handler) (int status, const char *file,
 
535
        int line, const char *message) ;
535
536
 
536
537
        /* Common->error_handler is the user's error handling routine.  If not
537
538
         * NULL, this routine is called if an error occurs in CHOLMOD.  status
901
902
     * v1.1 to the current version are binary compatible.
902
903
     */
903
904
 
904
 
    double  other1 [16] ;
905
 
    UF_long other2 [16] ;
906
 
    int     other3 [13] ;   /* reduced from size 16 in v1.1. */
 
905
    /* ---------------------------------------------------------------------- */
 
906
    double other1 [12] ;        /* reduced from size 16 in v1.6 */
 
907
 
 
908
    double SPQR_xstat [2] ;     /* for SuiteSparseQR statistics */
 
909
 
 
910
    /* SuiteSparseQR control parameters: */
 
911
    double SPQR_grain ;         /* task size is >= max (total flops / grain) */
 
912
    double SPQR_small ;         /* task size is >= small */
 
913
 
 
914
    /* ---------------------------------------------------------------------- */
 
915
    UF_long SPQR_istat [10] ;   /* for SuiteSparseQR statistics */
 
916
    UF_long other2 [6] ;        /* reduced from size 16 in v1.6 */
 
917
 
 
918
    /* ---------------------------------------------------------------------- */
 
919
    int other3 [10] ;       /* reduced from size 16 in v1.1. */
907
920
 
908
921
    int prefer_binary ;     /* cholmod_read_triplet converts a symmetric
909
922
                             * pattern-only matrix into a real matrix.  If
925
938
    int called_nd ;         /* TRUE if the last call to
926
939
                             * cholmod_analyze called NESDIS or METIS. */
927
940
 
 
941
    int blas_ok ;           /* FALSE if BLAS int overflow; TRUE otherwise */
 
942
 
 
943
    /* SuiteSparseQR control parameters: */
 
944
    int SPQR_shrink ;        /* controls stack realloc method */
 
945
    int SPQR_nthreads ;      /* number of TBB threads, 0 = auto */
 
946
 
 
947
    /* ---------------------------------------------------------------------- */
928
948
    size_t  other4 [16] ;
 
949
 
 
950
    /* ---------------------------------------------------------------------- */
929
951
    void   *other5 [16] ;
930
952
 
931
953
} cholmod_common ;
1034
1056
(
1035
1057
    /* ---- input ---- */
1036
1058
    int status,         /* error status */
1037
 
    char *file,         /* name of source code file where error occured */
 
1059
    const char *file,   /* name of source code file where error occured */
1038
1060
    int line,           /* line number in source code file where error occured*/
1039
 
    char *message,      /* error message */
 
1061
    const char *message,/* error message */
1040
1062
    /* --------------- */
1041
1063
    cholmod_common *Common
1042
1064
) ;
1043
1065
 
1044
 
int cholmod_l_error (int, char *, int, char *, cholmod_common *) ;
 
1066
int cholmod_l_error (int, const char *, int, const char *, cholmod_common *) ;
1045
1067
 
1046
1068
/* -------------------------------------------------------------------------- */
1047
1069
/* cholmod_dbound:  for internal use in CHOLMOD only */