1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/amd/amd_defaults.c Mon Dec 06 13:09:21 2010 +0100
1.3 @@ -0,0 +1,38 @@
1.4 +/* ========================================================================= */
1.5 +/* === AMD_defaults ======================================================== */
1.6 +/* ========================================================================= */
1.7 +
1.8 +/* ------------------------------------------------------------------------- */
1.9 +/* AMD, Copyright (c) Timothy A. Davis, */
1.10 +/* Patrick R. Amestoy, and Iain S. Duff. See ../README.txt for License. */
1.11 +/* email: davis at cise.ufl.edu CISE Department, Univ. of Florida. */
1.12 +/* web: http://www.cise.ufl.edu/research/sparse/amd */
1.13 +/* ------------------------------------------------------------------------- */
1.14 +
1.15 +/* User-callable. Sets default control parameters for AMD. See amd.h
1.16 + * for details.
1.17 + */
1.18 +
1.19 +#include "amd_internal.h"
1.20 +
1.21 +/* ========================================================================= */
1.22 +/* === AMD defaults ======================================================== */
1.23 +/* ========================================================================= */
1.24 +
1.25 +GLOBAL void AMD_defaults
1.26 +(
1.27 + double Control [ ]
1.28 +)
1.29 +{
1.30 + Int i ;
1.31 +
1.32 + if (Control != (double *) NULL)
1.33 + {
1.34 + for (i = 0 ; i < AMD_CONTROL ; i++)
1.35 + {
1.36 + Control [i] = 0 ;
1.37 + }
1.38 + Control [AMD_DENSE] = AMD_DEFAULT_DENSE ;
1.39 + Control [AMD_AGGRESSIVE] = AMD_DEFAULT_AGGRESSIVE ;
1.40 + }
1.41 +}