2 * KLU: a sparse LU factorization algorithm.
3 * Copyright (C) 2004-2009, Timothy A. Davis.
4 * Copyright (C) 2011, Richard W. Lincoln.
5 * http://www.cise.ufl.edu/research/sparse/klu
7 * -------------------------------------------------------------------------
9 * KLU is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
14 * KLU is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this Module; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 package edu
.ufl
.cise
.klu
.tdouble
;
27 import edu
.ufl
.cise
.klu
.common
.KLU_common
;
28 import edu
.ufl
.cise
.klu
.common
.KLU_numeric
;
31 * Free the KLU Numeric object.
33 public class Dklu_free_numeric
extends Dklu_internal
36 // public static int klu_free_numeric(KLU_numeric NumericHandle,
39 // KLU_numeric Numeric ;
42 // int block, n, nzoff, nblocks ;
44 // if (Common == null)
48 // if (NumericHandle == null || NumericHandle == null)
53 // Numeric = NumericHandle ;
56 // nzoff = Numeric.nzoff ;
57 // nblocks = Numeric.nblocks ;
58 // LUsize = Numeric.LUsize ;
60 // LUbx = (double[][]) Numeric.LUbx ;
63 // for (block = 0 ; block < nblocks ; block++)
65 // KLU_free (LUbx [block], LUsize ? LUsize [block] : 0,
66 // sizeof (double), Common) ;
70 // KLU_free (Numeric.Pnum, n, sizeof (Integer), Common) ;
71 // KLU_free (Numeric.Offp, n+1, sizeof (Integer), Common) ;
72 // KLU_free (Numeric.Offi, nzoff+1, sizeof (Integer), Common) ;
73 // KLU_free (Numeric.Offx, nzoff+1, sizeof (double), Common) ;
75 // KLU_free (Numeric.Lip, n, sizeof (Integer), Common) ;
76 // KLU_free (Numeric.Llen, n, sizeof (Integer), Common) ;
77 // KLU_free (Numeric.Uip, n, sizeof (Integer), Common) ;
78 // KLU_free (Numeric.Ulen, n, sizeof (Integer), Common) ;
80 // KLU_free (Numeric.LUsize, nblocks, sizeof (int), Common) ;
82 // KLU_free (Numeric.LUbx, nblocks, sizeof (double[]), Common) ;
84 // KLU_free (Numeric.Udiag, n, sizeof (double), Common) ;
86 // KLU_free (Numeric.Rs, n, sizeof (Double), Common) ;
87 // KLU_free (Numeric.Pinv, n, sizeof (Int), Common) ;
89 // KLU_free (Numeric.Work, Numeric.worksize, 1, Common) ;
91 // KLU_free (Numeric, 1, sizeof (KLU_numeric), Common) ;
93 // NumericHandle = null ;