edu.ufl.cise.klu.common.KLU_version Maven / Gradle / Ivy
/**
* KLU: a sparse LU factorization algorithm.
* Copyright (C) 2004-2009, Timothy A. Davis.
* Copyright (C) 2011-2012, Richard W. Lincoln.
* http://www.cise.ufl.edu/research/sparse/klu
*
* -------------------------------------------------------------------------
*
* KLU is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* KLU is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this Module; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
package edu.ufl.cise.klu.common;
/**
* All versions of KLU include these definitions.
* As an example, to test if the version you are using is 1.2 or later:
*
* if (KLU_VERSION >= KLU_VERSION_CODE (1,2)) ...
*/
public class KLU_version
{
public static String KLU_DATE = "Jan 20, 2012" ;
public static int KLU_VERSION_CODE (int main, int sub)
{
return main * 1000 + sub ;
}
public static int KLU_MAIN_VERSION = 1 ;
public static int KLU_SUB_VERSION = 1 ;
public static int KLU_SUBSUB_VERSION = 4 ;
public static int KLU_VERSION = KLU_VERSION_CODE (KLU_MAIN_VERSION,
KLU_SUB_VERSION) ;
}