lemon-project-template-glpk
diff deps/glpk/src/amd/amd_defaults.c @ 9:33de93886c88
Import GLPK 4.47
author | Alpar Juttner <alpar@cs.elte.hu> |
---|---|
date | Sun, 06 Nov 2011 20:59:10 +0100 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/deps/glpk/src/amd/amd_defaults.c Sun Nov 06 20:59:10 2011 +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 +}