hmatrix 0.16.1.4 → 0.16.1.5
raw patch · 5 files changed
+16/−5 lines, 5 filesPVP: minor bump suggested
API additions: PVP suggests at least a minor version bump
API changes (from Hackage documentation)
+ Numeric.LinearAlgebra.Static: chol :: KnownNat n => Sym n -> Sq n
Files
- THANKS.md +8/−1
- hmatrix.cabal +1/−1
- src/C/vector-aux.c +1/−0
- src/Data/Packed/Internal/Numeric.hs +1/−1
- src/Numeric/LinearAlgebra/Static.hs +5/−2
THANKS.md view
@@ -159,7 +159,8 @@ - Denis Laxalde separated the gsl tests from the base ones. -- Dominic Steinitz (idontgetoutmuch) reported a bug in the static diagonal creation functions.+- Dominic Steinitz (idontgetoutmuch) reported a bug in the static diagonal creation functions and+ added Cholesky to Static. - Dylan Thurston reported an error in the glpk documentation and ambiguity in the description of linearSolve.@@ -182,4 +183,10 @@ - C.J. East fixed the examples for simplex. - Ben Gamari contributed fixes for ghc 7.10++- Piotr Mardziel added general sparse constraints to simplex and the interface to glp_exact++- Maxim Baz fixed an instance declaration for ghc 7.11++- Thomas M. DuBuisson fixed a C include file.
hmatrix.cabal view
@@ -1,5 +1,5 @@ Name: hmatrix-Version: 0.16.1.4+Version: 0.16.1.5 License: BSD3 License-file: LICENSE Author: Alberto Ruiz
src/C/vector-aux.c view
@@ -13,6 +13,7 @@ #include <math.h> #include <stdio.h> #include <stdlib.h>+#include <stdint.h> #define MACRO(B) do {B} while (0) #define ERROR(CODE) MACRO(return CODE;)
src/Data/Packed/Internal/Numeric.hs view
@@ -241,7 +241,7 @@ --------------------------------------------------------------- -instance (Container Vector a) => Container Matrix a+instance (Fractional a, Element a, Container Vector a) => Container Matrix a where size' = size scale' x = liftMatrix (scale' x)
src/Numeric/LinearAlgebra/Static.hs view
@@ -52,7 +52,7 @@ linSolve, (<\>), -- * Factorizations svd, withCompactSVD, svdTall, svdFlat, Eigen(..),- withNullspace, qr,+ withNullspace, qr, chol, -- * Misc mean, Disp(..), Domain(..),@@ -68,7 +68,7 @@ row,col,vector,matrix,linspace,toRows,toColumns, (<\>),fromList,takeDiag,svd,eig,eigSH,eigSH', eigenvalues,eigenvaluesSH,eigenvaluesSH',build,- qr,size,app,mul,dot)+ qr,size,app,mul,dot,chol) import qualified Numeric.LinearAlgebra.HMatrix as LA import Data.Proxy(Proxy) import Numeric.LinearAlgebra.Static.Internal@@ -305,6 +305,9 @@ eigensystem (extract -> m) = (mkC l, mkM v) where (l,v) = LA.eig m++chol :: KnownNat n => Sym n -> Sq n+chol (extract . unSym -> m) = mkL $ LA.cholSH m --------------------------------------------------------------------------------