| 1 | /* ========================================================================= */cxx . . $ `<file>/external/glpk/amd_control.c`/ |
| 2 | /* === AMD_control ========================================================= */ |
| 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. Prints the control parameters for AMD. See amd.h |
| 13 | * for details. If the Control array is not present, the defaults are |
| 14 | * printed instead. |
| 15 | */ |
| 16 | |
| 17 | #include "amd_internal.h"cxx . . $ `<file>/external/glpk/amd_internal.h`/ |
| 18 | |
| 19 | GLOBALcxx . . $ `external/glpk/amd_internal.h:34:9`! void AMD_controlcxx . . $ `external/glpk/amd_internal.h:38:9`! |
| 20 | ( |
| 21 | double Control [ ] |
| 22 | ) |
| 23 | { |
| 24 | double alpha ; |
| 25 | Intcxx . . $ `external/glpk/amd_internal.h:17:9`! aggressive ; |
| 26 | |
| 27 | if (Control != (double *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 28 | { |
| 29 | alpha = Control [AMD_DENSEcxx . . $ `external/glpk/amd.h:18:9`!] ; |
| 30 | aggressive = Control [AMD_AGGRESSIVEcxx . . $ `external/glpk/amd.h:19:9`!] != 0 ; |
| 31 | } |
| 32 | else |
| 33 | { |
| 34 | alpha = AMD_DEFAULT_DENSEcxx . . $ `external/glpk/amd.h:21:9`! ; |
| 35 | aggressive = AMD_DEFAULT_AGGRESSIVEcxx . . $ `external/glpk/amd.h:22:9`! ; |
| 36 | } |
| 37 | |
| 38 | PRINTFcxx . . $ `external/glpk/amd_internal.h:59:9`! (("\nAMD version %d.%d.%d, %s: approximate minimum degree ordering\n" |
| 39 | " dense row parameter: %g\n", AMD_MAIN_VERSIONcxx . . $ `external/glpk/amd.h:10:9`!, AMD_SUB_VERSIONcxx . . $ `external/glpk/amd.h:11:9`!, |
| 40 | AMD_SUBSUB_VERSIONcxx . . $ `external/glpk/amd.h:12:9`!, AMD_DATEcxx . . $ `external/glpk/amd.h:8:9`!, alpha)) ; |
| 41 | |
| 42 | if (alpha < 0) |
| 43 | { |
| 44 | PRINTFcxx . . $ `external/glpk/amd_internal.h:59:9`! ((" no rows treated as dense\n")) ; |
| 45 | } |
| 46 | else |
| 47 | { |
| 48 | PRINTFcxx . . $ `external/glpk/amd_internal.h:59:9`! (( |
| 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 | PRINTFcxx . . $ `external/glpk/amd_internal.h:59:9`! ((" aggressive absorption: yes\n")) ; |
| 57 | } |
| 58 | else |
| 59 | { |
| 60 | PRINTFcxx . . $ `external/glpk/amd_internal.h:59:9`! ((" aggressive absorption: no\n")) ; |
| 61 | } |
| 62 | |
| 63 | PRINTFcxx . . $ `external/glpk/amd_internal.h:59:9`! ((" size of AMD integer: %d\n\n", sizeof (Intcxx . . $ `external/glpk/amd_internal.h:17:9`!))) ; |
| 64 | } |