Amesos Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
amesos_klu_l_free_symbolic.c
Go to the documentation of this file.
1 /* ========================================================================== */
2 /* === KLU_free_symbolic ==================================================== */
3 /* ========================================================================== */
4 
5 /* Free the KLU Symbolic object. */
6 
7 /* This file should make the long int version of KLU */
8 #define DLONG 1
9 
10 #include "amesos_klu_internal.h"
11 
13 (
14  KLU_symbolic **SymbolicHandle,
15  KLU_common *Common
16 )
17 {
18  KLU_symbolic *Symbolic ;
19  Int n ;
20  if (Common == NULL)
21  {
22  return (FALSE) ;
23  }
24  if (SymbolicHandle == NULL || *SymbolicHandle == NULL)
25  {
26  return (TRUE) ;
27  }
28  Symbolic = *SymbolicHandle ;
29  n = Symbolic->n ;
30  KLU_free (Symbolic->P, n, sizeof (Int), Common) ;
31  KLU_free (Symbolic->Q, n, sizeof (Int), Common) ;
32  KLU_free (Symbolic->R, n+1, sizeof (Int), Common) ;
33  KLU_free (Symbolic->Lnz, n, sizeof (double), Common) ;
34  KLU_free (Symbolic, 1, sizeof (KLU_symbolic), Common) ;
35  *SymbolicHandle = NULL ;
36  return (TRUE) ;
37 }
#define KLU_symbolic
#define Int
#define FALSE
#define NULL
Int KLU_free_symbolic(KLU_symbolic **SymbolicHandle, KLU_common *Common)
#define KLU_common
int n
#define TRUE
#define KLU_free