1
/* ========================================================================== */
2
/* === UMFPACK_free_numeric ================================================= */
3
/* ========================================================================== */
5
/* -------------------------------------------------------------------------- */
6
/* UMFPACK Version 4.1 (Apr. 30, 2003), Copyright (c) 2003 by Timothy A. */
7
/* Davis. All Rights Reserved. See ../README for License. */
8
/* email: davis@cise.ufl.edu CISE Department, Univ. of Florida. */
9
/* web: http://www.cise.ufl.edu/research/sparse/umfpack */
10
/* -------------------------------------------------------------------------- */
12
/* User-callable. Free the entire Numeric object (consists of 11 to 13
13
* malloc'd objects. See UMFPACK_free_numeric.h for details.
16
#include "umf_internal.h"
19
GLOBAL void UMFPACK_free_numeric
25
NumericType *Numeric ;
30
Numeric = *((NumericType **) NumericHandle) ;
36
/* these 9 objects always exist */
37
(void) UMF_free ((void *) Numeric->D) ;
38
(void) UMF_free ((void *) Numeric->Rperm) ;
39
(void) UMF_free ((void *) Numeric->Cperm) ;
40
(void) UMF_free ((void *) Numeric->Lpos) ;
41
(void) UMF_free ((void *) Numeric->Lilen) ;
42
(void) UMF_free ((void *) Numeric->Lip) ;
43
(void) UMF_free ((void *) Numeric->Upos) ;
44
(void) UMF_free ((void *) Numeric->Uilen) ;
45
(void) UMF_free ((void *) Numeric->Uip) ;
47
/* Rs does not exist if scaling was not performed */
48
(void) UMF_free ((void *) Numeric->Rs) ;
50
/* Upattern can only exist for singular or rectangular matrices */
51
(void) UMF_free ((void *) Numeric->Upattern) ;
53
/* these 2 objects always exist */
54
(void) UMF_free ((void *) Numeric->Memory) ;
55
(void) UMF_free ((void *) Numeric) ;
57
*NumericHandle = (void *) NULL ;