packages feed

linear-algebra-cblas-0.1: linear-algebra-cblas.cabal

name:            linear-algebra-cblas
version:         0.1
homepage:        http://github.com/cartazio/hs-cblas
synopsis:        A linear algebra library with bindings to BLAS and LAPACK
description:
    Note There are some known bugs in this code, do not use it in production!
    this package is meant mostly for easy cblas vs haskell benchmarks, not real use.
    .
    .
    The BLAS (Basic Linear Algebra Subprograms) are routines that provide
    standard building blocks for performing basic vector and matrix operations. 
    The Level 1 BLAS perform scalar, vector and vector-vector operations, the 
    Level 2 BLAS perform matrix-vector operations, and the Level 3 BLAS perform
    matrix-matrix operations. Because the BLAS are efficient, portable, and
    widely available, they are commonly used in the development of high quality
    linear algebra software, LAPACK for example.
    .
    For more information, see the Netlib BLAS webpage:
    <http://www.netlib.org/blas/> 
    .
category:        Math
license:         BSD3
license-file:    COPYING
copyright:       (c) 2010. Patrick Perry <patperry@gmail.com>, Carter Schonwald <carter atsign wellposed dot com> 2012
author:          Patrick Perry, Carter Schonwald
maintainer:      Carter Schonwald <carter atsign wellposed dot com> 
cabal-version:   >= 1.2.3
build-type:      Configure
tested-with:     GHC == 7.6.2

extra-source-files:     NEWS README TODO configure.ac configure
                        aclocal.m4 m4/ax_check_blas.m4
                        m4/ax_check_lapack.m4
                        linear-algebra.buildinfo.in cbits/config.h.in
                        tests/Makefile.in
                        
                        examples/LU.hs
                        
                                            
extra-tmp-files:        config.log config.status autom4te.cache
                        linear-algebra.buildinfo cbits/config.h
                        tests/Makefile

Library
    hs-source-dirs:     lib
    exposed-modules:    
                        Foreign.BLAS
                        Foreign.LAPACK
                        Foreign.VMath
                        
                        Numeric.LinearAlgebra

                        Numeric.LinearAlgebra.Matrix
                        Numeric.LinearAlgebra.Matrix.Cholesky
                        Numeric.LinearAlgebra.Matrix.Eigen
                        Numeric.LinearAlgebra.Matrix.Herm
                        Numeric.LinearAlgebra.Matrix.ST
                        Numeric.LinearAlgebra.Matrix.Statistics
                        Numeric.LinearAlgebra.Matrix.Tri

                        Numeric.LinearAlgebra.Packed                     
                        Numeric.LinearAlgebra.Packed.Cholesky                        
                        Numeric.LinearAlgebra.Packed.Herm
                        Numeric.LinearAlgebra.Packed.ST                   
                        Numeric.LinearAlgebra.Packed.Statistics
                        Numeric.LinearAlgebra.Packed.Tri

                        Numeric.LinearAlgebra.Vector
                        Numeric.LinearAlgebra.Vector.ST
                        Numeric.LinearAlgebra.Vector.Statistics
                        
                        Test.QuickCheck.LinearAlgebra
                        
    other-modules:      
                        Foreign.BLAS.Types
                        Foreign.BLAS.Level1
                        Foreign.BLAS.Level2
                        Foreign.BLAS.Level3
                        Foreign.BLAS.Double
                        Foreign.BLAS.Zomplex

                        Foreign.LAPACK.Types
                        Foreign.LAPACK.Double
                        Foreign.LAPACK.Zomplex
                        
                        Foreign.VMath.VNum
                        Foreign.VMath.VFractional
                        Foreign.VMath.VFloating
                        Foreign.VMath.Double
                        Foreign.VMath.Zomplex
                        
                        Numeric.LinearAlgebra.Types
                        Numeric.LinearAlgebra.Internal
                        Numeric.LinearAlgebra.Vector.Base
                        Numeric.LinearAlgebra.Vector.STBase                        
                        Numeric.LinearAlgebra.Matrix.Base
                        Numeric.LinearAlgebra.Matrix.STBase
                        Numeric.LinearAlgebra.Packed.Base
    
    includes:           cbits/config.h
                        cbits/f77_func-hsc.h
                        cbits/vmath.h
    include-dirs:       cbits

    c-sources:          cbits/vmath-double.c
                        cbits/vmath-zomplex.c
                        
    ghc-options:        -Wall -funbox-strict-fields 
    
    extensions:         BangPatterns,
                        CPP,
                        DeriveDataTypeable,
                        FlexibleContexts,
                        FlexibleInstances,
                        GeneralizedNewtypeDeriving,
                        ForeignFunctionInterface, 
                        Rank2Types
                         
    build-depends:      base >= 4 && < 5, ieee754, storable-complex,
                        vector >= 0.7, QuickCheck >= 2.1.1 && < 3

Executable test-hs-linear-algebra
    hs-source-dirs:     lib, tests
    main-is:            Main.hs
    other-modules:      Vector
                        STVector,
                        Matrix,
                        STMatrix,
                        Statistics,
                        Typed
                        Foreign.BLAS.Double
                        Foreign.BLAS.Zomplex
                        Foreign.LAPACK.Double
                        Foreign.LAPACK.Zomplex

    includes:           cbits/config.h
                        cbits/f77_func-hsc.h
                        cbits/vmath.h
    include-dirs:       cbits

    c-sources:          cbits/vmath-double.c
                        cbits/vmath-zomplex.c

    build-depends:      QuickCheck >= 2.1 && < 3,
                        test-framework >= 0.3.1,
                        test-framework-quickcheck2 >= 0.2.7