Amesos Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
amesos_camd_control.c
Go to the documentation of this file.
1 /* ========================================================================= */
2 /* === CAMD_control ======================================================== */
3 /* ========================================================================= */
4 
5 /* ------------------------------------------------------------------------- */
6 /* CAMD, Copyright (c) Timothy A. Davis, Yanqing Chen, */
7 /* Patrick R. Amestoy, and Iain S. Duff. See ../README.txt for License. */
8 /* email: davis at cise.ufl.edu CISE Department, Univ. of Florida. */
9 /* web: http://www.cise.ufl.edu/research/sparse/camd */
10 /* ------------------------------------------------------------------------- */
11 
12 /* User-callable. Prints the control parameters for CAMD. See camd.h
13  * for details. If the Control array is not present, the defaults are
14  * printed instead.
15  */
16 
17 #include "amesos_camd_internal.h"
18 
20 (
21  double Control [ ]
22 )
23 {
24  double alpha ;
25  Int aggressive ;
26 
27  if (Control != (double *) NULL)
28  {
29  alpha = Control [CAMD_DENSE] ;
30  aggressive = Control [CAMD_AGGRESSIVE] != 0 ;
31  }
32  else
33  {
34  alpha = CAMD_DEFAULT_DENSE ;
35  aggressive = CAMD_DEFAULT_AGGRESSIVE ;
36  }
37 
38  PRINTF (("\ncamd version %d.%d, %s: approximate minimum degree ordering:\n"
39  " dense row parameter: %g\n", CAMD_MAIN_VERSION, CAMD_SUB_VERSION,
40  CAMD_DATE, alpha)) ;
41 
42  if (alpha < 0)
43  {
44  PRINTF ((" no rows treated as dense\n")) ;
45  }
46  else
47  {
48  PRINTF ((
49  " (rows with more than max (%g * sqrt (n), 16) entries are\n"
50  " considered \"dense\", and placed last in output permutation)\n",
51  alpha)) ;
52  }
53 
54  if (aggressive)
55  {
56  PRINTF ((" aggressive absorption: yes\n\n")) ;
57  }
58  else
59  {
60  PRINTF ((" aggressive absorption: no\n\n")) ;
61  }
62 }
#define CAMD_DENSE
Definition: amesos_camd.h:355
#define GLOBAL
#define Int
#define CAMD_AGGRESSIVE
Definition: amesos_camd.h:356
GLOBAL void CAMD_control(double Control[])
#define NULL
#define CAMD_SUB_VERSION
Definition: amesos_camd.h:411
#define CAMD_MAIN_VERSION
Definition: amesos_camd.h:410
#define CAMD_DEFAULT_AGGRESSIVE
Definition: amesos_camd.h:360
#define PRINTF(params)
#define CAMD_DATE
Definition: amesos_camd.h:408
#define CAMD_DEFAULT_DENSE
Definition: amesos_camd.h:359