qd-vec (empty) → 1.0
raw patch · 4 files changed
+67/−0 lines, 4 filesdep +Vecdep +basedep +qdsetup-changed
Dependencies added: Vec, base, qd
Files
- LICENSE +30/−0
- Numeric/QD/Vec.hs +16/−0
- Setup.hs +2/−0
- qd-vec.cabal +19/−0
+ LICENSE view
@@ -0,0 +1,30 @@+Copyright (c) 2011, Claude Heiland-Allen++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.++ * Neither the name of Claude Heiland-Allen nor the names of other+ contributors may be used to endorse or promote products derived+ from this software without specific prior written permission.++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 THE COPYRIGHT+OWNER 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.
+ Numeric/QD/Vec.hs view
@@ -0,0 +1,16 @@+{- |+Module : Numeric.QD.Vec+Copyright : (c) Claude Heiland-Allen 2011+License : BSD3++Maintainer : claudiusmaximus@goto10.org+Stability : provisional+Portability : portable++NearZero instances for QD types.+-}+module Numeric.QD.Vec where+import Data.Vec (NearZero(nearZero))+import Numeric.QD (DoubleDouble, QuadDouble)+instance NearZero DoubleDouble where nearZero x = not (abs x > (1e-28))+instance NearZero QuadDouble where nearZero x = not (abs x > (1e-60))
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ qd-vec.cabal view
@@ -0,0 +1,19 @@+Name: qd-vec+Version: 1.0+Synopsis: Data.Vec.NearZero instances for Numeric.QD types+Description:+ This package provides instances of Vec's NearZero for qd's types.++License: BSD3+License-file: LICENSE+Author: Claude Heiland-Allen+Maintainer: claudiusmaximus@goto10.org+Category: Math+Build-type: Simple+Cabal-version: >=1.2++Library+ Build-depends: base >= 3 && < 6, qd >= 1 && < 2, Vec >= 0.9.8 && < 1+ Exposed-modules: Numeric.QD.Vec+ GHC-options: -Wall -fno-excess-precision+ GHC-prof-options: -prof -auto-all -caf-all