Amesos Package Browser (Single Doxygen Collection)
Development
src
SuiteSparse
AMD
Source
amesos_amd_defaults.c
Go to the documentation of this file.
1
/* ========================================================================= */
2
/* === AMD_defaults ======================================================== */
3
/* ========================================================================= */
4
5
/* ------------------------------------------------------------------------- */
6
/* AMD, Copyright (c) Timothy A. Davis, */
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/amd */
10
/* ------------------------------------------------------------------------- */
11
12
/* User-callable. Sets default control parameters for AMD. See amd.h
13
* for details.
14
*/
15
16
#include "
amesos_amd_internal.h
"
17
18
/* ========================================================================= */
19
/* === AMD defaults ======================================================== */
20
/* ========================================================================= */
21
22
GLOBAL
void
AMD_defaults
23
(
24
double
Control [ ]
25
)
26
{
27
Int
i ;
28
29
if
(Control != (
double
*)
NULL
)
30
{
31
for
(i = 0 ; i <
AMD_CONTROL
; i++)
32
{
33
Control [i] = 0 ;
34
}
35
Control [
AMD_DENSE
] =
AMD_DEFAULT_DENSE
;
36
Control [
AMD_AGGRESSIVE
] =
AMD_DEFAULT_AGGRESSIVE
;
37
}
38
}
GLOBAL
#define GLOBAL
Definition:
amesos_amd_internal.h:143
Int
#define Int
Definition:
amesos_amd_internal.h:190
AMD_DEFAULT_AGGRESSIVE
#define AMD_DEFAULT_AGGRESSIVE
Definition:
amesos_amd.h:349
AMD_defaults
GLOBAL void AMD_defaults(double Control [])
Definition:
amesos_amd_defaults.c:23
NULL
#define NULL
Definition:
amesos_amd_internal.h:153
AMD_DENSE
#define AMD_DENSE
Definition:
amesos_amd.h:344
AMD_AGGRESSIVE
#define AMD_AGGRESSIVE
Definition:
amesos_amd.h:345
AMD_CONTROL
#define AMD_CONTROL
Definition:
amesos_amd.h:340
amesos_amd_internal.h
AMD_DEFAULT_DENSE
#define AMD_DEFAULT_DENSE
Definition:
amesos_amd.h:348
Generated by
1.8.14