From 542d47f6ab5c457835e4e46cd5ef3e9c13b0f632 Mon Sep 17 00:00:00 2001 From: steven Date: Thu, 19 Oct 2006 16:19:54 +0000 Subject: [PATCH] import arpack96 library ARPACK is a collection of Fortran77 subroutines designed to solve large scale eigenvalue problems. --- math/arpack/Makefile | 49 +++++++++++++++ math/arpack/distinfo | 8 +++ math/arpack/files/LICENSE | 40 ++++++++++++ math/arpack/files/Makefile | 22 +++++++ math/arpack/pkg/DESCR | 26 ++++++++ math/arpack/pkg/PFRAG.shared | 2 + math/arpack/pkg/PLIST | 114 +++++++++++++++++++++++++++++++++++ 7 files changed, 261 insertions(+) create mode 100644 math/arpack/Makefile create mode 100644 math/arpack/distinfo create mode 100644 math/arpack/files/LICENSE create mode 100644 math/arpack/files/Makefile create mode 100644 math/arpack/pkg/DESCR create mode 100644 math/arpack/pkg/PFRAG.shared create mode 100644 math/arpack/pkg/PLIST diff --git a/math/arpack/Makefile b/math/arpack/Makefile new file mode 100644 index 00000000000..5db69aa1f55 --- /dev/null +++ b/math/arpack/Makefile @@ -0,0 +1,49 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2006/10/19 16:19:54 steven Exp $ + +COMMENT= "solve large scale eigenvalue problems" + +DISTNAME= arpack96 +PKGNAME= arpack-96 +SHARED_LIBS= arpack 1.0 +CATEGORIES= math + +HOMEPAGE= http://www.caam.rice.edu/software/ARPACK/ + +MAINTAINER= Steven Mestdagh + +# Rice BSD license (not in distfile) +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${HOMEPAGE}SRC/ +DISTFILES= ${DISTNAME}.tar.gz ug.ps.gz + +LIB_DEPENDS= lapack.>=1::math/lapack \ + blas.>=1::math/blas + +WRKDIST= ${WRKDIR}/ARPACK +WRKSRC= ${WRKDIST}/SRC +MAKE_FILE= ${FILESDIR}/Makefile +MAKE_ENV= SHLIB_MAJOR=${LIBarpack_VERSION:R} \ + SHLIB_MINOR=${LIBarpack_VERSION:E} +FAKE_FLAGS= LIBDIR=${LOCALBASE}/lib DEBUGLIBS=no + +post-extract: + @cd ${WRKDIST}/UTIL && mv *.f ${WRKSRC} + +post-install: +.for i in BAND COMPLEX NONSYM SIMPLE SVD SYM + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/arpack/$i + ${INSTALL_DATA} ${WRKDIST}/EXAMPLES/$i/* \ + ${PREFIX}/share/examples/arpack/$i +.endfor + ${INSTALL_DATA} ${WRKDIST}/EXAMPLES/README \ + ${PREFIX}/share/examples/arpack + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/arpack + ${INSTALL_DATA} ${WRKDIST}/DOCUMENTS/* ${PREFIX}/share/doc/arpack + ${INSTALL_DATA} ${WRKDIR}/ug.ps ${PREFIX}/share/doc/arpack + ${INSTALL_DATA} ${FILESDIR}/LICENSE ${PREFIX}/share/doc/arpack + +.include diff --git a/math/arpack/distinfo b/math/arpack/distinfo new file mode 100644 index 00000000000..75562558de3 --- /dev/null +++ b/math/arpack/distinfo @@ -0,0 +1,8 @@ +MD5 (arpack96.tar.gz) = fffaa970198b285676f4156cebc8626e +MD5 (ug.ps.gz) = 79cc51e4812c75873adafcad2185842e +RMD160 (arpack96.tar.gz) = 3d1c1c307223961506066f895b7ab291861e73fe +RMD160 (ug.ps.gz) = 29911161dbc7f496ee16db3c98047dae0be51da2 +SHA1 (arpack96.tar.gz) = 3f91de2b39b484bc8365f8048c9eb109e0306e1c +SHA1 (ug.ps.gz) = 6ad34e7ddee64a340e756d55690a2f4e4f46e767 +SIZE (arpack96.tar.gz) = 636865 +SIZE (ug.ps.gz) = 248543 diff --git a/math/arpack/files/LICENSE b/math/arpack/files/LICENSE new file mode 100644 index 00000000000..bde0871c2d2 --- /dev/null +++ b/math/arpack/files/LICENSE @@ -0,0 +1,40 @@ + +Rice BSD Software License +Permits source and binary redistribution of the software ARPACK and +P_ARPACK for both non-commercial and commercial use. + + Copyright (©) 2001, Rice University + Developed by D.C. Sorensen, R.B. Lehoucq, C. Yang, and K. Maschhoff. + All rights reserved. + + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + . Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + . Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . If you modify the source for these routines we ask that you change the + name of the routine and comment the changes made to the original. + . Written notification is provided to the developers of intent to use + this software. Also, we ask that use of ARPACK is properly cited in + any resulting publications or software documentation. + . Neither the name of Rice University (RICE) nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + +THIS SOFTWARE IS PROVIDED BY RICE AND CONTRIBUTORS "AS IS" AND ANY EXPRESS +OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL RICE OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. + diff --git a/math/arpack/files/Makefile b/math/arpack/files/Makefile new file mode 100644 index 00000000000..100bdbfd510 --- /dev/null +++ b/math/arpack/files/Makefile @@ -0,0 +1,22 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2006/10/19 16:19:54 steven Exp $ + +LIB= arpack +SRCS= sgetv0.f slaqrb.f sstqrb.f ssortc.f ssortr.f sstatn.f sstats.f \ + snaitr.f snapps.f snaup2.f snaupd.f snconv.f sneigh.f sngets.f \ + ssaitr.f ssapps.f ssaup2.f ssaupd.f ssconv.f sseigt.f ssgets.f \ + sneupd.f sseupd.f ssesrt.f \ + svout.f smout.f \ + dgetv0.f dlaqrb.f dstqrb.f dsortc.f dsortr.f dstatn.f dstats.f \ + dnaitr.f dnapps.f dnaup2.f dnaupd.f dnconv.f dneigh.f dngets.f \ + dsaitr.f dsapps.f dsaup2.f dsaupd.f dsconv.f dseigt.f dsgets.f \ + dneupd.f dseupd.f dsesrt.f \ + dvout.f dmout.f \ + cnaitr.f cnapps.f cnaup2.f cnaupd.f cneigh.f cneupd.f cngets.f \ + cgetv0.f csortc.f cstatn.f \ + cvout.f cmout.f \ + znaitr.f znapps.f znaup2.f znaupd.f zneigh.f zneupd.f zngets.f \ + zgetv0.f zsortc.f zstatn.f \ + zvout.f zmout.f \ + icnteq.f icopy.f iset.f iswap.f ivout.f second.f + +.include diff --git a/math/arpack/pkg/DESCR b/math/arpack/pkg/DESCR new file mode 100644 index 00000000000..92efac86391 --- /dev/null +++ b/math/arpack/pkg/DESCR @@ -0,0 +1,26 @@ +ARPACK is a collection of Fortran77 subroutines designed to solve large +scale eigenvalue problems. + +The package is designed to compute a few eigenvalues and corresponding +eigenvectors of a general n by n matrix A. It is most appropriate for +large sparse or structured matrices A where structured means that a +matrix-vector product w <- Av requires order n rather than the usual +order n2 floating point operations. This software is based upon an +algorithmic variant of the Arnoldi process called the Implicitly +Restarted Arnoldi Method (IRAM). When the matrix A is symmetric it +reduces to a variant of the Lanczos process called the Implicitly +Restarted Lanczos Method (IRLM). These variants may be viewed as a +synthesis of the Arnoldi/Lanczos process with the Implicitly Shifted QR +technique that is suitable for large scale problems. For many standard +problems, a matrix factorization is not required. Only the action of the +matrix on a vector is needed. + +ARPACK software is capable of solving large scale symmetric, +nonsymmetric, and generalized eigenproblems from significant application +areas. The software is designed to compute a few (k) eigenvalues with +user specified features such as those of largest real part or largest +magnitude. Storage requirements are on the order of n*k locations. No +auxiliary storage is required. A set of Schur basis vectors for the +desired k-dimensional eigen-space is computed which is numerically +orthogonal to working precision. Numerically accurate eigenvectors are +available on request. diff --git a/math/arpack/pkg/PFRAG.shared b/math/arpack/pkg/PFRAG.shared new file mode 100644 index 00000000000..1d2736fad31 --- /dev/null +++ b/math/arpack/pkg/PFRAG.shared @@ -0,0 +1,2 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2006/10/19 16:19:54 steven Exp $ +@lib lib/libarpack.so.${LIBarpack_VERSION} diff --git a/math/arpack/pkg/PLIST b/math/arpack/pkg/PLIST new file mode 100644 index 00000000000..6855948b66a --- /dev/null +++ b/math/arpack/pkg/PLIST @@ -0,0 +1,114 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2006/10/19 16:19:54 steven Exp $ +%%SHARED%% +lib/libarpack.a +lib/libarpack_p.a +lib/libarpack_pic.a +share/doc/arpack/ +share/doc/arpack/LICENSE +share/doc/arpack/README +share/doc/arpack/debug.doc +share/doc/arpack/ex-complex.doc +share/doc/arpack/ex-nonsym.doc +share/doc/arpack/ex-sym.doc +share/doc/arpack/stat.doc +share/doc/arpack/ug.ps +share/examples/arpack/ +share/examples/arpack/BAND/ +share/examples/arpack/BAND/README +share/examples/arpack/BAND/cnband.f +share/examples/arpack/BAND/cnbdr1.f +share/examples/arpack/BAND/cnbdr2.f +share/examples/arpack/BAND/cnbdr3.f +share/examples/arpack/BAND/cnbdr4.f +share/examples/arpack/BAND/dnband.f +share/examples/arpack/BAND/dnbdr1.f +share/examples/arpack/BAND/dnbdr2.f +share/examples/arpack/BAND/dnbdr3.f +share/examples/arpack/BAND/dnbdr4.f +share/examples/arpack/BAND/dnbdr5.f +share/examples/arpack/BAND/dnbdr6.f +share/examples/arpack/BAND/dsband.f +share/examples/arpack/BAND/dsbdr1.f +share/examples/arpack/BAND/dsbdr2.f +share/examples/arpack/BAND/dsbdr3.f +share/examples/arpack/BAND/dsbdr4.f +share/examples/arpack/BAND/dsbdr5.f +share/examples/arpack/BAND/dsbdr6.f +share/examples/arpack/BAND/makefile +share/examples/arpack/BAND/snband.f +share/examples/arpack/BAND/snbdr1.f +share/examples/arpack/BAND/snbdr2.f +share/examples/arpack/BAND/snbdr3.f +share/examples/arpack/BAND/snbdr4.f +share/examples/arpack/BAND/snbdr5.f +share/examples/arpack/BAND/snbdr6.f +share/examples/arpack/BAND/ssband.f +share/examples/arpack/BAND/ssbdr1.f +share/examples/arpack/BAND/ssbdr2.f +share/examples/arpack/BAND/ssbdr3.f +share/examples/arpack/BAND/ssbdr4.f +share/examples/arpack/BAND/ssbdr5.f +share/examples/arpack/BAND/ssbdr6.f +share/examples/arpack/BAND/znband.f +share/examples/arpack/BAND/znbdr1.f +share/examples/arpack/BAND/znbdr2.f +share/examples/arpack/BAND/znbdr3.f +share/examples/arpack/BAND/znbdr4.f +share/examples/arpack/COMPLEX/ +share/examples/arpack/COMPLEX/README +share/examples/arpack/COMPLEX/cndrv1.f +share/examples/arpack/COMPLEX/cndrv2.f +share/examples/arpack/COMPLEX/cndrv3.f +share/examples/arpack/COMPLEX/cndrv4.f +share/examples/arpack/COMPLEX/makefile +share/examples/arpack/COMPLEX/zndrv1.f +share/examples/arpack/COMPLEX/zndrv2.f +share/examples/arpack/COMPLEX/zndrv3.f +share/examples/arpack/COMPLEX/zndrv4.f +share/examples/arpack/NONSYM/ +share/examples/arpack/NONSYM/README +share/examples/arpack/NONSYM/dndrv1.f +share/examples/arpack/NONSYM/dndrv2.f +share/examples/arpack/NONSYM/dndrv3.f +share/examples/arpack/NONSYM/dndrv4.f +share/examples/arpack/NONSYM/dndrv5.f +share/examples/arpack/NONSYM/dndrv6.f +share/examples/arpack/NONSYM/makefile +share/examples/arpack/NONSYM/sndrv1.f +share/examples/arpack/NONSYM/sndrv2.f +share/examples/arpack/NONSYM/sndrv3.f +share/examples/arpack/NONSYM/sndrv4.f +share/examples/arpack/NONSYM/sndrv5.f +share/examples/arpack/NONSYM/sndrv6.f +share/examples/arpack/README +share/examples/arpack/SIMPLE/ +share/examples/arpack/SIMPLE/README +share/examples/arpack/SIMPLE/cnsimp.f +share/examples/arpack/SIMPLE/debug.h +share/examples/arpack/SIMPLE/dnsimp.f +share/examples/arpack/SIMPLE/dssimp.f +share/examples/arpack/SIMPLE/makefile +share/examples/arpack/SIMPLE/snsimp.f +share/examples/arpack/SIMPLE/sssimp.f +share/examples/arpack/SIMPLE/znsimp.f +share/examples/arpack/SVD/ +share/examples/arpack/SVD/README +share/examples/arpack/SVD/debug.h +share/examples/arpack/SVD/dsvd.f +share/examples/arpack/SVD/makefile +share/examples/arpack/SVD/ssvd.f +share/examples/arpack/SYM/ +share/examples/arpack/SYM/README +share/examples/arpack/SYM/dsdrv1.f +share/examples/arpack/SYM/dsdrv2.f +share/examples/arpack/SYM/dsdrv3.f +share/examples/arpack/SYM/dsdrv4.f +share/examples/arpack/SYM/dsdrv5.f +share/examples/arpack/SYM/dsdrv6.f +share/examples/arpack/SYM/makefile +share/examples/arpack/SYM/ssdrv1.f +share/examples/arpack/SYM/ssdrv2.f +share/examples/arpack/SYM/ssdrv3.f +share/examples/arpack/SYM/ssdrv4.f +share/examples/arpack/SYM/ssdrv5.f +share/examples/arpack/SYM/ssdrv6.f