~ubuntu-branches/ubuntu/raring/python-scipy/raring-proposed

« back to all changes in this revision

Viewing changes to Lib/sandbox/pysparse/umfpack/umfpack_free_symbolic.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-01-07 14:12:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070107141212-mm0ebkh5b37hcpzn
* Remove build dependency on python-numpy-dev.
* python-scipy: Depend on python-numpy instead of python-numpy-dev.
* Package builds on other archs than i386. Closes: #402783.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ========================================================================== */
 
2
/* === UMFPACK_free_symbolic ================================================ */
 
3
/* ========================================================================== */
 
4
 
 
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
/* -------------------------------------------------------------------------- */
 
11
 
 
12
/*
 
13
    User-callable.  See umfpack_free_symbolic.h for details.
 
14
    All 10 objects comprising the Symbolic object are free'd via UMF_free.
 
15
*/
 
16
 
 
17
#include "umf_internal.h"
 
18
#include "umf_free.h"
 
19
 
 
20
GLOBAL void UMFPACK_free_symbolic
 
21
(
 
22
    void **SymbolicHandle
 
23
)
 
24
{
 
25
 
 
26
    SymbolicType *Symbolic ;
 
27
    if (!SymbolicHandle)
 
28
    {
 
29
        return ;
 
30
    }
 
31
    Symbolic = *((SymbolicType **) SymbolicHandle) ;
 
32
    if (!Symbolic)
 
33
    {
 
34
        return ;
 
35
    }
 
36
 
 
37
    (void) UMF_free ((void *) Symbolic->Cperm_init) ;
 
38
    (void) UMF_free ((void *) Symbolic->Rperm_init) ;
 
39
    (void) UMF_free ((void *) Symbolic->Front_npivcol) ;
 
40
    (void) UMF_free ((void *) Symbolic->Front_parent) ;
 
41
    (void) UMF_free ((void *) Symbolic->Front_1strow) ;
 
42
    (void) UMF_free ((void *) Symbolic->Front_leftmostdesc) ;
 
43
    (void) UMF_free ((void *) Symbolic->Chain_start) ;
 
44
    (void) UMF_free ((void *) Symbolic->Chain_maxrows) ;
 
45
    (void) UMF_free ((void *) Symbolic->Chain_maxcols) ;
 
46
    (void) UMF_free ((void *) Symbolic->Cdeg) ;
 
47
    (void) UMF_free ((void *) Symbolic->Rdeg) ;
 
48
 
 
49
    /* only when dense rows are present */
 
50
    (void) UMF_free ((void *) Symbolic->Esize) ;
 
51
 
 
52
    /* only when diagonal pivoting is prefered */
 
53
    (void) UMF_free ((void *) Symbolic->Diagonal_map) ;
 
54
 
 
55
    (void) UMF_free ((void *) Symbolic) ;
 
56
    *SymbolicHandle = (void *) NULL ;
 
57
}