/* ========================================================================= */1/* === AMD_control ========================================================= */2/* ========================================================================= */34/* ------------------------------------------------------------------------- */5/* AMD Version 1.1 (Jan. 21, 2004), Copyright (c) 2004 by Timothy A. Davis, */6/* Patrick R. Amestoy, and Iain S. Duff. See ../README for License. */7/* email: [email protected] CISE Department, Univ. of Florida. */8/* web: http://www.cise.ufl.edu/research/sparse/amd */9/* ------------------------------------------------------------------------- */1011/* User-callable. Prints the control parameters for AMD. See amd.h12* for details. If the Control array is not present, the defaults are13* printed instead.14*/1516#include "amd_internal.h"1718GLOBAL void AMD_control19(20double Control [ ]21)22{23double alpha ;24Int aggressive ;2526if (Control != (double *) NULL)27{28alpha = Control [AMD_DENSE] ;29aggressive = Control [AMD_AGGRESSIVE] != 0 ;30}31else32{33alpha = AMD_DEFAULT_DENSE ;34aggressive = AMD_DEFAULT_AGGRESSIVE ;35}3637PRINTF (("\namd: approximate minimum degree ordering, parameters:\n"38" dense row parameter: %g\n", alpha)) ;3940if (alpha < 0)41{42PRINTF ((" no rows treated as dense\n")) ;43}44else45{46PRINTF ((47" (rows with more than max (%g * sqrt (n), 16) entries are\n"48" considered \"dense\", and placed last in output permutation)\n",49alpha)) ;50}5152if (aggressive)53{54PRINTF ((" aggressive absorption: yes\n\n")) ;55}56else57{58PRINTF ((" aggressive absorption: no\n\n")) ;59}60}616263