Amesos Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
amesos_klu_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 #include "amesos_klu_internal.h"
8 
10 (
11  KLU_symbolic **SymbolicHandle,
12  KLU_common *Common
13 )
14 {
15  KLU_symbolic *Symbolic ;
16  Int n ;
17  if (Common == NULL)
18  {
19  return (FALSE) ;
20  }
21  if (SymbolicHandle == NULL || *SymbolicHandle == NULL)
22  {
23  return (TRUE) ;
24  }
25  Symbolic = *SymbolicHandle ;
26  n = Symbolic->n ;
27  KLU_free (Symbolic->P, n, sizeof (Int), Common) ;
28  KLU_free (Symbolic->Q, n, sizeof (Int), Common) ;
29  KLU_free (Symbolic->R, n+1, sizeof (Int), Common) ;
30  KLU_free (Symbolic->Lnz, n, sizeof (double), Common) ;
31  KLU_free (Symbolic, 1, sizeof (KLU_symbolic), Common) ;
32  *SymbolicHandle = NULL ;
33  return (TRUE) ;
34 }
Int KLU_free_symbolic(KLU_symbolic **SymbolicHandle, KLU_common *Common)
#define KLU_symbolic
#define Int
#define FALSE
#define NULL
#define KLU_common
int n
#define TRUE
#define KLU_free