From 8e5a29b5c5bf6814b1b0804eb6698c5cee42f639 Mon Sep 17 00:00:00 2001 From: jiri Date: Wed, 7 Oct 2009 14:37:01 +0000 Subject: [PATCH] *** empty log message *** --- ChangeLog | 23 +++++++++++++++++++++++ Makefile.am | 20 ++++++++++++++++++++ configure.ac | 44 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 ChangeLog create mode 100644 Makefile.am create mode 100644 configure.ac diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..92849e5 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,23 @@ +07.10.2009 RELEASE 0.4 +06.10.2009 autoconf/automake for user convenience +13.09.2009 RELEASE 0.3 +04.09.2009 fixed a bug with missing copyonwrite() inside clear() +02.09.2009 fixed a numerical problem in exptimes() for large values of scale +04.06.2009 fixed a regression due to use of normtype +28.05.2009 removed the export keyword unsupported in g++ +28.05.2009 fixed normtype in la_traits +28.05.2009 randomize() added for complex +28.05.2009 Added interface for complex hermitean matrix diagonalization +06.02.2009 constructors of complex vec/mat/smat from real ones +20.01.2009 optional _LA_count_check +20.01.2009 NRMat(const NRVec...) constructor with optional offset parameter +18.12.2008 cout.flush() for verbose iterative methods +17.12.2008 improvements in laerror for exception handling +26.11.2008 RELEASE 0.2 +xx.11.2008 checked compilation with gcc-4.3.2 +xx.08.2008 fixed wrong permutation symmetry in previously unused (and untested) fourindex class +16.04.2008 replaced the dasum() wrongly used for trace +14.03.2008 support for (formal) matrix resize(n,0) +11.03.2008 added cblas_idamax replacement for non-cblas +05.03.2008 fixed transposed bug in inverse() with non-cblas +26.02.2008 INITIAL RELEASE 0.1 diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..a0bb0a4 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,20 @@ +lib_LIBRARIES = libla.a +include_HEADERS = auxstorage.h davidson.h laerror.h mat.h qsort.h vec.h bisection.h diis.h la.h noncblas.h smat.h bitvector.h fourindex.h la_traits.h nonclass.h sparsemat.h conjgrad.h gmres.h matexp.h permutation.h sparsemat_traits.h +libla_a_SOURCES = vec.cc mat.cc smat.cc sparsemat.cc laerror.cc noncblas.cc bitvector.cc strassen.cc nonclass.cc +check_PROGRAMS = t test +t_SOURCES = t.cc t2.cc +test_SOURCES = test.cc +LDADD = libla.a + +# +CXXFLAGS += -fno-omit-frame-pointer -O3 -g -fPIC -finline-limit=1000 +CXXFLAGS += -DNO_STRASSEN -DFORTRAN_ + +CXXFLAGS += -DDEBUG + +LDFLAGS += $(CBLASOPT) +LDFLAGS += $(CBLASLIB) +LDFLAGS += $(TRACEBACKOPT) +LDFLAGS += $(TRACEBACKLIB) + + diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..659eaf6 --- /dev/null +++ b/configure.ac @@ -0,0 +1,44 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ([2.63]) +AC_INIT([libla], [0.4], [jiri@pittnerovi.com]) +AC_CONFIG_HEADERS([config.h]) +AM_INIT_AUTOMAKE([-Wall -Werror foreign]) + +# Checks for programs. +AC_PROG_CXX +AC_PROG_CC +AC_PROG_RANLIB + +# Checks for libraries. +AC_CHECK_LIB([blas], [dgemm_]) +AC_CHECK_LIB([atlas], [ATL_zgemv]) +AC_CHECK_LIB([lapack], [dgeev_]) + +#optional +AC_CHECK_LIB([cblas], [cblas_ddot], [CBLASLIB=-lcblas], [CBLASOPT=-DNONCBLAS]) +AC_SUBST([CBLASLIB]) +AC_SUBST([CBLASOPT]) + +#the check for traceback needs bfd to be linked into +AC_CHECK_LIB([bfd], [bfd_fprintf_vma]) +AC_CHECK_LIB([traceback], [sigtraceback], [TRACEBACKLIB="-ltraceback -lbfd" TRACEBACKOPT=-DUSE_TRACEBACK]) +AC_SUBST([TRACEBACKOPT]) +AC_SUBST([TRACEBACKLIB]) + +# Checks for header files. +AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/vfs.h unistd.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_HEADER_STDBOOL +AC_C_INLINE +AC_TYPE_SIZE_T +AC_TYPE_SSIZE_T +AC_CHECK_MEMBERS([struct stat.st_blksize]) + +# Checks for library functions. +AC_CHECK_FUNCS([getpagesize memset sqrt]) + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT