Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/umfpack/src/amd/amd_defaults.c
3203 views
1
/* ========================================================================= */
2
/* === AMD_defaults ======================================================== */
3
/* ========================================================================= */
4
5
/* ------------------------------------------------------------------------- */
6
/* AMD Version 1.1 (Jan. 21, 2004), Copyright (c) 2004 by Timothy A. Davis, */
7
/* Patrick R. Amestoy, and Iain S. Duff. See ../README for License. */
8
/* email: [email protected] 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 "amd_internal.h"
17
18
GLOBAL void AMD_defaults
19
(
20
double Control [ ]
21
)
22
{
23
Int i ;
24
if (Control != (double *) NULL)
25
{
26
for (i = 0 ; i < AMD_CONTROL ; i++)
27
{
28
Control [i] = 0 ;
29
}
30
Control [AMD_DENSE] = AMD_DEFAULT_DENSE ;
31
Control [AMD_AGGRESSIVE] = AMD_DEFAULT_AGGRESSIVE ;
32
}
33
}
34
35