18 Int block,
n, nzoff, nblocks ;
24 if (NumericHandle ==
NULL || *NumericHandle ==
NULL)
29 Numeric = *NumericHandle ;
32 nzoff = Numeric->nzoff ;
33 nblocks = Numeric->nblocks ;
34 LUsize = Numeric->LUsize ;
36 LUbx = (
Unit **) Numeric->LUbx ;
39 for (block = 0 ; block < nblocks ; block++)
41 KLU_free (LUbx [block], LUsize ? LUsize [block] : 0,
42 sizeof (
Unit), Common) ;
47 KLU_free (Numeric->Offp, n+1, sizeof (
Int), Common) ;
48 KLU_free (Numeric->Offi, nzoff+1, sizeof (
Int), Common) ;
56 KLU_free (Numeric->LUsize, nblocks, sizeof (
size_t), Common) ;
58 KLU_free (Numeric->LUbx, nblocks, sizeof (
Unit *), Common) ;
62 KLU_free (Numeric->Rs, n, sizeof (
double), Common) ;
65 KLU_free (Numeric->Work, Numeric->worksize, 1, Common) ;
69 *NumericHandle =
NULL ;
Int KLU_free_numeric(KLU_numeric **NumericHandle, KLU_common *Common)