summaryrefslogtreecommitdiff
path: root/packages/base/src/Internal
AgeCommit message (Collapse)Author
2019-06-30urandom(): Refactor CPP, clarify warnings. See #279.Niklas Hambüchen
* 2 identical CPP #ifdef sections were merged for easier readibility. * Warnings and comments now include more concrete explanations on in which situations urandom() isn't thread-safe and what not being thread-safe means in that case. * Added TODO on how the situation can be fixed long-term.
2019-05-17Allow disabling random_r() usage manually. See #279.Niklas Hambüchen
This allows building hmatrix against the musl libc, which allows easily linking Haskell programs statically. A feature-detection for random_r() would be even better, but this will do for now.
2018-11-19Fix #282Maxim Koltsov
LAPACK routine dgttrf mutates its inputs per documentation. To prevent user-visible breakage input vectors must be copied before sending them to LAPACK.
2018-11-13Fix doc for geig, fix warningMaxim Koltsov
2018-11-13Fix geig for complex eigenvalues, add testsMaxim Koltsov
eigG was incorrectly returning eigenvectors corresponding to complex eigenvalues. This was discovered with tests for geig, which are also added to the repo.
2018-11-08Add generalized eigenvalues via dggev and zggevMaxim Koltsov
These lapack functions generalize dgeev and zgeev. Interface for them was added similarly to eig* functions already present in hmatrix.
2018-05-03Merge branch 'fix-vector-show-instance'Peter Dobsan
2018-05-03Minor change to trigger CI.Peter Dobsan
2018-04-28Merge branch 'fix-vector-show-instance'Peter Dobsan
Fixed the leftovers.
2018-04-28Corrected two haddock examples left out previously.Peter Dobsan
2018-04-27Merge branch 'fix-vector-show-instance'Peter Dobsan
The show instance was changed in vector 0.11. The merged modifications adjust hmatrix/base to that change. That fixes issues #277 and #177.
2018-04-27Fixed vector show instance and related haddock entries.Peter Dobsan
2018-04-03"Fix" warningsDominic Steinitz
2018-04-01Merge pull request #256 from thielema/complexofidontgetoutmuch
base:Internal.Numeric.ComplexOf: turn from type function to type synonym Now it is obvious for GHC that (ComplexOf a) is always a Complex type.
2018-04-01Implement CIDominic Steinitz
2018-03-29base:Internal.Numeric.ComplexOf: turn from type function to type synonymHenning Thielemann
Now it is obvious for GHC that (ComplexOf a) is always a Complex type.
2017-12-25Workaround for GHC-8.4.xHiromi ISHII
* Adds missing Semigroup instances * Adds `semigroups` to the deps of `hmatrix` * Hides conflicting names from import list with base >= 4.11 * `(Prelude.<>)` and `GHC.TypeNats.Mod`
2017-07-23Fix compilation with GHC 8.2 by adding some type signatures.Niklas Hambüchen
Fixes this compile error: src/Internal/Util.hs:625:5: error: • Could not deduce (Eq t) from the context: (Indexable (c t) a, Indexable (c t) t, Linear t c, Num (c t), Fractional t, Num a, Eq a) bound by the inferred type for ‘redu’: forall a t (c :: * -> *). (Indexable (c t) a, Indexable (c t) t, Linear t c, Num (c t), Fractional t, Num a, Eq a) => (Int, [c t]) -> [c t] at src/Internal/Util.hs:(625,5)-(632,20) • In the ambiguity check for the inferred type for ‘redu’ To defer the ambiguity check to use sites, enable AllowAmbiguousTypes
2017-03-22Merge pull request #224 from idontgetoutmuch/masterAlberto Ruiz
Add tridiagonal solver and tests for it and triagonal solver.
2017-03-21Add tridiagonal solver and tests for it and triagonal solver.Dominic Steinitz
2017-03-19Merge pull request #223 from idontgetoutmuch/masterAlberto Ruiz
Support triangular matrices.
2017-03-17Support triangular matrices.Dominic Steinitz
2017-03-17Fix bug in equalHuw Campbell
2016-12-19fix documentation typoKevin Slagle
2016-12-19add reorderVector function for tensor libraries (e.g. hTensor) to implement ↵Kevin Slagle
tensor transpose
2016-11-02unitary -> normalizeAlberto Ruiz
2016-10-26inline dim and subVector since these are inlined by the vector packageKevin Slagle
2016-10-26clarify compactSVDTol corner case in documentationKevin Slagle
2016-10-18document norm functions and fix compactSVDTol documentationKevin Slagle
2016-10-13fixed documentationKevin Slagle
2016-10-12add compactSVDTolKevin Slagle
2016-10-09implement thinQR and thinRQKevin Slagle
2016-10-08Remove unsafe `Internal.Foreign`.Francesco Mazzoli
See #199 for details. The API exported by `Internal.Foreign` was inherently unsafe.
2016-10-07Redefine (#)exfalso
2016-05-25added expm and logm; the justification is again that they may only be called ↵Justin Le
on square matrices.
2016-05-25Additive, Transposable instances for Static data typesJustin Le
2016-04-04Remove Binary orphan instance for ComplexSidharth Kapur
2016-03-21Remove BINARY ifdefs and CPP pragmasSidharth Kapur
2016-03-13Add dimension check in Dim binary instanceSidharth Kapur
2016-03-13Simplify binary instancesSidharth Kapur
2016-03-13Merge branch 'master' into matrix_binarySidharth Kapur
Conflicts: packages/base/src/Internal/Matrix.hs
2016-02-09make ghc-8.0 happyAlberto Ruiz
2016-02-01Remove CPP option from cabal filesSidharth Kapur
Use {-# LANGUAGE CPP #-} instead.
2016-02-01some work (will probably undo this commit later)Sidharth Kapur
2015-12-22NFData instances for various Static types, and mapping and outer product ↵Justin Le
methods to Domain
2015-10-29bump versions, fix tests, thanksAlberto Ruiz
2015-10-28Better type for meanCovPatrik Jansson
2015-10-07fix windows link error, issue #154maxc01
2015-09-10#125 Fixed pragma warningVassil Keremidchiev
2015-09-10#125 If we use OS X and FreeBSD equivalent for urandom() it is working under ↵Vassil Keremidchiev
Windows, too. But tests are not run, yet.